2015-09-02 15:38:23 +00:00
|
|
|
require 'json'
|
|
|
|
|
|
|
|
puppet_metadata = JSON.load File.open(File.expand_path(File.join(__FILE__, '..', 'metadata.json'))).read
|
|
|
|
|
|
|
|
Gem::Specification.new do |s|
|
2015-09-02 20:09:01 +00:00
|
|
|
%w(name author version license summary).each do |section|
|
|
|
|
s.send("#{section}=", puppet_metadata[section])
|
|
|
|
end
|
2015-09-02 15:38:23 +00:00
|
|
|
|
2015-09-02 22:49:34 +00:00
|
|
|
s.email = 'info@puppetlabs.com'
|
2015-09-02 20:09:01 +00:00
|
|
|
s.homepage = puppet_metadata['project_page']
|
|
|
|
s.description = s.summary
|
|
|
|
s.files = Dir['lib/**/*'].reject { |f| f if File.directory?(f) }
|
2015-09-02 15:38:23 +00:00
|
|
|
|
2015-09-02 20:09:01 +00:00
|
|
|
s.add_runtime_dependency 'puppet', '>= 3.7.0'
|
|
|
|
s.add_runtime_dependency 'yard', '~> 0.8'
|
2015-09-02 15:38:23 +00:00
|
|
|
end
|