Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[Bundler] Make reset! reset more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jul 19, 2016
1 parent c144eb6 commit a3718ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a3718ad

Please sign in to comment.