diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 74c34e84a..a7599f7c2 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -224,7 +224,8 @@ module Vagrant # Otherwise, traverse the subdirectories and see what versions # we have. child.children(true).each do |versiondir| - next if !versiondir.directory? || versiondir.basename.to_s[0] == '.' + next if !versiondir.directory? + next if versiondir.basename.to_s.start_with?(".") version = versiondir.basename.to_s @@ -269,7 +270,9 @@ module Vagrant end versions = box_directory.children(true).map do |versiondir| - next if !versiondir.directory? || versiondir.basename.to_s[0] == '.' + next if !versiondir.directory? + next if versiondir.basename.to_s.start_with?(".") + version = versiondir.basename.to_s Gem::Version.new(version) end.compact diff --git a/vagrant.gemspec b/vagrant.gemspec index 00b5ebb4c..a23a42874 100644 --- a/vagrant.gemspec +++ b/vagrant.gemspec @@ -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"