From caba623d2cf20ce938c9e4ca1dabd7c3701479ea Mon Sep 17 00:00:00 2001 From: Dominic Cleal Date: Thu, 5 May 2016 09:41:05 +0100 Subject: [PATCH] (PDOC-78) Include LICENSE, docs and specs in gem --- puppet-strings.gemspec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/puppet-strings.gemspec b/puppet-strings.gemspec index 5458f2a..2a28e97 100644 --- a/puppet-strings.gemspec +++ b/puppet-strings.gemspec @@ -7,7 +7,15 @@ Gem::Specification.new do |s| s.email = 'info@puppetlabs.com' s.homepage = 'https://github.com/puppetlabs/puppetlabs-strings' s.description = s.summary - s.files = Dir['lib/**/*'].reject { |f| f if File.directory?(f) } + + s.extra_rdoc_files = [ + 'CHANGELOG.md', + 'COMMITTERS.md', + 'CONTRIBUTING.md', + 'LICENSE', + 'README.md', + ] + s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec'] s.add_runtime_dependency 'puppet', '>= 3.7.0' s.add_runtime_dependency 'yard', '~> 0.8'