2013-03-26 18:55:30 -05:00
|
|
|
source 'https://rubygems.org'
|
|
|
|
|
|
|
|
# Specify your gem's dependencies in vagrant-libvirt.gemspec
|
|
|
|
gemspec
|
|
|
|
|
|
|
|
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`.
|
2020-04-23 03:12:04 -05:00
|
|
|
vagrant_version = ENV['VAGRANT_VERSION']
|
|
|
|
if vagrant_version
|
2017-11-21 03:05:49 -06:00
|
|
|
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
|
2020-04-23 03:12:04 -05:00
|
|
|
tag: vagrant_version
|
2015-07-29 11:35:09 -05:00
|
|
|
else
|
2017-11-21 03:05:49 -06:00
|
|
|
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git'
|
2015-07-29 11:35:09 -05:00
|
|
|
end
|
2016-01-25 13:07:14 -06:00
|
|
|
|
2020-04-23 03:12:04 -05:00
|
|
|
begin
|
|
|
|
raise if vagrant_version.empty?
|
|
|
|
vagrant_version = vagrant_version[1..-1] if vagrant_version && vagrant_version.start_with?('v')
|
|
|
|
vagrant_gem_version = Gem::Version.new(vagrant_version)
|
|
|
|
rescue
|
|
|
|
# default to newer if unable to parse
|
|
|
|
vagrant_gem_version = Gem::Version.new('2.2.8')
|
|
|
|
end
|
|
|
|
|
|
|
|
if vagrant_gem_version <= Gem::Version.new('2.2.7')
|
|
|
|
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
|
|
|
|
else
|
2020-10-27 06:51:04 -05:00
|
|
|
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :branch => "main"
|
2020-04-23 03:12:04 -05:00
|
|
|
end
|
2016-01-25 13:07:14 -06:00
|
|
|
|
2015-04-15 02:45:29 -05:00
|
|
|
gem 'pry'
|
2013-03-26 18:55:30 -05:00
|
|
|
end
|
|
|
|
|
2014-03-15 19:47:29 -05:00
|
|
|
group :plugins do
|
2017-08-03 10:34:55 -05:00
|
|
|
gemspec
|
2014-03-15 19:47:29 -05:00
|
|
|
end
|