Skip to content

Commit 9f1fe73

Browse files
committed
Only ship the minimally required files
This avoids shipping files like .github and .travis.yml.
1 parent db2a669 commit 9f1fe73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

puppetserver-ca.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Gem::Specification.new do |spec|
1313
spec.summary = %q{A simple CLI tool for interacting with Puppet Server's Certificate Authority}
1414
spec.homepage = "https://github.com/puppetlabs/puppetserver-ca-cli/"
1515

16-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
17-
f.match(%r{^(test|spec|features)/})
16+
spec.files = `git ls-files -z`.split("\x0").select do |f|
17+
f.start_with?('LICENSE', 'README.md', 'lib/')
1818
end
1919
spec.bindir = "exe"
20-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20+
spec.executables = "puppetserver-ca"
2121
spec.require_paths = ["lib"]
2222

2323
spec.add_runtime_dependency "facter", [">= 2.0.1", "< 5"]

0 commit comments

Comments
 (0)