Skip to content

Instantly share code, notes, and snippets.

@dwalters-zz
Created December 23, 2008 17:44
Show Gist options
  • Save dwalters-zz/39400 to your computer and use it in GitHub Desktop.
Save dwalters-zz/39400 to your computer and use it in GitHub Desktop.
--- Site/1.8/rubygems/commands/cleanup_command.rb.dist 2008-12-23 11:44:35.000000000 -0600
+++ Site/1.8/rubygems/commands/cleanup_command.rb 2008-12-23 11:42:43.000000000 -0600
@@ -71,6 +71,7 @@
options[:args] = [spec.name]
options[:version] = "= #{spec.version}"
options[:executables] = false
+ options[:install_dir] = File.dirname(File.dirname(spec.loaded_from)) if spec.loaded_from
uninstaller = Gem::Uninstaller.new spec.name, options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment