Merge pull request #360 from olleolleolle/feature/avoid-git-in-gemspec

Replace shelling-out-to-Git w/ Dir call
This commit is contained in:
Petr Korolev 2016-03-22 14:27:32 +02:00
commit 944ad69092

View File

@ -17,7 +17,8 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator" spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator"
spec.license = "MIT" spec.license = "MIT"
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"]