Class
A set of gems from a gem dependencies lockfile.
Class Methods
::
lib/rubygems/resolver/lock_set.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/lock_set.rb, line 11
def initialize(sources)
super()
@sources = sources.map do |source|
Gem::Source::Lock.new source
end
@specs = []
end
Creates a new LockSet
from the given sources
Instance Methods
lib/rubygems/resolver/lock_set.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/lock_set.rb, line 43
def find_all(req)
@specs.select do |spec|
req.match? spec
end
end
Returns an Array
of IndexSpecification objects matching the DependencyRequest req
.