Gemfile in vagrant-config_builder-0.14.0 vs Gemfile in vagrant-config_builder-0.15.0
- old
+ new
@@ -1,16 +1,28 @@
source 'https://rubygems.org'
+ruby '2.0.0' # Required by Vagrant 1.4 and newer.
-gemspec
+ENV['TEST_VAGRANT_VERSION'] ||= 'v1.7.4'
+# Wrapping gemspec in the :plugins group causes Vagrant 1.5 and newer to
+# automagically load this plugin during acceptance tests.
+group :plugins do
+ gemspec
+end
+
group :development do
- # We depend on Vagrant for development, but we don't add it as a
- # gem dependency because we expect to be installed within the
- # Vagrant environment itself using `vagrant plugin`.
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
- gem "yard"
- gem "redcarpet"
+ gem 'yard', '~> 0.8.7'
+ gem 'redcarpet'
end
-if File.exists? "#{__FILE__}.local"
- eval(File.read("#{__FILE__}.local"), binding)
+group :test do
+ if ENV['TEST_VAGRANT_VERSION'] == 'HEAD'
+ gem 'vagrant', :github => 'mitchellh/vagrant', :branch => 'master'
+ else
+ gem 'vagrant', :github => 'mitchellh/vagrant', :tag => ENV['TEST_VAGRANT_VERSION']
+ end
+
+ # Pinned on 12/10/2014. Compatible with Vagrant 1.5.x, 1.6.x and 1.7.x.
+ gem 'vagrant-spec', :github => 'mitchellh/vagrant-spec', :ref => '1df5a3a'
end
+
+eval_gemfile "#{__FILE__}.local" if File.exists? "#{__FILE__}.local"