-
-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathGemfile
More file actions
42 lines (36 loc) · 1.42 KB
/
Copy pathGemfile
File metadata and controls
42 lines (36 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
source 'https://rubygems.org/'
# Find a location or specific version for a gem. place_or_version can be a
# version, which is most often used. It can also be git, which is specified as
# `git://somewhere.git#branch`. You can also use a file source location, which
# is specified as `file://some/location/on/disk`.
def location_for(place_or_version, fake_version = nil)
if place_or_version =~ /^(https[:@][^#]*)#(.*)/
[fake_version, { git: Regexp.last_match(1), branch: Regexp.last_match(2), require: false }].compact
elsif place_or_version =~ %r{^file://(.*)}
['>= 0', { path: File.expand_path(Regexp.last_match(1)), require: false }]
else
[place_or_version, { require: false }]
end
end
gemspec
group :development do
gem 'activesupport'
gem 'aruba', '~> 2.2'
gem 'cucumber', '~> 9.2'
gem 'hiera-eyaml-plaintext'
gem 'openvox', *location_for(ENV['OPENVOX_VERSION']) if ENV['OPENVOX_VERSION']
end
group :release, optional: true do
gem 'faraday-retry', '~> 2.1', require: false
gem 'github_changelog_generator', '~> 1.16.4', require: false
end
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
gem 'codecov', require: false
gem 'simplecov-console', require: false
end
# openvox gem depends on syslog, but doesn't list it as explicit dependency
# until Ruby 3.4, syslog was part of MRI ruby core
# https://github.com/OpenVoxProject/puppet/issues/90
platforms :mri do
gem 'syslog', '>= 0.1', '< 0.5'
end