Gem pristine <gem_name> restores installed gems
If you have been directly working or debugging within your gems and wish to revert any changes made, instead of manually undoing all of the changes in each file, you can simply run gem pristine <gem_name>
. This command restores installed gems to their original, pristine state using the files stored in the gem cache.
If you want to check out what options you can pass to it, here is some documentation.
H/T Matt Polito