Repository navigation
Add reusable release spec helpers and examples - #50
Merged
Merged
Conversation
dblock
force-pushed
the
dblock/document-git-test-isolation
branch
from
November 11, 2026 13:54
4b33ffb to
e0b13ff
Compare
dblock
force-pushed
the
dblock/document-git-test-isolation
branch
2 times, most recently
from
November 11, 2026 14:04
cdb7c60 to
9d89c56
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
dblock/document-git-test-isolation
branch
from
November 11, 2026 14:19
9d89c56 to
65ea5a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add opt-in
require "ruby-gem-release/rspec"/include RubyGemRelease::RSpecsupport for disposable Git repositories, isolated Rake processes, cross-process exports, and local registry/hosting adapters. No RSpec runtime dependency is added.Reuse the helpers in existing portable consumer specs. Add a complete lifecycle-hook example spec that shares its real workflow builder and README with the production configuration, catching removed hooks or broken release-managed content. Link and document the example for projects customizing their release installation.
Publication adapters are explicit test replacements, not a sandbox for arbitrary custom callbacks.
Validation
bundle exec rake: 323 examples, 0 failures; RuboCop cleanbundle exec rake buildbundle exec rspec examples/lifecycle_hooks/spec/release_spec.rb: 1 example, 0 failuresgit diff --checkAI disclosure: Prepared and updated by AI on behalf of @dblock.