Merge pull request #5785 from mitchellh/sethvargo/ignore_hidden_dirs
Ignore hidden directories
This commit is contained in:
commit
dc60d6b82c
|
@ -225,6 +225,7 @@ module Vagrant
|
|||
# we have.
|
||||
child.children(true).each do |versiondir|
|
||||
next if !versiondir.directory?
|
||||
next if versiondir.basename.to_s.start_with?(".")
|
||||
|
||||
version = versiondir.basename.to_s
|
||||
|
||||
|
@ -270,6 +271,8 @@ module Vagrant
|
|||
|
||||
versions = box_directory.children(true).map do |versiondir|
|
||||
next if !versiondir.directory?
|
||||
next if versiondir.basename.to_s.start_with?(".")
|
||||
|
||||
version = versiondir.basename.to_s
|
||||
Gem::Version.new(version)
|
||||
end.compact
|
||||
|
|
|
@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|||
s.required_rubygems_version = ">= 1.3.6"
|
||||
s.rubyforge_project = "vagrant"
|
||||
|
||||
s.add_dependency "bundler", ">= 1.5.2", "< 1.8.0"
|
||||
s.add_dependency "bundler", ">= 1.5.2"#, "< 1.8.0"
|
||||
s.add_dependency "childprocess", "~> 0.5.0"
|
||||
s.add_dependency "erubis", "~> 2.7.0"
|
||||
s.add_dependency "i18n", ">= 0.6.0", "<= 0.8.0"
|
||||
|
|
Loading…
Reference in New Issue