Merge pull request #5785 from mitchellh/sethvargo/ignore_hidden_dirs

Ignore hidden directories
This commit is contained in:
Seth Vargo 2015-06-02 17:44:29 -04:00
commit dc60d6b82c
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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"