Shorthand to clean up installed Rubygems (but don’t cleanup Rails)
Friday, May 29th, 2009 by Jesper Rønn-JensenI trimmed my installed Rubygems on my local development machine. The command “sudo gem cleanup” is just for that. Only problem: What about my older Rails apps that require a specific version of Rails, ActiveRecord, etc.? My solution: gem list –no-versions | grep -v “^active” | grep -v “^action” | grep -v “^rails$” | xargs […]