forked from puppetlabs/facter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
facter.gemspec
50 lines (43 loc) · 2.06 KB
/
facter.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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = 'facter'
spec.version = '4.5.2'
spec.authors = ['Puppet']
spec.email = ['[email protected]']
spec.homepage = 'https://github.com/puppetlabs/facter'
spec.summary = 'Facter, a system inventory tool'
spec.description = 'You can prove anything with facts!'
spec.license = 'Apache-2.0'
dirs =
Dir[File.join(__dir__, 'bin/facter')] +
Dir[File.join(__dir__, 'LICENSE')] +
Dir[File.join(__dir__, 'lib/**/*.rb')] +
Dir[File.join(__dir__, 'lib/**/*.json')] +
Dir[File.join(__dir__, 'lib/**/*.conf')] +
Dir[File.join(__dir__, 'lib/**/*.erb')]
base = "#{__dir__}#{File::SEPARATOR}"
spec.files = dirs.map { |path| path.sub(base, '') }
spec.required_ruby_version = '>= 2.5', '< 4.0'
spec.bindir = 'bin'
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
# While we require both ffi and sys-filesystem in parts of Facter, we specify
# them as development, not runtime, dependencies. Both gems either directly
# or indirectly contain native extensions. The intent behind excluding these
# gems from runtime dependencies is to allow users to be able to install
# Facter without a compiler.
spec.add_development_dependency 'ffi', '1.15.5'
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 0.81.0'
spec.add_development_dependency 'rubocop-performance', '~> 1.5.2'
spec.add_development_dependency 'rubocop-rspec', '~> 1.38'
spec.add_development_dependency 'simplecov', '~> 0.17.1'
spec.add_development_dependency 'sys-filesystem', '~> 1.4'
spec.add_development_dependency 'webmock', '~> 3.12'
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_runtime_dependency 'hocon', '~> 1.3'
spec.add_runtime_dependency 'thor', ['>= 1.0.1', '< 2.0']
end