Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::QueryUtils#show_remote_gems
show_remote_gems(name)
lib/rubygems/query_utils.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/query_utils.rb, line 144
def show_remote_gems(name)
display_header("REMOTE")
fetcher = Gem::SpecFetcher.fetcher
spec_tuples = if name.nil?
fetcher.detect(specs_type) { true }
else
matching_tuples = fetcher.detect(specs_type) do |name_tuple|
name === name_tuple.name && options[:version].satisfied_by?(name_tuple.version)
end
if args.empty?
matching_tuples
else
fetcher.decode_content_addressable_tuples(matching_tuples, latest: specs_type == :latest)
end
end
output_query_results(spec_tuples)
end
No documentation available
See also
#show_prereleases?
#spec_authors
#show_local_gems
#spec_homepage
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0