2021-06-30 07:27:03 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-03-26 18:55:30 -05:00
|
|
|
source 'https://rubygems.org'
|
|
|
|
|
2023-08-15 06:19:09 -05:00
|
|
|
group :test do
|
2013-03-26 18:55:30 -05:00
|
|
|
# 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']
|
2021-04-07 13:41:28 -05:00
|
|
|
if !vagrant_version.nil? && !vagrant_version.empty?
|
2017-11-21 03:05:49 -06:00
|
|
|
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
|
2021-04-07 13:41:28 -05:00
|
|
|
:ref => vagrant_version
|
2015-07-29 11:35:09 -05:00
|
|
|
else
|
2021-04-07 13:41:28 -05:00
|
|
|
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
|
|
|
|
:branch => 'main'
|
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
|
|
|
|
|
2022-08-08 16:11:10 -05:00
|
|
|
vagrant_spec_version = ENV['VAGRANT_SPEC_VERSION']
|
|
|
|
if !vagrant_spec_version.nil? && !vagrant_spec_version.empty?
|
|
|
|
gem 'vagrant-spec', :git => 'https://github.com/hashicorp/vagrant-spec', :ref => vagrant_spec_version
|
2021-09-11 08:32:42 -05:00
|
|
|
elsif vagrant_gem_version <= Gem::Version.new('2.2.7')
|
2022-05-06 14:25:50 -05:00
|
|
|
gem 'vagrant-spec', :git => 'https://github.com/hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
|
2020-04-23 03:12:04 -05:00
|
|
|
else
|
2022-05-06 14:25:50 -05:00
|
|
|
gem 'vagrant-spec', :git => 'https://github.com/hashicorp/vagrant-spec', :branch => "main"
|
2020-04-23 03:12:04 -05:00
|
|
|
end
|
2016-01-25 13:07:14 -06:00
|
|
|
|
2021-04-07 13:41:28 -05:00
|
|
|
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0')
|
|
|
|
gem 'rexml'
|
|
|
|
end
|
|
|
|
|
2015-04-15 02:45:29 -05:00
|
|
|
gem 'pry'
|
2021-12-03 06:50:02 -06:00
|
|
|
gem 'simplecov'
|
|
|
|
gem 'simplecov-lcov'
|
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
|
2022-09-28 13:23:25 -05:00
|
|
|
|
2023-08-15 06:19:09 -05:00
|
|
|
group :development do
|
2022-09-28 13:23:25 -05:00
|
|
|
gem "test-prof", require: false
|
|
|
|
gem "ruby-prof", ">= 0.17.0", require: false
|
|
|
|
gem 'stackprof', '>= 0.2.9', require: false
|
2023-08-15 06:19:09 -05:00
|
|
|
gem 'rubocop', require: false
|
2022-09-28 13:23:25 -05:00
|
|
|
end
|
2022-11-08 10:28:32 -06:00
|
|
|
|
|
|
|
gem 'parallel_tests', group: [:development, :test], require: false
|