Merge pull request #7376 from karlkfi/karlkfi/gem-all

Don't restore Gem::Specification.all if it's not being replaced
This commit is contained in:
Seth Vargo 2016-05-31 17:59:25 -04:00
commit 084a8e8fe7
1 changed files with 0 additions and 2 deletions

View File

@ -271,7 +271,6 @@ module Vagrant
Gem.paths = ENV
# Reset the all specs override that Bundler does
old_all = Gem::Specification._all
Gem::Specification.reset
# /etc/gemrc and so on.
@ -299,7 +298,6 @@ module Vagrant
Gem.configuration = old_config
Gem.paths = ENV
Gem::Specification.all = old_all
end
# This method returns a proper "tempfile" on disk. Ruby's Tempfile class