Commit a84ab9d
Remove docs & tests from gem to reduce its size by over 50%
I was looking through https://rubygems.org/gems/mocha/versions and
noticed the .gem's file size increased from 94kb in v1.7.0 to 219kb in
v1.8.0 - an increase of 125kb.
The culprit seems to be the addition of generated docs to the repo in
4a85555. I don't think there reasonable
value in including the generated docs in the compiled .gem, especially
for the byte size increase. Gem users still can locally still produce
documentation with rdoc/ri. I've also removed the test directory, since
they are not useful to gem users.
I'm using the syntax from the gemspec used in `bundle gem` [1].
[1]: https://github.com/rubygems/bundler/blob/v2.1.4/lib/bundler/templates/newgem/newgem.gemspec.tt#L23-L271 parent e5b9fee commit a84ab9d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments