From 5e4ab84dca3943b8bd8bf105bed1c17721449ace Mon Sep 17 00:00:00 2001 From: kazu Date: Fri, 20 Jul 2018 01:40:36 +0000 Subject: [PATCH] Do not use `git ls-files` for file listing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tracer.gemspec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/tracer.gemspec b/lib/tracer.gemspec index b84bcd9b56..7c55663211 100644 --- a/lib/tracer.gemspec +++ b/lib/tracer.gemspec @@ -11,11 +11,7 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/ruby/tracer" spec.license = "BSD-2-Clause" - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end + spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/tracer.rb", "tracer.gemspec"] spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]