diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-01-31 17:45:12 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-02-01 08:09:23 +0900 |
commit | 517d7c3221e3ca0ca76d79cc67cb9efefc01ece3 (patch) | |
tree | c7080febcd179b0e4f18cac553116164ebc9749a /lib/bundler/resolver.rb | |
parent | 2b2e3b79919c153c3022115ccca24a80a2b57899 (diff) | |
download | ruby-517d7c3221e3ca0ca76d79cc67cb9efefc01ece3.tar.gz |
Sync latest Bundler & RubyGems
Diffstat (limited to 'lib/bundler/resolver.rb')
-rw-r--r-- | lib/bundler/resolver.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index bd579a5f0c..be0751d9d2 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -249,10 +249,11 @@ module Bundler end def verify_gemfile_dependencies_are_found!(requirements) - requirements.each do |requirement| + requirements.map! do |requirement| name = requirement.name - next if name == "bundler" - next unless search_for(requirement).empty? + next requirement if name == "bundler" + next requirement unless search_for(requirement).empty? + next unless requirement.current_platform? if (base = @base[name]) && !base.empty? version = base.first.version @@ -266,7 +267,7 @@ module Bundler message = gem_not_found_message(name, requirement, source_for(name)) end raise GemNotFound, message - end + end.compact! end def gem_not_found_message(name, requirement, source, extra_message = "") |