Skip to content

Reduce gem size by excluding unnecessary file - #20

Merged
rgrove merged 1 commit into
rgrove:mainfrom
yuri-zubov:reduce-gem-size
Oct 22, 2026
Merged

rgrove merged 1 commit into
rgrove:mainfrom
yuri-zubov:reduce-gem-size

Conversation

@yuri-zubov

Copy link
Copy Markdown
Contributor

related to rgrove/sanitize#248

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

$ gem build -o before.tar.gz

$ git switch reduce-gem-size

$ gem build -o after.tar.gz

$ du -sh before.tar.gz after.tar.gz
 24K	before.tar
 20K	after.tar
 
before after saved
size 24K 20K -4K (⏷ -16.7%)

whitch files was deleted?

data
-├── .github
-│   └── workflows
-│       └── tests.yml
 ├── lib
 │   ├── crass
 │   │   ├── parser.rb
 │   │   ├── scanner.rb
 │   │   ├── token-scanner.rb
 │   │   ├── tokenizer.rb
 │   │   └── version.rb
 │   └── crass.rb
-├── .gitignore
-├── .yardopts
-├── crass.gemspec
-├── Gemfile
 ├── HISTORY.md
 ├── LICENSE
-├── Rakefile
 ├── README.md
-└── SECURITY.md

ps: you can see on rails repo

@rgrove

rgrove commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Thanks!

@rgrove
rgrove merged commit f6bf3ae into rgrove:main Oct 22, 2026
10 checks passed
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