build file list with Dir[] instead of shelling out to git

This commit is contained in:
Josh Holtrop 2017-01-14 18:56:28 -05:00
parent e61ec033a9
commit 075632710d

View File

@ -14,9 +14,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/holtrop/gcovinator" spec.homepage = "https://github.com/holtrop/gcovinator"
spec.license = "MIT" spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject do |f| spec.files = Dir["{exe,lib}/**/*", "*.gemspec"]
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe" spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"] spec.require_paths = ["lib"]