Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reduces the Auth0 gem size by changing `files` in the gemspec. Currently, the gem contains many unnecessary files for execution, such as tests or examples. Besides, since `test_files` in the gemspec is unsupported, we can remove it. See https://guides.rubygems.org/specification-reference/ To verify this change locally, run the command for each branch and compare each output: ```sh gem build ``` Here's a size diff in my local environment: ```sh-session $ du -h auth0-*.gem* 40K auth0-5.17.0.gem 216K auth0-5.17.0.gem.current ``` In addition, we can compare included files in the gem as well: ```shell bundle exec ruby -e 's = Gem.loaded_specs["auth0"]; puts s.files + s.executables' ``` For example: ```shell git switch master bundle exec ruby -e 's = Gem.loaded_specs["auth0"]; puts s.files + s.executables' > before git switch reduce-gem-size bundle exec ruby -e 's = Gem.loaded_specs["auth0"]; puts s.files + s.executables' > after diff -u before after ```
- Loading branch information