Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gem.load_env_plugins instead. thanks @mpapis

  • Loading branch information...
commit 7ab2fa462b2cb5a2595b475efb22ccb98640f6b8 1 parent 4195f48
Terence Lee hone authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/bundler/cli.rb
5 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]
Please sign in to comment.
Something went wrong with that request. Please try again.