Repository navigation
Support fixture file globs and prepare version 0.6.0 - #57
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 relative glob selectors to the optional RSpec fixture helper:
files:accepts a single path or pattern, or a mixed array. Recursive patterns, brace alternatives, character classes, and hidden files are supported. Existing exact paths take precedence over glob syntax; overlapping selectors copy each relative file once. Omitted or nilfiles:still copies everything, and an empty array still copies nothing.Reuse the existing source traversal rather than following directory links during glob expansion. Skip Git metadata, reject unmatched selectors and escaping paths/links, and validate every selected source and destination before copying. Preserve file bytes, relative paths, modes, and existing literal-file behavior.
Document every invocation form and the matching, hidden-file, Git, symbolic-link, overwrite, and failure rules in Testing Custom Workflows. Update the complete lifecycle example to combine glob copying with the workflow helper merged in #56.
Bump the gem version and Next changelog section to 0.6.0 in this same PR. Published workflow pins remain unchanged until release. This does not publish or tag a release.
Validation
bundle exec rake SPEC_OPTS='--seed 12345': 354 examples, no failures; 148 RuboCop files, no offenses.bundle exec rake build: producesruby-gem-release-0.6.0.gem.Created by an AI assistant on behalf of @dblock.