Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include minimum files in packed gem (#91)
* Include minimum files in packed gem This aims to reduce the gem size by excluding unneeded files like test files, CI files, etc. Note that `test_files` in a gemspec is no longer supported. Gem size diff: ```sh-session $ du -h database_rewinder-1.0.1.gem* 12K database_rewinder-1.0.1.gem 16K database_rewinder-1.0.1.gem.old ``` Newly included files in the gem: ```sh-session $ tree -aF database_rewinder-1.0.1 database_rewinder-1.0.1/ ├── MIT_LICENSE ├── README.md └── lib/ ├── database_rewinder/ │ ├── active_record_monkey.rb │ ├── cleaner.rb │ ├── compatibility.rb │ ├── dummy_model.rb │ ├── multiple_statements_executor.rb │ └── railtie.rb └── database_rewinder.rb 3 directories, 9 files ``` * Prefer `git ls-files` to exclude unexpected files
- Loading branch information