I like that Rails 3 is so easy to install: gem install rails --pre
, and all of the dependencies are automatically installed for you. But, what about uninstalling it
I found this excellent post on removing all Ruby Gems by Ken Nordquist: http://geekystuff.net/2009/01/14/remove-all-ruby-gems/
The command uses pipes to iteratively push a gem list to the uninstall utility. Here is the command:
'gem list | cut -d" " -f1 | xargs gem uninstall -aIx'
It successfully removed all gems except the following which appear to be permanent fixtures on my Mac:
minitest (1.6.0) rake (0.8.7) rdoc (2.5.8)