Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Commands::CleanupCommand#get_primary_gems
get_primary_gems
lib/rubygems/commands/cleanup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/commands/cleanup_command.rb, line 140
def get_primary_gems
@primary_gems = {}
Gem::Specification.each do |spec|
if @primary_gems[spec.name].nil? ||
@primary_gems[spec.name].version < spec.version
@primary_gems[spec.name] = spec
end
end
end
No documentation available
See also
#get_gems_to_cleanup
#uninstall_dep
#get_candidate_gems
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0