End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::QueryUtils#show_local_gems
show_local_gems(name, req = Gem::Requirement.default)
lib/rubygems/query_utils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/query_utils.rb, line 128
def show_local_gems(name, req = Gem::Requirement.default)
display_header("LOCAL")
specs = Gem::Specification.find_all do |s|
s.name =~ name and req =~ s.version
end
dep = Gem::Deprecate.skip_during { Gem::Dependency.new name, req }
specs.select! do |s|
dep.match?(s.name, s.version, show_prereleases?)
end
spec_tuples = specs.map do |spec|
[spec.name_tuple, spec]
end
output_query_results(spec_tuples)
end
No documentation available
See also
#show_gems
#show_prereleases?
#prerelease
#show_remote_gems
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1