summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/contents_command.rb2
-rw-r--r--lib/rubygems/commands/update_command.rb4
2 files changed, 3 insertions, 3 deletions
@@ -167,7 +167,7 @@ prefix or only the files that are requireable.
end
def spec_for(name)
- spec = Gem::Specification.find_all_by_name(name, @version).last
return spec if spec
@@ -184,14 +184,14 @@ command to remove old versions.
else
require "tmpdir"
tmpdir = Dir.mktmpdir
- FileUtils.mv Gem.plugins_dir, tmpdir
status = yield
if status
FileUtils.rm_rf tmpdir
else
- FileUtils.mv File.join(tmpdir, "plugins"), Gem.plugins_dir
end
status