You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `.gemspec` file to optimize the gem package size and structure.
The changes include:
- Modified `files` to exclude test files, Gemfile, and CI related files
from the package.
- Removed the deprecated `test_files` specification as it is no longer
recommended.
These changes reduce the extracted package size from from 1.1MB to
340KB.
Benefits:
- Shorter download times for users
- Reduced container sizes when the gem is included
References:
- rubygems/guides#90
- rubygems/bundler#3207
- [Template for the *.gemspec file generated by bundle gem command](https://github.com/rubygems/rubygems/blob/bundler-v2.6.5/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt)
0 commit comments