mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Make looping more concise with select
https://github.com/rubygems/rubygems/commit/c43d5f979a
This commit is contained in:
parent
ba4ec45cf1
commit
2cf4318645
1 changed files with 2 additions and 5 deletions
|
@ -680,13 +680,10 @@ module Bundler
|
|||
end
|
||||
|
||||
def converge_specs(specs)
|
||||
deps = []
|
||||
converged = []
|
||||
|
||||
@dependencies.each do |dep|
|
||||
if specs[dep].any? {|s| s.satisfies?(dep) && (!dep.source || s.source.include?(dep.source)) }
|
||||
deps << dep
|
||||
end
|
||||
deps = @dependencies.select do |dep|
|
||||
specs[dep].any? {|s| s.satisfies?(dep) && (!dep.source || s.source.include?(dep.source)) }
|
||||
end
|
||||
|
||||
specs.each do |s|
|
||||
|
|
Loading…
Add table
Reference in a new issue