Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Dependency#matching_specs
matching_specs(platform_only = false)
lib/rubygems/dependency.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/dependency.rb, line 273
def matching_specs(platform_only = false)
matches = Gem::Specification.find_all_by_name(name, requirement)
if platform_only
matches.reject! do |spec|
spec.nil? || !Gem::Platform.match_spec?(spec)
end
end
matches.reject(&:ignored?)
end
No documentation available