mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge release version of bundler-1.16.1 from upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
85277d5be0
commit
4525cf2cd5
16 changed files with 122 additions and 95 deletions
|
@ -306,6 +306,8 @@ module Bundler
|
|||
:solver_name => "Bundler",
|
||||
:possibility_type => "gem",
|
||||
:reduce_trees => lambda do |trees|
|
||||
# bail out if tree size is too big for Array#combination to make any sense
|
||||
return trees if trees.size > 15
|
||||
maximal = 1.upto(trees.size).map do |size|
|
||||
trees.map(&:last).flatten(1).combination(size).to_a
|
||||
end.flatten(1).select do |deps|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue