Only read default specifications directory when within bundler context
This commit is contained in:
parent
a5fb16c7f5
commit
2cc4b82198
|
@ -278,9 +278,11 @@ module Vagrant
|
||||||
Gem::Specification.find_all{true}.each do |spec|
|
Gem::Specification.find_all{true}.each do |spec|
|
||||||
list[spec.full_name] = spec
|
list[spec.full_name] = spec
|
||||||
end
|
end
|
||||||
|
if(!defined?(::Bundler))
|
||||||
directories += Gem::Specification.dirs.find_all do |path|
|
directories += Gem::Specification.dirs.find_all do |path|
|
||||||
!path.start_with?(Gem.user_dir)
|
!path.start_with?(Gem.user_dir)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
Gem::Specification.each_spec(directories) do |spec|
|
Gem::Specification.each_spec(directories) do |spec|
|
||||||
if !list[spec.full_name]
|
if !list[spec.full_name]
|
||||||
list[spec.full_name] = spec
|
list[spec.full_name] = spec
|
||||||
|
|
Loading…
Reference in New Issue