From 170eb40f3397d9008ad0b66c69077222aa7dd3f9 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 21 Mar 2016 22:40:24 +0100 Subject: [PATCH] Replace shelling-out-to-Git w/ Dir call --- github_changelog_generator.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github_changelog_generator.gemspec b/github_changelog_generator.gemspec index 331f210..46f7c63 100644 --- a/github_changelog_generator.gemspec +++ b/github_changelog_generator.gemspec @@ -18,7 +18,8 @@ Gem::Specification.new do |spec| spec.license = "MIT" 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.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"]