Skip to content

Instantly share code, notes, and snippets.

@tomquas
Created March 9, 2015 09:23
Show Gist options
  • Save tomquas/e2db9e8870f762ad2fe6 to your computer and use it in GitHub Desktop.
Save tomquas/e2db9e8870f762ad2fe6 to your computer and use it in GitHub Desktop.
#!/bin/sh
gem dependency | grep ^Gem | cut -d' ' -f2 | sed -e 's/\(.*\)-[0-9]\.[0-9.]*/\1/' | uniq
@tomquas
Copy link
Author

tomquas commented Mar 9, 2015

sample usage:

$ gemtld.sh > /tmp/gems && chruby x.y && cat /tmp/gems | xargs gem install --

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