(PDOC-74) Update gemspec not to rely on metadata
Prior to this commit, the gemspec for strings relied on the module metadata.json. Since we would ultimately like to stop releasing strings as a module entirely, update the gemspec not to rely on the module metadata so it is not broken when we ultimately remove it.
This commit is contained in:
parent
0a4233614d
commit
3e56169d5e
|
@ -1,16 +1,11 @@
|
||||||
require 'json'
|
|
||||||
|
|
||||||
puppet_metadata = JSON.load File.open(File.expand_path(File.join(__FILE__, '..', 'metadata.json'))).read
|
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'puppet-strings'
|
s.name = 'puppet-strings'
|
||||||
|
s.author = 'Puppet Labs'
|
||||||
%w(author version license summary).each do |section|
|
s.version = '0.4.0'
|
||||||
s.send("#{section}=", puppet_metadata[section])
|
s.license = 'Apache-2.0'
|
||||||
end
|
s.summary = 'Puppet documentation via YARD'
|
||||||
|
|
||||||
s.email = 'info@puppetlabs.com'
|
s.email = 'info@puppetlabs.com'
|
||||||
s.homepage = puppet_metadata['project_page']
|
s.homepage = 'https://github.com/puppetlabs/puppetlabs-strings'
|
||||||
s.description = s.summary
|
s.description = s.summary
|
||||||
s.files = Dir['lib/**/*'].reject { |f| f if File.directory?(f) }
|
s.files = Dir['lib/**/*'].reject { |f| f if File.directory?(f) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue