mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
0a14fee02f
commit
a95b46db06
3 changed files with 15 additions and 2 deletions
|
@ -574,6 +574,7 @@ module Bundler
|
||||||
raise Gem::InvalidSpecificationException, error_message
|
raise Gem::InvalidSpecificationException, error_message
|
||||||
end.flatten
|
end.flatten
|
||||||
Bundler.rubygems.load_plugin_files(path_plugin_files)
|
Bundler.rubygems.load_plugin_files(path_plugin_files)
|
||||||
|
Bundler.rubygems.load_env_plugins
|
||||||
@load_plugins_ran = true
|
@load_plugins_ran = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -156,6 +156,18 @@ module Bundler
|
||||||
loaded_gem_paths.flatten
|
loaded_gem_paths.flatten
|
||||||
end
|
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)
|
def ui=(obj)
|
||||||
Gem::DefaultUserInteraction.ui = obj
|
Gem::DefaultUserInteraction.ui = obj
|
||||||
end
|
end
|
||||||
|
|
|
@ -200,8 +200,8 @@ RSpec.describe "hook plugins" do
|
||||||
gem "rack"
|
gem "rack"
|
||||||
G
|
G
|
||||||
|
|
||||||
ruby! <<-RUBY
|
ruby <<-RUBY
|
||||||
require "#{lib}/bundler"
|
require "bundler"
|
||||||
Bundler.require
|
Bundler.require
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue