diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-11-14 17:54:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 17:54:53 -0700 |
commit | 3fc03d35d8191d584ce3b2c9575dd243ed1a6f1a (patch) | |
tree | adc11ba64b03a11b7c1e63e875381ed223c9685a | |
parent | ed492fed17ab1db93ca6f0ab105b9ecdbec83cf8 (diff) | |
parent | 6e90ea0d55330726b4c13c954f2500c9f85df42e (diff) | |
download | rack-3fc03d35d8191d584ce3b2c9575dd243ed1a6f1a.tar.gz |
Merge pull request #1411 from rack/no-rg
Remove implicit dependency on RubyGems
-rw-r--r-- | lib/rack/core_ext/regexp.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rack/core_ext/regexp.rb b/lib/rack/core_ext/regexp.rb index 02975345..a32fcdf6 100644 --- a/lib/rack/core_ext/regexp.rb +++ b/lib/rack/core_ext/regexp.rb @@ -5,12 +5,10 @@ module Rack module RegexpExtensions - if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(2.4) - refine Regexp do - def match?(string, pos = 0) - !!match(string, pos) - end unless //.respond_to?(:match?) + refine Regexp do + def match?(string, pos = 0) + !!match(string, pos) end - end + end unless //.respond_to?(:match?) end end |