diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-12 21:44:56 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-12 21:44:56 +0000 |
commit | 7244db9da3a02fc5577200ad67a2e132b4a41f26 (patch) | |
tree | 950603fd0ce72f0b0c09377d98c137cbbc3d473e /lib/rubygems.rb | |
parent | 213582c85e18d428c192d620bb930ed0acfcd675 (diff) |
Merge RubyGems 2.7.6.2 patch [Bug #15643]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index cd7434ca87..f3671d9f2a 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -10,7 +10,7 @@ require 'rbconfig' require 'thread' module Gem - VERSION = "2.7.6.1" + VERSION = "2.7.6.2" end # Must be first since it unloads the prelude from 1.9.2 @@ -270,12 +270,7 @@ module Gem return loaded if loaded && dep.matches_spec?(loaded) - find_specs = proc { dep.matching_specs(true) } - if dep.to_s == "bundler (>= 0.a)" - specs = Gem::BundlerVersionFinder.without_filtering(&find_specs) - else - specs = find_specs.call - end + specs = dep.matching_specs(true) specs = specs.find_all { |spec| spec.executables.include? exec_name |