Permalink
Browse files

Gem.load_env_plugins instead. thanks @mpapis

  • Loading branch information...
1 parent 4195f48 commit 7ab2fa462b2cb5a2595b475efb22ccb98640f6b8 @hone hone committed Nov 18, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/bundler/cli.rb
View
@@ -213,6 +213,8 @@ def install
Bundler.ui.be_quiet! if opts[:quiet]
Bundler::Fetcher.disable_endpoint = opts["full-index"]
+ # 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"]
@@ -264,6 +266,9 @@ def update(*gems)
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?
clean if options["clean"] && Bundler.settings[:path]

0 comments on commit 7ab2fa4

Please sign in to comment.