This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
group_possibilities(possibilities)
private
Build an array of PossibilitySets, with each
element representing a group of dependency versions that all have the same
sub-dependency version constraints and are contiguous. @param [Array] an array of possibilities @return [Array] an array of possibility
sets
# File lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb, line 802
def group_possibilities(possibilities)
possibility_sets = []
current_possibility_set = nil
possibilities.reverse_each do |possibility|
dependencies = dependencies_for(possibility)
if current_possibility_set && current_possibility_set.dependencies == dependencies
current_possibility_set.possibilities.unshift(possibility)
else
possibility_sets.unshift(PossibilitySet.new(dependencies, [possibility]))
current_possibility_set = possibility_sets.first
end
end
possibility_sets
end