summary refs log tree commit
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-11-14 17:54:53 -0700
committerGitHub <noreply@github.com>2019-11-14 17:54:53 -0700
commit3fc03d35d8191d584ce3b2c9575dd243ed1a6f1a (patch)
treeadc11ba64b03a11b7c1e63e875381ed223c9685a
parented492fed17ab1db93ca6f0ab105b9ecdbec83cf8 (diff)
parent6e90ea0d55330726b4c13c954f2500c9f85df42e (diff)
downloadrack-3fc03d35d8191d584ce3b2c9575dd243ed1a6f1a.tar.gz
Merge pull request #1411 from rack/no-rg
Remove implicit dependency on RubyGems
-rw-r--r--lib/rack/core_ext/regexp.rb10
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