Edouard CHIN 2026-02-28 00:47:47 +0000 (Sat, 28 Feb 2026)
New Revision: f57af84dba
https://github.com/ruby/ruby/commit/f57af84dba
Log:
[ruby/rubygems] Fix plugin new version not registering:
- ### Problem
When a plugin in the Gemfile is updated to a new version, it will
be downloaded but will not be registered. The old version of the
plugin will be loaded when Bundler is invoked.
### Context
The problem is in the `Index#installed?` method that only checks for
the plugin name in the index. If it finds one, it skips the
registration.
### Solution
Check whether the registed plugin load paths matche the new plugin
one. If not, register the new plugin which will override the
previous one in the index.
https://github.com/ruby/rubygems/commit/ac65001055
Modified files:
lib/bundler/plugin.rb
lib/bundler/plugin/index.rb
spec/bundler/bundler/plugin_spec.rb
spec/bundler/plugins/install_spec.rb