vagrant-libvirt/Gemfile
Joey Korkames 6dfff8414f
Gemfile: update branch-name of 'vagrant-spec' (#1163)
fixes `bundle install` step from the README, currently broken by https://github.com/hashicorp/vagrant-spec/issues/41

```
~/src/vagrant-libvirt $ bundle install
....
Fetching git://github.com/hashicorp/vagrant-spec.git
fatal: Needed a single revision
Revision master does not exist in the repository git://github.com/hashicorp/vagrant-spec.git. Maybe you misspelled it?
```


Works fine now on my workstation with the new name:
```
Using vagrant-spec 0.0.1 from git://github.com/hashicorp/vagrant-spec.git (at main@b6b56c8)
Bundle complete! 10 Gemfile dependencies, 73 gems now installed.
```
2020-10-27 11:51:04 +00:00

41 lines
1.2 KiB
Ruby

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`.
vagrant_version = ENV['VAGRANT_VERSION']
if vagrant_version
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
tag: vagrant_version
else
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git'
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
if vagrant_gem_version <= Gem::Version.new('2.2.7')
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
else
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :branch => "main"
end
gem 'pry'
end
group :plugins do
gemspec
end
gem 'coveralls', require: false