summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/cleanup_command.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/cleanup_command.rb10
1 files changed, 9 insertions, 1 deletions
@@ -22,6 +22,12 @@ class Gem::Commands::CleanupCommand < Gem::Command
options[:check_dev] = value
end
@candidate_gems = nil
@default_gems = []
@full = nil
@@ -124,8 +130,10 @@ If no gems are named all gems in GEM_HOME are cleaned.
spec.default_gem?
}
gems_to_cleanup = gems_to_cleanup.select { |spec|
- spec.base_dir == @original_home
}
@default_gems += default_gems