forked from puppetlabs/puppet-resource_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpuppet-resource_api.gemspec
29 lines (24 loc) · 1.32 KB
/
puppet-resource_api.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
lib = File.expand_path('../lib', __FILE__) # __dir__ not supported on ruby-1.9 # rubocop:disable Style/ExpandPathArguments
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'puppet/resource_api/version'
Gem::Specification.new do |spec|
spec.name = 'puppet-resource_api'
spec.version = Puppet::ResourceApi::VERSION
spec.license = 'Apache-2.0'
spec.authors = ['David Schmitt']
spec.email = ['[email protected]']
spec.summary = 'This library provides a simple way to write new native resources for puppet.'
spec.homepage = 'https://github.com/puppetlabs/puppet-resource_api'
# on out internal jenkins, there is no git, but since it is a clean machine, we don't need to worry about anything else
spec.files = if system('git --help > /dev/null')
`git ls-files -z`.split("\x0")
else
Dir.glob('**/*')
end.select do |f|
f.match(%r{^(lib|docs|(CHANGELOG|CONTRIBUTING|README)\.md|LICENSE|NOTICE|puppet-resource_api\.gemspec)})
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_runtime_dependency 'hocon', '>= 1.0'
end