rubygems-bundler icon indicating copy to clipboard operation
rubygems-bundler copied to clipboard

Broken with Ruby 2.7.0-preview2

Open larouxn opened this issue 5 years ago • 1 comments

It seems that this gem is broken when used with Ruby 2.7.0-preview2 on Ubuntu 18.04. Screen Shot 2019-10-23 at 08 30 35

cannot load such file -- rubygems-bundler/noexec

Note, we can still run commands with bundle exec, as expected.

larouxn avatar Oct 23 '19 00:10 larouxn

The issue is caused by https://github.com/rvm/bundler-unload/blob/master/lib/bundler-unload.rb expecting Bundler.rubygems to be one of Bundler::RubygemsIntegration::[Legacy|Modern|Future] classes. Bundler 2.1 does not define those classes anymore, so Bundler.rubygems.class is Bundler::RubygemsIntegration and therefore the monkeypatch does not work, leading to the error.

Aqualon avatar Oct 27 '19 16:10 Aqualon