Skip to content

Commit 04cb560

Browse files
committed
(maint) Do not use git for Gemspec files
Previously the gemspec was using 'git ls-file' to retrieve the file list for the gem, however this is problematic during development as untracked files are not added, which can then cause an incomplete gem tarball to used during the acceptance tests, which cause false negative test results. This commit updates the Gemspec to use the more common Dir[..] method as used in the PDK.
1 parent cee0da1 commit 04cb560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

puppet-strings.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
2020
'LICENSE',
2121
'README.md',
2222
]
23-
s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec']
23+
s.files = Dir['CHANGELOG.md', 'README.md', 'LICENSE', 'lib/**/*', 'exe/**/*']
2424

2525
s.add_runtime_dependency 'yard', '~> 0.9.5'
2626
s.add_runtime_dependency 'rgen'

0 commit comments

Comments
 (0)