Josh Hepworth

Rebuilding Bundled Gems with Native Extensions

A few times in the past month I've needed to reinstall gems with native extensions, and without changing the version installed I didn't know how to do it without manually deleting the related files in my .bundle directory. Turns out you just prepend bundle exec to the gem pristine command.

$ bundle exec gem pristine ${gemname}