Last Updated: February 25, 2016
· drywheattoast

Rebuild bundler gems with native extensions

If you are using bundler to manage your project's gem dependencies, and you need to rebuild the native extensions for one of those gems, you can do so like this:

bundle exec gem pristine <name>

This is pretty helpful whenever you update a system package (headers, definitions, etc...) and need your gems to recompile against those newer libraries.

See docs on gem pristine for more details.