From a3718adf29fb63c8cf86719f909cd3fed5f0c022 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sun, 10 Jul 2016 11:06:02 -0300 Subject: [PATCH] [Bundler] Make reset! reset more stuff --- lib/bundler.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/bundler.rb b/lib/bundler.rb index afc243c4f58..de186ef3ed0 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -89,7 +89,7 @@ def bin_path def setup(*groups) # Return if all groups are already loaded - return @setup if defined?(@setup) + return @setup if defined?(@setup) && @setup definition.validate_ruby! @@ -386,6 +386,11 @@ def reset! @root = nil @settings = nil @definition = nil + @setup = nil + @load = nil + @locked_gems = nil + @bundle_path = nil + @bin_path = nil if defined?(@rubygems) && @rubygems rubygems.undo_replacements @rubygems = nil