diff --git a/newrelic_rpm.gemspec b/newrelic_rpm.gemspec index 272b7c1b07..16060249d5 100644 --- a/newrelic_rpm.gemspec +++ b/newrelic_rpm.gemspec @@ -31,7 +31,7 @@ EOS "newrelic.yml" ] - file_list = `git ls-files`.split + file_list = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } build_file_path = 'lib/new_relic/build.rb' file_list << build_file_path if File.exist?(build_file_path) s.files = file_list