instance method
Gem::Dependency#to_specs
to_specs
lib/rubygems/dependency.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/dependency.rb, line 292
def to_specs
matches = matching_specs true
# TODO: check Gem.activated_spec[self.name] in case matches falls outside
if matches.empty?
specs = Gem::Specification.stubs_for name
if specs.empty?
raise Gem::MissingSpecError.new name, requirement
else
raise Gem::MissingSpecVersionError.new name, requirement, specs
end
end
# TODO: any other resolver validations should go here
matches
end
No documentation available