Class
The SourceSet
chooses the best available method to query a remote index.
Kind off like BestSet but filters the sources for gems
Class Methods
::
lib/rubygems/resolver/source_set.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/source_set.rb, line 11
def initialize
super()
@links = {}
@sets = {}
end
Creates a SourceSet
for the given sources
or Gem::sources
if none are specified. sources
must be a Gem::SourceList
.
Instance Methods
lib/rubygems/resolver/source_set.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/source_set.rb, line 35
def add_source_gem(name, source)
@links[name] = source
end
No documentation available
lib/rubygems/resolver/source_set.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/source_set.rb, line 41
def get_set(name)
link = @links[name]
@sets[link] ||= Gem::Source.new(link).dependency_resolver_set if link
end
No documentation available