summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-08-06 12:21:23 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commit9fa5c4cd0721f720282dfc9efe5657b136c7e99b (patch)
treefb2e1f497b5f9fbd48907bb9f8b5449b113c17b5 /lib
parent21db5876caeb8f67dfef6f9010e4ab7639d39c1b (diff)
[rubygems/rubygems] Also load user installed rubygems plugins
https://github.com/rubygems/rubygems/commit/82960c262f
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb4
1 files changed, 3 insertions, 1 deletions
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
##