Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Specification.find_all_by_name
find_all_by_name(name, *requirements)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 1003
def self.find_all_by_name(name, *requirements)
requirements = Gem::Requirement.default if requirements.empty?
# TODO: maybe try: find_all { |s| spec === dep }
Gem::Dependency.new(name, *requirements).matching_specs
end
Returns every spec that matches name and optional requirements.
See also
.find_all_by_full_name
.find_by_full_name
.find_active_stub_by_path
.find_by_name
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0