End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::SpecFetcher#detect
detect(type=:complete) { |tup| ... }
lib/rubygems/spec_fetcher.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/spec_fetcher.rb, line 132
def detect(type=:complete)
tuples = []
list, _ = available_specs(type)
list.each do |source, specs|
specs.each do |tup|
if yield(tup)
tuples << [tup, source]
end
end
end
tuples
end
Return all gem name tuples who’s names match obj
See also
#available_specs
#search_for_dependency
.new
#spec_for_dependency
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1