Created
April 22, 2012 22:49
-
-
Save tsnow/2467382 to your computer and use it in GitHub Desktop.
Reinstall all gems with extensions
This file contains hidden or 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 j in `gem list | awk '{ print $1 }'`; do | |
gem specification $j | | |
ruby -ryaml -e 'b=YAML::load(ARGF); a=b.instance_variable_get(:@ivars)["extensions"]; puts a if !a.empty?; exit (!a.empty? ? 0 : 1)' && | |
gem pristine $j; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Determine the native extension gems for a Gemfile.lock.