Skip to content

Exclude CLAUDE.md and docs/ from packaged gem files - #48

Merged
eitoball merged 1 commit into
masterfrom
fix-46-exclude-claude-md-from-gem
Aug 16, 2026
Merged

Exclude CLAUDE.md and docs/ from packaged gem files#48
eitoball merged 1 commit into
masterfrom
fix-46-exclude-claude-md-from-gem

Conversation

@eitoball

Copy link
Copy Markdown
Owner

Summary

  • spec.files globbed every file on disk (Dir['**/*']), so AI-assistant instructions (CLAUDE.md) and session notes (docs/superpowers/**) ended up shipped inside the net-ping-2.1.0 gem, breaking downstream RPM packaging.
  • Explicitly excludes CLAUDE.md and everything under docs/ from spec.files. The two platform gemspecs (net-ping-universal-*.gemspec) dup this spec, so they inherit the fix automatically.

Fixes #46

Test plan

  • Added test_gem_create_excludes_non_distributable_project_files_from_spec_files, watched it fail against the old spec.files (listed CLAUDE.md and all docs/superpowers/** entries), then confirmed it passes after the fix.
  • bundle exec rake test — 110 tests, 0 failures.

Copilot AI lite review requested due to automatic review settings August 16, 2026 08:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates gem packaging so non-distributable project files (notably CLAUDE.md and docs/**) are not included in the built gem, addressing downstream packaging issues reported in #46.

Changes:

  • Tighten spec.files in net-ping.gemspec to exclude CLAUDE.md and docs/**.
  • Add a packaging-focused regression test ensuring those paths are absent from spec.files.
  • Add a new design note under docs/superpowers/specs/.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
net-ping.gemspec Excludes CLAUDE.md and docs/** from spec.files to prevent shipping them in the gem.
test/test_net_ping_gem_packaging.rb Adds a regression test asserting non-distributable paths are not present in spec.files.
docs/superpowers/specs/2026-08-08-pr-25-http-query-design.md Adds an internal design document (appears unrelated to this PR’s stated scope).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/superpowers/specs/2026-08-08-pr-25-http-query-design.md Outdated
Comment thread test/test_net_ping_gem_packaging.rb
Comment thread net-ping.gemspec
spec.files globbed every file on disk, so AI-assistant instructions
and session notes ended up shipped inside net-ping-2.1.0, breaking
downstream RPM packaging (issue #46).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@eitoball
eitoball force-pushed the fix-46-exclude-claude-md-from-gem branch from 6291b25 to da11a30 Compare August 16, 2026 08:43
@eitoball
eitoball requested a lite review from Copilot August 16, 2026 08:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@eitoball
eitoball merged commit ec16d96 into master Aug 16, 2026
15 checks passed
@eitoball
eitoball deleted the fix-46-exclude-claude-md-from-gem branch August 16, 2026 08:58
@eitoball eitoball mentioned this pull request Aug 16, 2026
1 task
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.

CLAUDE.md should not be shipped in the gem

2 participants