Skip to content

Update gemspec files to avoid using git#222

Merged
krororo merged 1 commit intomasterfrom
update-gemspec
Oct 21, 2025
Merged

Update gemspec files to avoid using git#222
krororo merged 1 commit intomasterfrom
update-gemspec

Conversation

@krororo
Copy link
Copy Markdown
Collaborator

@krororo krororo commented Oct 17, 2025

Use explicit Dir glob for spec.files instead of git ls-files command. Simplify file inclusion pattern to be more explicit and maintainable.
Replace manual load path manipulation with require_relative.

This change reduced the package size from 33KB to 25KB by excluding unnecessary files.

cf.

Use explicit Dir glob for spec.files instead of `git ls-files` command.
Simplify file inclusion pattern to be more explicit and maintainable.
Replace manual load path manipulation with `require_relative`.

This change reduced the package size from 33KB to 25KB by excluding
unnecessary files.

cf.
- ruby/rubygems#4047 (comment)
- https://docs.rubocop.org/rubocop-packaging/cops_packaging.html#packaginggemspecgit
@auto-assign auto-assign bot requested review from kumaie-shr and lighty October 17, 2025 01:20
Copy link
Copy Markdown

@lighty lighty left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@kumaie-shr kumaie-shr left a comment

Choose a reason for hiding this comment

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

👍

@krororo
Copy link
Copy Markdown
Collaborator Author

krororo commented Oct 21, 2025

Thank you for the review!

@krororo krororo merged commit b8063d3 into master Oct 21, 2025
13 checks passed
@krororo krororo deleted the update-gemspec branch October 21, 2025 00:35
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