Skip to content

Commit 3350c07

Browse files
committed
update Gemfile and test Vagrantfile to support vagrant 1.5
relates to #80
1 parent c5e3b5e commit 3350c07

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
source 'https://rubygems.org'
22

33
group :development do
4-
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.2.7'
4+
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.5.1'
55
end
66

7-
gemspec
7+
group :plugins do
8+
gemspec
9+
end

test/Vagrantfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# -*- mode: ruby -*-
22
# vi: set ft=ruby :
33

4-
Vagrant.require_plugin('vagrant-hostmanager')
4+
if Gem::Version.new(::Vagrant::VERSION) < Gem::Version.new('1.5')
5+
Vagrant.require_plugin('vagrant-hostmanager')
6+
end
57

68
Vagrant.configure('2') do |config|
79
config.vm.box = 'precise64'

0 commit comments

Comments
 (0)