Skip to content

Instantly share code, notes, and snippets.

# This assumes you have the latest Ruby 1.9 installed via MacPorts:
#
# $ sudo port sync
# $ sudo port install ruby19
#
# Make sure there are no trails of columnize, linecache, ruby-debug-base, ruby-debug, ruby-debug-ide, and ruby_core_source
for name in columnize linecache linecache19 ruby-debug-base ruby-debug-base19 ruby-debug ruby-debug19 ruby-debug-ide ruby_core_source
do
(gem1.9 list | grep ^$name >/dev/null) && sudo gem1.9 uninstall -a -x -I $name
find /opt/local/lib/ruby1.9/gems/1.9.1/gems -name "$name*" -type d -maxdepth 1 -print0 | sudo xargs -0 rm -rf