-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGemfile
More file actions
40 lines (34 loc) · 1.15 KB
/
Copy pathGemfile
File metadata and controls
40 lines (34 loc) · 1.15 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
# This file is generated by ModuleSync, do not edit.
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
def location_from_env(env, default_location = [])
if ENV[env]
location = ENV[env]
if location.match?(%r{^(?<git_location>(?:git|https?)[:@][^#]*)#(?<git_branch>.*)})
[{ git: git_location, branch: git_branch, require: false }]
elsif location.match?(%r{^file://(?<filename>.*)})
['>= 0', { path: File.expand_path(filename), require: false }]
else
[location, { require: false }]
end
else
default_location
end
end
group :development, :test do
gem 'awesome_print'
gem 'metadata-json-lint'
gem 'puppet-lint' # , '~> 2'
gem 'puppet-syntax'
gem 'puppetlabs_spec_helper' # , '>= 1.2.1'
gem 'rubocop', '0.49.1' # puppet pdk pins this version
gem 'rubocop-rspec' # , '~> 1.15'
end
group :doc do
gem 'puppet-strings' # , '~> 1.0.0'
gem 'rdoc'
gem 'redcarpet'
end
gem 'facter', *location_from_env('FACTER_GEM_VERSION')
gem 'puppet', *location_from_env('PUPPET_GEM_VERSION')
eval(File.read("#{__FILE__}.local"), binding) if File.exist? "#{__FILE__}.local" # rubocop:disable Security/Eval