Skip to content

Commit c39f85f

Browse files
committed
Reduce gem package size by excluding non-essential files
Remove test/, sig/deps.rbs, CHANGELOG.md, CONTRIBUTING.md, SECURITY.md, and UPGRADING.md from the packaged gem.
1 parent 26f26c4 commit c39f85f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Exclude test files from gem package, reducing gem size by 50% (from 175 KB to 87 KB).
13+
814
## [6.0.0] - 2026-03-16
915

1016
### Changed

http.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Gem::Specification.new do |spec|
2626
spec.metadata["rubygems_mfa_required"] = "true"
2727

2828
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
29-
extras = %w[CHANGELOG.md CONTRIBUTING.md LICENSE.txt README.md SECURITY.md UPGRADING.md] << File.basename(__FILE__)
29+
extras = %w[LICENSE.txt README.md sig/http.rbs] << File.basename(__FILE__)
3030

3131
ls.readlines("\x0", chomp: true).select do |f|
32-
f.start_with?("lib/", "test/", "sig/") || extras.include?(f)
32+
f.start_with?("lib/") || extras.include?(f)
3333
end
3434
end
3535

0 commit comments

Comments
 (0)