aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/plugin.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-12-12 21:21:35 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-14 20:22:48 +0800
commit5cf6f7f8859a0418bbbe2b608a88557d4f06e098 (patch)
treea9ff0931b28bb64ab072680ba208f90b3fa22c59 /lib/bundler/plugin.rb
parent7564038864bcf7c3cfb2f602e318e9beae17b2f7 (diff)
downloadruby-5cf6f7f8859a0418bbbe2b608a88557d4f06e098.tar.gz
[rubygems/rubygems] Remove more methods now defined in all RubyGems versions
https://github.com/rubygems/rubygems/commit/e015200ffa
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r--lib/bundler/plugin.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb
index 6da9882990..588fa79be8 100644
--- a/lib/bundler/plugin.rb
+++ b/lib/bundler/plugin.rb
@@ -307,7 +307,7 @@ module Bundler
@hooks_by_event = Hash.new {|h, k| h[k] = [] }
load_paths = spec.load_paths
- Bundler.rubygems.add_to_load_path(load_paths)
+ Gem.add_to_load_path(*load_paths)
path = Pathname.new spec.full_gem_path
begin
@@ -342,7 +342,7 @@ module Bundler
# done to avoid conflicts
path = index.plugin_path(name)
- Bundler.rubygems.add_to_load_path(index.load_paths(name))
+ Gem.add_to_load_path(*index.load_paths(name))
load path.join(PLUGIN_FILE_NAME)