From 22db0d6d4b0151330b8d0192f3f7190819209ee6 Mon Sep 17 00:00:00 2001 From: Yuri Zubov Date: Thu, 23 Oct 2025 22:18:15 +0300 Subject: [PATCH] Reduce gem size by excluding test files --- webrobots.gemspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webrobots.gemspec b/webrobots.gemspec index 65eb9a2..66ebdb1 100644 --- a/webrobots.gemspec +++ b/webrobots.gemspec @@ -14,7 +14,10 @@ Gem::Specification.new do |s| This library helps write robots.txt compliant web robots in Ruby. EOS - s.files = `git ls-files`.split("\n") + s.files = `git ls-files lib`.split("\n") + [ + 'LICENSE.txt', + 'README.rdoc' + ] s.test_files = s.files.grep(%r{/test_[^/]+\.rb$}) s.executables = s.files.grep(%r{^bin/[^.]}).map{ |f| File.basename(f) } s.require_paths = ["lib"]