Skip to content

Reduce gem size by excluding test files#96

Open
yuri-zubov wants to merge 1 commit into
renderedtext:masterfrom
yuri-zubov:reduce-gem-size
Open

Reduce gem size by excluding test files#96
yuri-zubov wants to merge 1 commit into
renderedtext:masterfrom
yuri-zubov:reduce-gem-size

Conversation

@yuri-zubov

@yuri-zubov yuri-zubov commented Jun 9, 2026

Copy link
Copy Markdown

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 (⏷ −25%)

whitch files was deleted?

data
-├── bin
-│   ├── console
-│   └── setup
 ├── exe
 │   ├── cucumber_booster
 │   ├── ex_unit_booster
 │   ├── go_test_booster
 │   ├── minitest_booster
 │   └── rspec_booster
 ├── lib
 │   ├── test_boosters
 │   │   ├── boosters
 │   │   │   ├── base.rb
 │   │   │   ├── cucumber.rb
 │   │   │   ├── ex_unit.rb
 │   │   │   ├── go_test.rb
 │   │   │   ├── minitest.rb
 │   │   │   └── rspec.rb
 │   │   ├── files
 │   │   │   ├── distributor.rb
 │   │   │   ├── leftover_files.rb
 │   │   │   └── split_configuration.rb
 │   │   ├── cli_parser.rb
 │   │   ├── insights_uploader.rb
 │   │   ├── job.rb
 │   │   ├── logger.rb
 │   │   ├── project_info.rb
 │   │   ├── shell.rb
 │   │   └── version.rb
 │   └── test_boosters.rb
 ├── rspec_formatters
 │   └── semaphore_rspec3_json_formatter.rb
-├── .gitignore
-├── .rspec
-├── .rubocop.yml
-├── config.reek
-├── Gemfile
 ├── LICENSE.txt
-├── Rakefile
 ├── README.md
-└── test_boosters.gemspec

ps: you can see on rails repo

@yuri-zubov

yuri-zubov commented Jun 10, 2026

Copy link
Copy Markdown
Author

@mikevoets, @dexyk
I see you've fixed the issue with Bundler. When do you plan to release the gem?
I suggest adding my small improvement to the release.

Thank you

@mikevoets

mikevoets commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@mikevoets,
I see you've fixed the issue with Bundler. When do you plan to release the gem?
I suggest adding my small improvement to the release.

Thank you

Hey, I'm not the maintainer of the gem, so I can't make new releases.

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