ConradIrwin / pry-debundle

Allows you to use gems not in your Gemfile from Pry.
MIT License
50 stars 9 forks source link

Foolproof debundle #9

Closed brainopia closed 10 years ago

brainopia commented 10 years ago

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.

brainopia commented 10 years ago

@ConradIrwin any thoughts?

ConradIrwin commented 10 years ago

I assume you tested it? If so looks good to me :).

ConradIrwin commented 10 years ago

Released as v0.8

brainopia commented 10 years ago

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.