Exclude tests from the gem release
When you're installing a gem in a production environment, you want it to install as fast it can. One of the ways you can speed up the installation of the gem is by making it smaller. We currently ship the test suite with the gem, increasing the size of the built gem significantly. By not shipping the test suite, we can shrink the size of the gem by 38%. Below are the measurements I took for that statement. **The size of the gem with the test suite** $ du -b hashie-4.0.1.gem 80384 hashie-4.0.1.gem **The size of the gem without the test suite** $ du -b hashie-4.0.1.gem 50176 hashie-4.0.1.gem
This commit is contained in:
parent
3692cddcd9
commit
565a1ed0de
|
@ -36,6 +36,7 @@ scheme are considered to be bugs.
|
|||
|
||||
### Miscellaneous
|
||||
|
||||
* [#981](https://github.com/hashie/hashie/pull/981): Exclude tests from the gem release to reduce installation size and improve installation speed - [@michaelherold](https://github.com/michaelherold).
|
||||
* Your contribution here.
|
||||
|
||||
## [4.0.0] - 2019-10-30
|
||||
|
|
|
@ -14,8 +14,6 @@ Gem::Specification.new do |gem|
|
|||
gem.files = %w[.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE README.md UPGRADING.md]
|
||||
gem.files += %w[Rakefile hashie.gemspec]
|
||||
gem.files += Dir['lib/**/*.rb']
|
||||
gem.files += Dir['spec/**/*.rb']
|
||||
gem.test_files = Dir['spec/**/*.rb']
|
||||
|
||||
if gem.respond_to?(:metadata)
|
||||
gem.metadata = {
|
||||
|
|
Loading…
Reference in New Issue