End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.1.3/lib/rubygems/commands/cleanup_command.rb, line 118
def get_candidate_gems
@candidate_gems = unless options[:args].empty?
options[:args].map do |gem_name|
Gem::Specification.find_all_by_name gem_name
end.flatten
else
Gem::Specification.to_a
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.3 · 3.2 · 3.0