summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-08-10 00:08:52 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-08-10 00:08:52 +0530
commit888041af40a9e7a9a173439c41f2961de152b39c (patch)
tree383f04eaeec9a96d4ca175be36a1fdeb11c2eaa5 /lib
parent292fb5857c8c4f743675db687feb102e7a7a70c1 (diff)
downloadbundler-888041af40a9e7a9a173439c41f2961de152b39c.tar.gz
Fixed plugin reset in bundler reset
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler.rb4
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