Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Stop shipping dev-only vendoring rake tasks in the packaged gem - #35

Merged
AbuMareBear merged 1 commit into
mainfrom
fix/32-drop-dev-rake-tasks-from-gem
Jun 16, 2026
Merged

AbuMareBear merged 1 commit into
mainfrom
fix/32-drop-dev-rake-tasks-from-gem

Conversation

@AbuMareBear

Copy link
Copy Markdown
Contributor

Problem

axe-cuprite.gemspec included lib/axe/cuprite/tasks/*.rake in spec.files, so the published gem shipped the dev-only axe:update / axe:verify / axe:version tasks. These are broken for consumers:

  • They operate on the gem's own vendor/ directory, which is read-only and version-pinned in an installed gem — re-vendoring a different axe version makes no sense.
  • axe:verify can't run from an installed gem at all: it reads axe.min.js.sha512, which isn't in spec.files and so isn't shipped, aborting with "No recorded checksum … run rake axe:update first."

Fix

Remove "lib/axe/cuprite/tasks/*.rake" from spec.files. The vendoring tasks are a development-time concern (CI runs axe:verify from a checkout); consumers never need them. The lib/**/*.rb glob doesn't catch .rake files, so nothing else re-includes them.

Verified via Gem::Specification.load(...) that spec.files no longer contains any rake/tasks/sha512 entries.

Closes #32

The gemspec included lib/axe/cuprite/tasks/*.rake in spec.files, so the
published gem shipped axe:update / axe:verify / axe:version. These are
dev-only: they target the gem's read-only, version-pinned vendor/ dir, and
axe:verify can't run from an installed gem because its recorded checksum
(axe.min.js.sha512) isn't shipped. Drop the .rake glob from spec.files; the
tasks remain available in a repo checkout for development.

Closes #32
@AbuMareBear
AbuMareBear merged commit 3bcbab7 into main Jun 16, 2026
6 checks passed
@AbuMareBear
AbuMareBear deleted the fix/32-drop-dev-rake-tasks-from-gem branch June 16, 2026 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop shipping dev-only vendoring rake tasks in the packaged gem

1 participant