mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-08 00:02:42 -04:00
Allow pattern matching for Ruby 2.7
This commit is contained in:
parent
911a27b20a
commit
b8f0d0fbcd
@ -264,4 +264,4 @@ end
|
||||
|
||||
require_relative "response/body"
|
||||
require_relative "response/buffer"
|
||||
require_relative "pmatch_extensions" if RUBY_VERSION >= "3.0.0"
|
||||
require_relative "pmatch_extensions" if RUBY_VERSION >= "2.7.0"
|
||||
|
@ -6,7 +6,7 @@ class ResponseTest < Minitest::Test
|
||||
include HTTPX
|
||||
include ResponseHelpers
|
||||
|
||||
if RUBY_VERSION >= "3.0.0"
|
||||
if RUBY_VERSION >= "2.7.0"
|
||||
begin
|
||||
eval("case 1; in 1 ;then true; end") # rubocop:disable Style/EvalWithLocation
|
||||
require_relative "extensions/response_pattern_match"
|
||||
|
Loading…
x
Reference in New Issue
Block a user