rubygems-bundler
rubygems-bundler copied to clipboard
Broken with Ruby 2.7.0-preview2
It seems that this gem is broken when used with Ruby 2.7.0-preview2 on Ubuntu 18.04.
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.