From 9fa5c4cd0721f720282dfc9efe5657b136c7e99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 6 Aug 2021 12:21:23 +0200 Subject: [rubygems/rubygems] Also load user installed rubygems plugins https://github.com/rubygems/rubygems/commit/82960c262f --- lib/rubygems.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rubygems.rb b/lib/rubygems.rb index a631cde8bf..17881e2e0e 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1050,7 +1050,9 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} # Find rubygems plugin files in the standard location and load them def self.load_plugins - load_plugin_files Gem::Util.glob_files_in_dir("*#{Gem.plugin_suffix_pattern}", plugindir) + Gem.path.each do |gem_path| + load_plugin_files Gem::Util.glob_files_in_dir("*#{Gem.plugin_suffix_pattern}", plugindir(gem_path)) + end end ## -- cgit v1.2.3