mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes to
CI. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd950a75b5
commit
ea2a00d785
40 changed files with 663 additions and 109 deletions
|
@ -12,11 +12,30 @@ class Gem::Resolver::BestSet < Gem::Resolver::ComposedSet
|
|||
def initialize sources = Gem.sources
|
||||
super()
|
||||
|
||||
sources.each_source do |source|
|
||||
@sources = sources
|
||||
end
|
||||
|
||||
##
|
||||
# Picks which sets to use for the configured sources.
|
||||
|
||||
def pick_sets # :nodoc:
|
||||
@sources.each_source do |source|
|
||||
@sets << source.dependency_resolver_set
|
||||
end
|
||||
end
|
||||
|
||||
def find_all req # :nodoc:
|
||||
pick_sets if @remote and @sets.empty?
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def prefetch reqs # :nodoc:
|
||||
pick_sets if @remote and @sets.empty?
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def pretty_print q # :nodoc:
|
||||
q.group 2, '[BestSet', ']' do
|
||||
q.breakable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue