mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rubygems 2.6.7
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems to 2.6.7, not the master, with r56225. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
69934aeb8d
commit
b6139464f5
24 changed files with 149 additions and 427 deletions
|
@ -233,29 +233,8 @@ class Gem::Resolver
|
|||
exc.errors = @set.errors
|
||||
raise exc
|
||||
end
|
||||
|
||||
sources = []
|
||||
|
||||
groups = Hash.new { |hash, key| hash[key] = [] }
|
||||
|
||||
possibles.each do |spec|
|
||||
source = spec.source
|
||||
|
||||
sources << source unless sources.include? source
|
||||
|
||||
groups[source] << spec
|
||||
end
|
||||
|
||||
activation_requests = []
|
||||
|
||||
sources.sort.each do |source|
|
||||
groups[source].
|
||||
sort_by { |spec| [spec.version, Gem::Platform.local =~ spec.platform ? 1 : 0] }.
|
||||
map { |spec| ActivationRequest.new spec, dependency, [] }.
|
||||
each { |activation_request| activation_requests << activation_request }
|
||||
end
|
||||
|
||||
activation_requests
|
||||
possibles.sort_by { |s| [s.source, s.version, Gem::Platform.local =~ s.platform ? 1 : 0] }.
|
||||
map { |s| ActivationRequest.new s, dependency, [] }
|
||||
end
|
||||
|
||||
def dependencies_for(specification)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue