instance method
Gem::Dependency#matches_spec?
matches_spec?(spec)
lib/rubygems/dependency.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/dependency.rb, line 247
def matches_spec?(spec)
return false unless name === spec.name
return true if requirement.none?
requirement.satisfied_by?(spec.version)
end
Does this dependency match spec?
NOTE: This is not a convenience method. Unlike match? this method returns true when spec is a prerelease version even if this dependency is not a prerelease dependency.