diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-04-18 14:56:44 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-04-19 05:18:21 +0000 |
| commit | a95b46db067ef5013c20db2340c1b6fd76b3e5df (patch) | |
| tree | 67ee5ae5e236b1e74e2f6c09e76ed4f7f418aa4c | |
| parent | 0a14fee02f5720e6bec5116559e3ae872bc6f40b (diff) | |
[rubygems/rubygems] Track HEAD changes for old PR proposal
https://github.com/rubygems/rubygems/commit/e3d180620c
| -rw-r--r-- | lib/bundler.rb | 1 | ||||
| -rw-r--r-- | lib/bundler/rubygems_integration.rb | 12 | ||||
| -rw-r--r-- | spec/bundler/plugins/hook_spec.rb | 4 |
3 files changed, 15 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 078bf1a311..98a58502be 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -574,6 +574,7 @@ module Bundler raise Gem::InvalidSpecificationException, error_message end.flatten Bundler.rubygems.load_plugin_files(path_plugin_files) + Bundler.rubygems.load_env_plugins @load_plugins_ran = true end diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index da555681f9..494030eab2 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -156,6 +156,18 @@ module Bundler loaded_gem_paths.flatten end + def load_plugins + Gem.load_plugins + end + + def load_plugin_files(plugin_files) + Gem.load_plugin_files(plugin_files) + end + + def load_env_plugins + Gem.load_env_plugins + end + def ui=(obj) Gem::DefaultUserInteraction.ui = obj end diff --git a/spec/bundler/plugins/hook_spec.rb b/spec/bundler/plugins/hook_spec.rb index d20321b126..f6ee0ba210 100644 --- a/spec/bundler/plugins/hook_spec.rb +++ b/spec/bundler/plugins/hook_spec.rb @@ -200,8 +200,8 @@ RSpec.describe "hook plugins" do gem "rack" G - ruby! <<-RUBY - require "#{lib}/bundler" + ruby <<-RUBY + require "bundler" Bundler.require RUBY end |
