Skip to content

Add project file copying to release spec fixtures - #54

Merged
dblock merged 1 commit into
masterfrom
dblock/rspec-copy-files
Nov 11, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/rspec-copy-files

Conversation

@dblock

@dblock dblock commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add optional RSpec project.copy_files(path:, files: nil) support. Omitting files: copies all files recursively, including hidden files; pass a relative file list to select files or [] to copy nothing.
  • Preserve nested paths and file modes. Skip .git metadata during recursive copying and reject explicitly selected metadata or aliases that would overwrite the fixture repository.
  • Validate all selected files before copying; reject missing files, directory entries, absolute paths, traversal, and symbolic links outside either root.
  • Update the complete lifecycle example and testing documentation to use the new signature.

Validation

  • bundle exec rake: 334 examples, no failures; RuboCop clean.
  • bundle exec rake build.
  • Installed-gem API check verifies selected and recursive copying, hidden files, modes, repetition, and Git isolation without an RSpec runtime dependency.

Rebased onto master, preserving the merged changelog-template support.

Created by an AI on behalf of @dblock.

@dblock
dblock force-pushed the dblock/rspec-copy-files branch from fc62bbd to 565de95 Compare November 11, 2026 17:45
@dblock dblock changed the title Add explicit file copying to release spec fixtures Add project file copying to release spec fixtures Nov 11, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/rspec-copy-files branch from 565de95 to a1af439 Compare November 11, 2026 18:34
@dblock
dblock merged commit 43fd715 into master Nov 11, 2026
7 checks passed
@dblock
dblock deleted the dblock/rspec-copy-files branch November 11, 2026 18:41
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.

1 participant