Persisting gems.
Correction on repository revert in retrieve_gems method.