frozen_string_literal: false
A set of gems from a gem dependencies lockfile.
Methods
- F
-
- N
-
Class Public methods
Creates a new LockSet from the given
sources
Source:
show
| on GitHub
def initialize sources
super()
@sources = sources.map do |source|
Gem::Source::Lock.new source
end
@specs = []
end
Instance Public methods
Returns an Array of IndexSpecification objects matching the
DependencyRequest req.
Source:
show
| on GitHub
def find_all req
@specs.select do |spec|
req.match? spec
end
end