forked from simp/rubygem-simp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
57 lines (46 loc) · 1.3 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
gem_sources = ENV.fetch('GEM_SERVERS','https://rubygems.org').split(/[, ]+/)
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')
gem 'rake', '>= 12.3.3'
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['>= 5.12.1', '< 6']
gem 'simp-beaker-helpers', ENV['SIMP_BEAKER_HELPERS_VERSION'] || ['>= 1.28.0', '< 2']
gem 'r10k', ENV.fetch('R10k_VERSION', '~>3')
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-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)
end
end