1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Move comment where the actual replacement happens

https://github.com/rubygems/rubygems/commit/d60acdf80d
This commit is contained in:
David Rodríguez 2022-01-17 23:01:01 +01:00 committed by git
parent 4ea521f6c7
commit 8dd63b89d9

View file

@ -740,9 +740,9 @@ module Bundler
end
specs.each do |s|
# Replace the locked dependency's source with the equivalent source from the Gemfile
dep = @dependencies.find {|d| s.satisfies?(d) }
# Replace the locked dependency's source with the equivalent source from the Gemfile
s.source = (dep && dep.source) || sources.get_with_fallback(s.source)
next if @unlock[:sources].include?(s.source.name)