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#clean_gems
clean_gems
lib/rubygems/commands/cleanup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/cleanup_command.rb, line 96
def clean_gems
@original_home = Gem.dir
@original_path = Gem.path
get_primary_gems
get_candidate_gems
get_gems_to_cleanup
@full = Gem::DependencyList.from_specs
deplist = Gem::DependencyList.new
@gems_to_cleanup.each {|spec| deplist.add spec }
deps = deplist.strongly_connected_components.flatten
deps.reverse_each do |spec|
uninstall_dep spec
end
Gem::Specification.reset
end
No documentation available