End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.2.0/lib/rubygems/specification.rb, line 997
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_name
.find_active_stub_by_path
.find_by_path
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0