summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 2e7bc6f549..ad9869a519 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -216,6 +216,9 @@ module Bundler
Bundler.settings.without = opts[:without]
Bundler.ui.be_quiet! if opts[:quiet]
+ # rubygems plugins sometimes hook into the gem install process
+ Gem.load_env_plugins if Gem.respond_to?(:load_env_plugins)
+
Installer.install(Bundler.root, Bundler.definition, opts)
Bundler.load.cache if Bundler.root.join("vendor/cache").exist? && !options["no-cache"]
@@ -265,6 +268,9 @@ module Bundler
end
opts = {"update" => true, "local" => options[:local]}
+ # rubygems plugins sometimes hook into the gem install process
+ Gem.load_env_plugins if Gem.respond_to?(:load_env_plugins)
+
Installer.install Bundler.root, Bundler.definition, opts
Bundler.load.cache if Bundler.root.join("vendor/cache").exist?
Bundler.ui.confirm "Your bundle is updated! " +