Skip to content

Commit

Permalink
based on vagrant repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hariszaf committed Aug 11, 2024
1 parent 5c56357 commit 4392d51
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# frozen_string_literal: true

source 'https://rubygems.org'

group :test 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`.
vagrant_version = ENV['VAGRANT_VERSION']
if !vagrant_version.nil? && !vagrant_version.empty?
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
:ref => vagrant_version
else
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
:branch => 'main'
end

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

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
elsif vagrant_gem_version <= Gem::Version.new('2.2.7')
gem 'vagrant-spec', :git => 'https://github.com/hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
else
gem 'vagrant-spec', :git => 'https://github.com/hashicorp/vagrant-spec', :branch => "main"
end

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0')
gem 'rexml'
end

gem 'pry'
gem 'simplecov'
gem 'simplecov-lcov'
end

group :plugins do
gemspec
end

group :development do
gem "test-prof", require: false
gem "ruby-prof", ">= 0.17.0", require: false
gem 'stackprof', '>= 0.2.9', require: false
gem 'rubocop', require: false
end

gem 'parallel_tests', group: [:development, :test], require: false

REPO_NAME=$(jq -r ".repository.name" "$GITHUB_EVENT_PATH")

0 comments on commit 4392d51

Please sign in to comment.