From 6a1062786a447c80e8de6a73345ec86bb80e634e Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 3 Mar 2026 10:34:57 +0900 Subject: [PATCH 1/2] Except .github/ dir in gem package --- benchmark.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark.gemspec b/benchmark.gemspec index 5d071c9..284e966 100644 --- a/benchmark.gemspec +++ b/benchmark.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| # 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 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|.github)/}) } end spec.bindir = "exe" spec.executables = [] From 5d712b3bf670c6f77770e12d6aec8f4d4a55a0f2 Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 3 Mar 2026 10:37:06 +0900 Subject: [PATCH 2/2] Except bin/ dir in gem package --- benchmark.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark.gemspec b/benchmark.gemspec index 284e966..64d3aff 100644 --- a/benchmark.gemspec +++ b/benchmark.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| # 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 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|.github)/}) } + `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin|.github)/}) } end spec.bindir = "exe" spec.executables = []