Skip to content

Conversation

yuri-zubov
Copy link

@yuri-zubov yuri-zubov commented Jun 27, 2025

$ gem build -o before

$ git switch reduce-gem-size

$ gem build -o after

$ du -sh before after
 40K	before
 28K	after
before after saved
size 40K 28K -12K ($\textcolor{green}{⏷}$ -30.00%)

@yuri-zubov yuri-zubov requested a review from knu as a code owner June 27, 2025 12:51
Copy link
Member

@knu knu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you define the list with exclusion? I'd like to see what's being excluded.

@yuri-zubov
Copy link
Author

yuri-zubov commented Jun 30, 2025

@knu I have just deleted tests and github-ci

 data
-├── .github
-│   ├── CODEOWNERS
-│   └── workflows
-│       └── ci.yml
-├── .gitignore
 ├── CHANGELOG.md
-├── Gemfile
-├── http-cookie.gemspec
 ├── lib
 │   ├── http
 │   │   ├── cookie
 │   │   │   ├── ruby_compat.rb
 │   │   │   ├── scanner.rb
 │   │   │   ├── uri_parser.rb
 │   │   │   └── version.rb
 │   │   ├── cookie_jar
 │   │   │   ├── abstract_saver.rb
 │   │   │   ├── abstract_store.rb
 │   │   │   ├── cookiestxt_saver.rb
 │   │   │   ├── hash_store.rb
 │   │   │   ├── mozilla_store.rb
 │   │   │   └── yaml_saver.rb
 │   │   ├── cookie_jar.rb
 │   │   └── cookie.rb
 │   └── http-cookie.rb
 ├── LICENSE.txt
-├── Rakefile
 ├── README.md
-└── test
-    ├── helper.rb
-    ├── mechanize.yml
-    ├── simplecov_start.rb
-    ├── test_http_cookie_jar.rb
-    └── test_http_cookie.rb

@yuri-zubov
Copy link
Author

@knu what are you doubting?
A lot of gems like rails, rspec don't add test files

@yuri-zubov yuri-zubov force-pushed the reduce-gem-size branch 2 times, most recently from fbc4f46 to 0672c17 Compare July 29, 2025 12:20
@yuri-zubov yuri-zubov requested a review from flavorjones July 29, 2025 12:20
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.

3 participants