aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-12-14 21:14:58 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-12-15 18:05:18 +0900
commit7e084ed707310139b351f6d30af435676422af62 (patch)
treedb7450ae96ccd8d90287e33412769230da247242 /lib/bundler/vendor
parent583e06e28f5ed4078393000f929f4380777ba972 (diff)
downloadruby-7e084ed707310139b351f6d30af435676422af62.tar.gz
Merge RubyGems and Bundler master
Merge from https://github.com/rubygems/rubygems/commit/793ad95ecb40e84a1dcb4cb60f2686843ed90de5
Diffstat (limited to 'lib/bundler/vendor')
-rw-r--r--lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb b/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb
index 9d94c2c0f0..880170c06b 100644
--- a/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb
+++ b/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb
@@ -32,13 +32,13 @@ class Bundler::ConnectionPool
# rubocop:disable Style/MethodMissingSuper
# rubocop:disable Style/MissingRespondToMissing
- if ::Gem.ruby_version >= ::Gem::Version.new("3.0.0")
+ if ::RUBY_VERSION >= "3.0.0"
def method_missing(name, *args, **kwargs, &block)
with do |connection|
connection.send(name, *args, **kwargs, &block)
end
end
- elsif ::Gem.ruby_version >= ::Gem::Version.new("2.7.0")
+ elsif ::RUBY_VERSION >= "2.7.0"
ruby2_keywords def method_missing(name, *args, &block)
with do |connection|
connection.send(name, *args, &block)