Skip to content

Instantly share code, notes, and snippets.

@pbougie
Last active December 28, 2015 17:39
Show Gist options
  • Save pbougie/7536892 to your computer and use it in GitHub Desktop.
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.
#!/bin/bash
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
gem update
gem install bundler
@pbougie
Copy link
Author

pbougie commented Nov 18, 2013

Execute command directly using cURL:
curl https://gist.github.com/pbougie/7536892/raw/gem-reset.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment