mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* backport r32981 and r32982 from trunk.
* ext/dl: Add documentation. Patch by Vincent Batts. [Ruby 1.9 - Bug #5192] * ext/.document (fiddle): Remove duplicate entry * ext/fiddle: Complete documentation of Fiddle. Patch by Vincent Batts. [#5192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f8fb75416
commit
e5f7bf8442
5 changed files with 45 additions and 3 deletions
|
@ -73,6 +73,8 @@ class Gem::Commands::UninstallCommand < Gem::Command
|
|||
end
|
||||
|
||||
def execute
|
||||
original_path = Gem.path
|
||||
|
||||
get_all_gem_names.each do |gem_name|
|
||||
begin
|
||||
Gem::Uninstaller.new(gem_name, options).uninstall
|
||||
|
@ -80,6 +82,8 @@ class Gem::Commands::UninstallCommand < Gem::Command
|
|||
spec = e.spec
|
||||
alert("In order to remove #{spec.name}, please execute:\n" \
|
||||
"\tgem uninstall #{spec.name} --install-dir=#{spec.installation_path}")
|
||||
ensure
|
||||
Gem.use_paths(*original_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue