-
Notifications
You must be signed in to change notification settings - Fork 13
/
simp-cli.gemspec
69 lines (62 loc) · 2.6 KB
/
simp-cli.gemspec
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
60
61
62
63
64
65
66
67
68
69
$: << File.expand_path( '../lib/', __FILE__ )
require 'simp/cli/version'
require 'date'
Gem::Specification.new do |s|
s.name = 'simp-cli'
s.date = Date.today.to_s
s.summary = 'a cli interface to configure/manage SIMP'
s.description = <<-EOF
simp-cli provides the 'simp' command to configure and manage SIMP.
EOF
s.version = Simp::Cli::VERSION
s.license = 'Apache-2.0'
s.email = '[email protected]'
s.homepage = 'https://github.com/simp/rubygem-simp-cli'
s.authors = [
'Trevor Vaughan',
'Chris Tessmer',
'Kendall Moore',
'Nick Markowski',
'Adam Yohrling',
'Morgan Haskel',
]
s.metadata = {
'issue_tracker' => 'https://github.com/simp/rubygem-simp-cli/issues'
}
s.executables = 'simp'
# gem dependencies
# for the published gem
s.add_runtime_dependency 'highline', '>= 2.0.0', '< 3.0'
#### NOTE: SIMP_RPM_BUILD
###
### In (RH)EL, RPMs for some vendor-provided ruby libraries are not
### distributed as rubygems, but insert themselves directly into the OS's
### ruby $LOAD_PATH. The (autogenerated) binstub in EL will then fail if
### they were defined as dependencies in the original .gemspec (e.g., here).
###
### As a workaround for distributing this gems as an RPM:
###
### When the environment variable $SIMP_RPM_BUILD is set, the following
### dependencies will not be included in the .gemspec dependencies:
#### ------------
unless ['yes', 'true'].include?(ENV['SIMP_RPM_BUILD']) || ['yes', 'true'].include?(ENV['SIMP_CLI_GEMSPEC_NO_PUPPET_VERSION'])
s.add_runtime_dependency 'puppet', '>= 7', '< 9'
end
#### ------------
# for development
s.add_development_dependency 'rake', '>= 12.3.3'
s.add_development_dependency 'rspec', '~> 3'
s.add_development_dependency 'rspec-its', '~> 1'
s.add_development_dependency 'listen', '~> 3.0.0'
s.add_development_dependency 'guard', '~> 2'
s.add_development_dependency 'guard-shell', '~> 0'
s.add_development_dependency 'guard-rspec', '~> 4'
s.add_development_dependency 'pry', '~> 0'
s.add_development_dependency 'pry-doc', '~> 1'
s.add_development_dependency 'dotenv', '~> 2'
s.add_development_dependency 'rubocop', '~> 1'
# simple text description of external requirements (for humans to read)
s.requirements << 'SIMP OS installation'
# ensure the gem is built out of versioned files
s.files = Dir['Rakefile', '{bin,lib,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files -z .`.split("\0")
end