зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Reuse `locked_dependencies` helper
It makes the code more consistent with the above line. https://github.com/rubygems/rubygems/commit/f28d05a548
This commit is contained in:
Родитель
901a257533
Коммит
d19c266b49
|
@ -400,7 +400,7 @@ module Bundler
|
|||
|
||||
both_sources = Hash.new {|h, k| h[k] = [] }
|
||||
@dependencies.each {|d| both_sources[d.name][0] = d }
|
||||
@locked_deps.each {|name, d| both_sources[name][1] = d.source }
|
||||
locked_dependencies.each {|d| both_sources[d.name][1] = d.source }
|
||||
|
||||
both_sources.each do |name, (dep, lock_source)|
|
||||
next if lock_source.nil? || lock_source.can_lock?(dep)
|
||||
|
|
Загрузка…
Ссылка в новой задаче