Created
August 24, 2016 23:57
-
-
Save sskylar/d2a0b0ba8285e37ff67c3f30080bd9f5 to your computer and use it in GitHub Desktop.
Install every version of a particular Ruby gem
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
for i in $(gem search '^GEMNAME$' --all \ | |
| grep -o '\((.*)\)$' \ | |
| tr -d '() ' \ | |
| tr ',' "\n") | |
do | |
gem install GEMNAME -v $i --no-document | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment