Skip to content

Commit

Permalink
[rubygems/rubygems] Track HEAD changes for old PR proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Apr 19, 2024
1 parent 0a14fee commit a95b46d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/bundler.rb
Expand Up @@ -574,6 +574,7 @@ def load_plugins(definition = Bundler.definition)
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

Expand Down
12 changes: 12 additions & 0 deletions lib/bundler/rubygems_integration.rb
Expand Up @@ -156,6 +156,18 @@ def loaded_gem_paths
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
Expand Down
4 changes: 2 additions & 2 deletions spec/bundler/plugins/hook_spec.rb
Expand Up @@ -200,8 +200,8 @@ def install_gemfile_and_bundler_require
gem "rack"
G

ruby! <<-RUBY
require "#{lib}/bundler"
ruby <<-RUBY
require "bundler"
Bundler.require
RUBY
end
Expand Down

0 comments on commit a95b46d

Please sign in to comment.