Last active
December 28, 2015 17:39
-
-
Save pbougie/7536892 to your computer and use it in GitHub Desktop.
Remove all non-default gems from Ruby 2. Update default gems to latest versions. Install Bundler.
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
#!/bin/bash | |
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done | |
gem update | |
gem install bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Execute command directly using cURL:
curl https://gist.github.com/pbougie/7536892/raw/gem-reset.sh | sh