1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems/commands/cleanup_command.rb: Fix cleanup command for

multiple gems.  [ruby-trunk - #7481] by Kouhei Sutou
* test/rubygems/test_gem_commands_cleanup_command.rb:  Test for above.
* lib/rubygems.rb:  Autoload Gem::Source to prevent test failures


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-12-01 09:52:39 +00:00
parent 018d8261ce
commit 4090ec1017
4 changed files with 30 additions and 12 deletions

View file

@ -66,6 +66,7 @@ are not removed.
deps = deplist.strongly_connected_components.flatten.reverse
original_home = Gem.dir
original_path = Gem.path
deps.each do |spec|
@ -97,7 +98,7 @@ are not removed.
end
# Restore path Gem::Uninstaller may have change
Gem.use_paths(*original_path)
Gem.use_paths(original_home, *original_path)
end
say "Clean Up Complete"