diff options
-rw-r--r-- | leap_cli.gemspec | 2 | ||||
-rw-r--r-- | lib/leap_cli/commands/vagrant.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/leap_cli.gemspec b/leap_cli.gemspec index 1a37ef3..73316c2 100644 --- a/leap_cli.gemspec +++ b/leap_cli.gemspec @@ -57,7 +57,7 @@ spec = Gem::Specification.new do |s| s.add_runtime_dependency('tee') # network gems - s.add_runtime_dependency('capistrano', '>= 2.13.5') + s.add_runtime_dependency('capistrano', '~> 2.13.5') #s.add_runtime_dependency('supply_drop') # ^^ currently vendored diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb index e674c75..5248bfd 100644 --- a/lib/leap_cli/commands/vagrant.rb +++ b/lib/leap_cli/commands/vagrant.rb @@ -130,7 +130,7 @@ module LeapCli; module Commands end def vagrant_version - minor_version = `vagrant --version|cut -d' ' -f 3 | cut -d'.' -f 2`.to_i + minor_version = `vagrant --version | rev | cut -d'.' -f 2`.to_i version = case minor_version when 1..9 then 2 when 0 then 1 |