Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Commands::CleanupCommand#get_candidate_gems
get_candidate_gems
lib/rubygems/commands/cleanup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/commands/cleanup_command.rb, line 119
def get_candidate_gems
@candidate_gems = if options[:args].empty?
Gem::Specification.to_a
else
options[:args].map do |gem_name|
Gem::Specification.find_all_by_name gem_name
end.flatten
end
end
No documentation available
See also
#execute
#get_gems_to_cleanup
#clean_gems
#get_primary_gems
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0