diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-08-10 00:08:52 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-08-10 00:08:52 +0530 |
commit | 888041af40a9e7a9a173439c41f2961de152b39c (patch) | |
tree | 383f04eaeec9a96d4ca175be36a1fdeb11c2eaa5 /lib/bundler.rb | |
parent | 292fb5857c8c4f743675db687feb102e7a7a70c1 (diff) | |
download | bundler-888041af40a9e7a9a173439c41f2961de152b39c.tar.gz |
Fixed plugin reset in bundler reset
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 6ed4de3815..58d8f03920 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -389,11 +389,13 @@ module Bundler @locked_gems = nil @bundle_path = nil @bin_path = nil + + Plugin.reset! + return unless defined?(@rubygems) && @rubygems rubygems.undo_replacements rubygems.reset @rubygems = nil - Plugin.reset! end private |