-
Notifications
You must be signed in to change notification settings - Fork 13
/
Gemfile
59 lines (47 loc) · 1.37 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
48
49
50
51
52
53
54
55
56
57
58
59
# 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 'bundler'
gem 'facter'
gem 'highline', :path => 'ext/gems/highline'
gem 'puppet', ENV.fetch('PUPPET_VERSION', ['>= 7', '< 9'])
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['>= 5.12.1', '< 6']
gem 'r10k', ENV.fetch('R10k_VERSION', '~> 4')
gem 'simp-beaker-helpers', ENV['SIMP_BEAKER_HELPERS_VERSION'] || ['>= 1.28.0', '< 2']
group :testing do
# to parse YUM repo files in `simp config` test
gem 'inifile'
# bootstrap common environment variables
gem 'dotenv'
# Ruby code coverage
gem 'simplecov'
# Testing framework
gem 'rspec'
gem 'rspec-its'
end
# nice-to-have gems (for debugging)
group :development do
# enhanced REPL + debugging environment
gem 'pry'
gem 'pry-byebug'
gem 'pry-doc'
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop-rspec'
end
# Evaluate extra gemfiles if they exist
extra_gemfiles = [
ENV['EXTRA_GEMFILE'] || '',
"#{__FILE__}.project",
"#{__FILE__}.local",
File.join(Dir.home, '.gemfile')
]
extra_gemfiles.each do |gemfile|
if File.file?(gemfile) && File.readable?(gemfile)
eval(File.read(gemfile), binding) # rubocop:disable Security/Eval
end
end