From eb3bf9e3903f26e8542042b8c39a2326a5537cf8 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Aug 2024 07:35:29 +0900 Subject: [PATCH] Exclude spec files from gem package --- digest-crc.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digest-crc.gemspec b/digest-crc.gemspec index dec089e..268c590 100644 --- a/digest-crc.gemspec +++ b/digest-crc.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |gem| glob = lambda { |patterns| gem.files & Dir[*patterns] } - gem.files = `git ls-files`.split($/) + gem.files = `git ls-files`.split($/).grep_v(/^spec\//) gem.files = glob[gemspec['files']] if gemspec['files'] gem.executables = gemspec.fetch('executables') do