Permalink
Browse files

Gem.load_env_plugins instead. thanks @mpapis

Conflicts:

	lib/bundler/cli.rb
  • Loading branch information...
hone authored and mpapis committed Nov 18, 2011
1 parent 0e00918 commit 6c102eafaa98c9b534a7543111bb0ea5aa8d1a7b
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/bundler/cli.rb
View
@@ -216,6 +216,9 @@ def install(path = nil)
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 @@ 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?
Bundler.ui.confirm "Your bundle is updated! " +

0 comments on commit 6c102ea

Please sign in to comment.