Skip to content

Instantly share code, notes, and snippets.

@sskylar
Created August 24, 2016 23:57
Show Gist options
  • Save sskylar/d2a0b0ba8285e37ff67c3f30080bd9f5 to your computer and use it in GitHub Desktop.
Save sskylar/d2a0b0ba8285e37ff67c3f30080bd9f5 to your computer and use it in GitHub Desktop.
Install every version of a particular Ruby gem
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