From 81a025fab29ce4a6d8f7209e358cf5c147c64c15 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Aug 2024 10:02:26 +0900 Subject: [PATCH] Exclude spec files from gem package --- hashdiff.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashdiff.gemspec b/hashdiff.gemspec index f72da71..001af53 100644 --- a/hashdiff.gemspec +++ b/hashdiff.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.summary = ' Hashdiff is a diff lib to compute the smallest difference between two hashes. ' s.description = ' Hashdiff is a diff lib to compute the smallest difference between two hashes. ' - s.files = `git ls-files`.split("\n") + s.files = `git ls-files`.split("\n").grep_v(%r{^spec/}) s.test_files = `git ls-files -- Appraisals {spec}/*`.split("\n") s.require_paths = ['lib']