Skip to content

Limit gem package to lib, license, readme, and changelog - #88

Open
atongen wants to merge 1 commit into
mainfrom
gem-contents
Open

atongen wants to merge 1 commit into
mainfrom
gem-contents

Conversation

@atongen

@atongen atongen commented Oct 28, 2026

Copy link
Copy Markdown
Member

spec.files globs lib/**/.rb plus LICENSE.txt, README.md, and CHANGELOG.md instead of using git ls-files, so the gem no longer ships test/, .github/, flake., or rubocop config, and building it no longer requires a git checkout.

test/gemspec_test.rb builds the gem and asserts it contains exactly the git-tracked lib/**/*.rb files and the three docs. It fails if an untracked file under lib/ would be packaged.

spec.files globs lib/**/*.rb plus LICENSE.txt, README.md, and
CHANGELOG.md instead of using git ls-files, so the gem no longer
ships test/, .github/, flake.*, or rubocop config, and building it
no longer requires a git checkout.

test/gemspec_test.rb builds the gem and asserts it contains exactly
the git-tracked lib/**/*.rb files and the three docs. It fails if an
untracked file under lib/ would be packaged.
@atongen atongen self-assigned this Oct 28, 2026
@atongen
atongen marked this pull request as ready for review October 28, 2026 20:49
@atongen
atongen requested a review from a team as a code owner October 28, 2026 20:49
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