Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't call Bundler.preserve_gem_path anymore in Bundler >= 1.12 #12

Open
joallard opened this issue May 30, 2016 · 5 comments
Open

Can't call Bundler.preserve_gem_path anymore in Bundler >= 1.12 #12

joallard opened this issue May 30, 2016 · 5 comments

Comments

@joallard
Copy link

Debundling failed: undefined method `preserve_gem_path' for Bundler:Module
When reporting bugs to https://github.com/ConradIrwin/pry-debundle, please include:
* gem version: 2.5.1
* bundler version: 1.12.5
* pry version: 0.10.1
* ruby version: 2.3.1
* ruby engine: ruby
@joallard
Copy link
Author

joallard commented May 30, 2016

Bundler 1.12 1.12.pre.1 breaks it in 3c94eb74.

- Bundler.preserve_gem_path
+ Bundler.preserve_path_in_environment("GEM_PATH")

@joallard
Copy link
Author

Actually I can't debundle with Bundler 1.12 anymore.

@fgrehm
Copy link

fgrehm commented Jun 8, 2016

Not sure if it will work with this project but if I comment out the preserve_gem_path from here (which is based off this project) I was able to get things working for my use case

HTH

@joallard
Copy link
Author

joallard commented Jul 7, 2016

Indeed, not sure what the effect of the preserve_gem_path is exactly, but the new incantation as of 5131fcd seems to be something like

- Bundler.preserve_gem_path
+ Bundler::EnvironmentPreserver.new(ENV, %w(GEM_PATH)).backup

Still, if I comment the line out, I seem to get most of the functionality.

@joallard joallard changed the title Can't call Bundler.preserve_gem_path anymore Can't call Bundler.preserve_gem_path anymore in Bundler >= 1.12 Jul 7, 2016
joallard added a commit to joallard/pry-debundle that referenced this issue Jul 7, 2016
janlelis added a commit to janlelis/debundle.rb that referenced this issue Jul 25, 2016
@brandondrew
Copy link

I get a similar error:

Loading development environment (Rails 3.2.22.5)

... output from my ~/.pryrc goes here

Debundling failed: undefined method `preserve_gem_path' for Bundler:Module
When reporting bugs to https://github.com/ConradIrwin/pry-debundle, please include:
* gem version: 2.5.2.3
* bundler version: 1.16.2
* pry version: 0.10.4
* ruby version: 2.3.7
* ruby engine: ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants