End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.2.0/lib/rubygems/commands/cleanup_command.rb, line 148
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.4 · 3.3 · 3.1 · 3.0