Skip to content

Instantly share code, notes, and snippets.

@maxplomer
Created July 13, 2015 00:53
Show Gist options
  • Save maxplomer/d8021b57f17fe578b4f8 to your computer and use it in GitHub Desktop.
Save maxplomer/d8021b57f17fe578b4f8 to your computer and use it in GitHub Desktop.
uninstall all gems
output = `gem list --no-versions`
output = output.split("\n")
output.each do |gem|
system("gem uninstall #{gem}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment