rvm/rubygems-bundler

Broken with Ruby 2.7.0-preview2

larouxn opened this issue · 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.

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.