method
get_gems_to_cleanup
ruby latest stable - Class:
Gem::Commands::CleanupCommand
get_gems_to_cleanup()public
No documentation available.
# File lib/rubygems/commands/cleanup_command.rb, line 117
def get_gems_to_cleanup
gems_to_cleanup = @candidate_gems.select { |spec|
@primary_gems[spec.name].version != spec.version
}
default_gems, gems_to_cleanup = gems_to_cleanup.partition { |spec|
spec.default_gem?
}
gems_to_cleanup = gems_to_cleanup.select { |spec|
spec.base_dir == @original_home
}
@default_gems += default_gems
@default_gems.uniq!
@gems_to_cleanup = gems_to_cleanup.uniq
end