diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-01 11:00:10 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-01 11:00:10 +0900 |
commit | 0b53a8895f143ecc3d97844f5eec685dbd709d85 (patch) | |
tree | edff641a192187de663945dc8e4077990988ca42 /lib/bundler/vendor | |
parent | 9f4bdeb4033c3851a7025bc67052cb5458325849 (diff) | |
download | ruby-0b53a8895f143ecc3d97844f5eec685dbd709d85.tar.gz |
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd
Diffstat (limited to 'lib/bundler/vendor')
-rw-r--r-- | lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb | 4 |
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 880170c06b..9d94c2c0f0 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 ::RUBY_VERSION >= "3.0.0" + if ::Gem.ruby_version >= ::Gem::Version.new("3.0.0") def method_missing(name, *args, **kwargs, &block) with do |connection| connection.send(name, *args, **kwargs, &block) end end - elsif ::RUBY_VERSION >= "2.7.0" + elsif ::Gem.ruby_version >= ::Gem::Version.new("2.7.0") ruby2_keywords def method_missing(name, *args, &block) with do |connection| connection.send(name, *args, &block) |