Replace shelling-out-to-Git w/ Dir call

This commit is contained in:
Olle Jonsson 2016-03-21 22:40:24 +01:00
parent 6d9fcf202e
commit 170eb40f33

View File

@ -18,7 +18,8 @@ Gem::Specification.new do |spec|
spec.license = "MIT" spec.license = "MIT"
spec.extensions = ["Rakefile"] spec.extensions = ["Rakefile"]
spec.files = `git ls-files -z`.split("\x0") spec.files = Dir['{bin,lib,man,spec}/**/*', 'Rakefile', 'README.md']
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"] spec.require_paths = ["lib"]