Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Gem::Specification#test_files= to reduce gem package size #88

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

pocke
Copy link
Contributor

@pocke pocke commented Sep 25, 2020

Gem::Specification#test_files= is no longer recommended.
rubygems/guides#90

And it increases gem package size because the option adds test files to
the package.

So I think we should avoid using test_files= option.


It reduces 4.7MB package size on my local.

before

$ du graphiql-rails-1.7.0/ --summarize
6.7M    graphiql-rails-1.7.0/

after

$ du graphiql-rails-1.7.0/ --summarize
2.0M    graphiql-rails-1.7.0/

`Gem::Specification#test_files=` is no longer recommended.
rubygems/guides#90

And it increases gem package size because the option adds test files to
the package.

So I think we should avoid using `test_files=` option.

---

It reduces 4.7MB package size on my local.

before

```bash
$ du graphiql-rails-1.7.0/ --summarize
6.7M    graphiql-rails-1.7.0/
```

after

```bash
$ du graphiql-rails-1.7.0/ --summarize
2.0M    graphiql-rails-1.7.0/
```
@rmosolgo
Copy link
Owner

Thanks!

@rmosolgo rmosolgo merged commit 082c468 into rmosolgo:master Aug 17, 2021
@pocke pocke deleted the reduce-package-size branch August 17, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants