Skip to content

Commit e3c2b61

Browse files
committed
Reduce gem size by excluding test files
1 parent 1b95bcb commit e3c2b61

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## next (unreleased)
22

33
- Implement `Cookie#to_h`. (#55) @luke-hill @flavorjones
4+
- Reduce gem size by excluding test files
45

56
## 1.0.8 (2024-12-05)
67

http-cookie.gemspec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ Gem::Specification.new do |gem|
1818
gem.homepage = "https://github.com/sparklemotion/http-cookie"
1919
gem.license = "MIT"
2020

21-
gem.files = `git ls-files`.split($/)
21+
gem.files = Dir.glob('lib/**/*') + [
22+
'CHANGELOG.md',
23+
'Gemfile',
24+
'LICENSE.txt',
25+
'Rakefile',
26+
'README.md',
27+
'http-cookie.gemspec'
28+
]
2229
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
2330
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
2431
gem.require_paths = ["lib"]

0 commit comments

Comments
 (0)