This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Uninstall crappy old system gems | |
function remove_system_gems { | |
echo "Uninstalling all system gems... This could take a while..." | |
for x in `gem list --no-versions`; do gem uninstall $x --all --quiet --ignore-dependencies --user-install --executables; done | |
#TODO : Add check for trailing slash and remove | |
system_location=$@ | |
if [ "$system_location" == "" ]; then | |
system_location='/Library/Ruby/Gems/1.8' | |
fi | |
folder_names=( 'specifications' 'gems' 'cache' 'doc' 'bundler/gems' ) |