Reduce gem size by excluding test files (#54)

This commit is contained in:
Mike Dalessio 2025-09-26 09:35:52 -04:00 committed by GitHub
commit 34df810cd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,7 @@
## next (unreleased) ## next (unreleased)
- Implement `Cookie#to_h`. (#55) @luke-hill @flavorjones - Implement `Cookie#to_h`. (#55) @luke-hill @flavorjones
- Reduce gem size by excluding test files
## 1.0.8 (2024-12-05) ## 1.0.8 (2024-12-05)

View file

@ -18,7 +18,11 @@ Gem::Specification.new do |gem|
gem.homepage = "https://github.com/sparklemotion/http-cookie" gem.homepage = "https://github.com/sparklemotion/http-cookie"
gem.license = "MIT" gem.license = "MIT"
gem.files = `git ls-files`.split($/) gem.files = `git ls-files lib`.split($/) + [
'CHANGELOG.md',
'LICENSE.txt',
'README.md',
]
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"] gem.require_paths = ["lib"]