Style fixes
This commit is contained in:
parent
4c8fe42d70
commit
345935887f
|
@ -224,7 +224,8 @@ module Vagrant
|
||||||
# Otherwise, traverse the subdirectories and see what versions
|
# Otherwise, traverse the subdirectories and see what versions
|
||||||
# we have.
|
# we have.
|
||||||
child.children(true).each do |versiondir|
|
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
|
version = versiondir.basename.to_s
|
||||||
|
|
||||||
|
@ -269,7 +270,9 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
versions = box_directory.children(true).map do |versiondir|
|
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
|
version = versiondir.basename.to_s
|
||||||
Gem::Version.new(version)
|
Gem::Version.new(version)
|
||||||
end.compact
|
end.compact
|
||||||
|
|
|
@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
||||||
s.required_rubygems_version = ">= 1.3.6"
|
s.required_rubygems_version = ">= 1.3.6"
|
||||||
s.rubyforge_project = "vagrant"
|
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 "childprocess", "~> 0.5.0"
|
||||||
s.add_dependency "erubis", "~> 2.7.0"
|
s.add_dependency "erubis", "~> 2.7.0"
|
||||||
s.add_dependency "i18n", ">= 0.6.0", "<= 0.8.0"
|
s.add_dependency "i18n", ">= 0.6.0", "<= 0.8.0"
|
||||||
|
|
Loading…
Reference in New Issue