-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathGemfile
47 lines (39 loc) · 1.52 KB
/
Gemfile
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
43
44
45
46
47
# frozen_string_literal: true
gem_sources = ENV.fetch('GEM_SERVERS', 'https://rubygems.org').split(%r{[, ]+})
gem_sources.each { |gem_source| source gem_source }
# read dependencies in from the gemspec
gemspec
# mandatory gems
gem 'rake'
group :system_tests do
beaker_gem_options = ENV.fetch('BEAKER_GEM_OPTIONS', ['>= 4.28.1', '< 7.0.0'])
if beaker_gem_options.to_s.include?(':')
# Just pass in BEAKER_GEM_OPTIONS as a string that would represent the usual
# hash of options.
#
# Something like: BEAKER_GEM_OPTIONS=':git => "https://my.repo/beaker.git", :tag => "1.2.3"'
#
# No, this isn't robust, but it's not really an 'every day' sort of thing
# and safer than an `eval`
begin
beaker_gem_options = Hash[
beaker_gem_options.split(',').
# Split passed options on k/v pairs
map { |x| x.gsub('"', '').strip.split(%r{:\s|\s+=>\s+}) }. # Allow for either format hash keys
map { |k, v| [k.delete(':').to_sym, v.strip] } # Convert all keys to symbols
] # Convert the whole thing to a valid Hash
rescue StandardError => e
raise "Invalid BEAKER_GEM_OPTIONS: '#{beaker_gem_options}' => '#{e}'"
end
end
gem 'beaker', beaker_gem_options
gem 'bcrypt_pbkdf'
gem 'beaker-rspec'
gem 'beaker-windows'
gem 'ed25519'
gem 'net-ssh'
gem 'puppet', ENV.fetch('PUPPET_VERSION', ['>= 7.0.0', '< 9.0.0'])
gem 'puppetlabs_spec_helper', '>= 4.0.0', '< 8.0.0'
gem 'rubocop'
gem 'rubocop-rspec'
end