Closed brainopia closed 10 years ago
@ConradIrwin any thoughts?
I assume you tested it? If so looks good to me :).
Released as v0.8
Yeah, I've tested with MRI 2.0 and 2.1. And both methods have existed for a long time, so people with old rubygems and bundler should be covered.
Gem::Specification.reset is not enough, since it would pick up the same GEM_HOME which was set by bundler. So we need to restore it first, then clear gem paths (to pickup a change in ENV) and then continue with previous hack.