forked from puppetlabs/puppet-strings
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGemfile
More file actions
40 lines (29 loc) · 1.08 KB
/
Copy pathGemfile
File metadata and controls
40 lines (29 loc) · 1.08 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
# frozen_string_literal: true
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
gemspec
def location_for(place_or_version, fake_version = nil)
git_url_regex = /\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?/
file_url_regex = %r{\Afile://(?<path>.*)}
if place_or_version && (git_url = place_or_version.match(git_url_regex))
[fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
elsif place_or_version && (file_url = place_or_version.match(file_url_regex))
['>= 0', { path: File.expand_path(file_url[:path]), require: false }]
else
[place_or_version, { require: false }]
end
end
group :development do
gem 'json_spec', '~> 1.1', '>= 1.1.5'
gem 'mdl', '~> 0.11.0'
gem 'mocha', '>= 2.7', '< 4'
gem 'rake'
gem 'rspec', '~> 3.1'
gem 'rspec-its', '~> 2.0'
gem 'redcarpet'
end
# https://github.com/OpenVoxProject/puppet/issues/90
gem 'syslog', '~> 0.3' if RUBY_VERSION >= '3.4'
group :release, optional: true do
gem 'faraday-retry', '~> 2.1', require: false
gem 'github_changelog_generator', '~> 1.17', require: false
end