From 979c0eec3632d4f4eea5c289a1261f98817cd006 Mon Sep 17 00:00:00 2001 From: Shinichi Maeshima Date: Thu, 2 Oct 2025 17:36:09 +0900 Subject: [PATCH] chore: exclude unnecessary files from gem package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace git ls-files with explicit file list to avoid including test files, development configs, and build artifacts in gem. Only include lib/ directory and essential documentation. Also, remove test_files since it doesn’t seem to be included in gemspec attributes. ref: https://guides.rubygems.org/specification-reference/ --- ruby_http_client.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ruby_http_client.gemspec b/ruby_http_client.gemspec index d85e288..0896661 100644 --- a/ruby_http_client.gemspec +++ b/ruby_http_client.gemspec @@ -10,9 +10,8 @@ Gem::Specification.new do |spec| spec.description = 'Quickly and easily access any REST or REST-like API.' spec.homepage = 'http://github.com/sendgrid/ruby-http-client' spec.license = 'MIT' - spec.files = `git ls-files -z`.split("\x0") + spec.files = Dir['lib/**/*'] + ['LICENSE', 'README.md', 'CHANGELOG.md'] spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) } - spec.test_files = spec.files.grep(/^(test|spec|features)/) spec.require_paths = ['lib'] spec.add_development_dependency 'codecov'