Skip to content

Reduce gem size by excluding test files#29

Merged
chetan merged 1 commit into
chetan:masterfrom
yuri-zubov:reduce-gem-size
May 15, 2026
Merged

Reduce gem size by excluding test files#29
chetan merged 1 commit into
chetan:masterfrom
yuri-zubov:reduce-gem-size

Conversation

@yuri-zubov
Copy link
Copy Markdown
Contributor

This pull request updates the *.gemspec file to optimize the gem package size and structure

$ gem build -o before.tar

$ git switch reduce-gem-size

$ gem build -o after.tar

$ du -sh before.tar after.tar
 16K	before.tar
 12K	after.tar
Metric Before After Saved
Size 16K 12K −4K

whitch files was deleted?

data
 ├── lib
 │   ├── simplecov-console
 │   │   └── output
 │   │       ├── block.rb
 │   │       └── table.rb
 │   └── simplecov-console.rb
-├── test
-│   ├── helper.rb
-│   └── test_simplecov-console.rb
-├── .document
 ├── CHANGELOG.md
-├── Gemfile
 ├── LICENSE.txt
-├── Rakefile
 ├── README.md
-├── simplecov-console.gemspec
-└── VERSION

ps: you can see on rails repo

@chetan
Copy link
Copy Markdown
Owner

chetan commented May 11, 2026

@yuri-zubov appreciate the PR! We're using juwelier to generate the gem (for better or worse). Do you mind modifying your PR to set the list of files like this?

@yuri-zubov
Copy link
Copy Markdown
Contributor Author

@yuri-zubov appreciate the PR! We're using juwelier to generate the gem (for better or worse). Do you mind modifying your PR to set the list of files like this?

@chetan done

@chetan chetan merged commit 237067e into chetan:master May 15, 2026
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