Skip to content

Bring back the QED demonstrations - #5

Merged
trans merged 2 commits into
masterfrom
restore-demos
Nov 29, 2026
Merged

trans merged 2 commits into
masterfrom
restore-demos

Conversation

@trans

@trans trans commented Nov 29, 2026

Copy link
Copy Markdown
Member

The QED specs of Shell, Script and Batch were dropped when Ratch was revived for Ruby 3 (2.0.0). This brings them back as demo/, run by rake demo and in CI alongside the unit tests.

  • Shell, Script, Batch: restored and passing against the rewritten Shell (3 demos, 64 steps). They needed little: directory listings are now in sorted order, and typos are fixed.
  • Shell gains three sections in place of a pointer to a System class that no longer exists: standing at another directory (paths resolve from the shell's directory, the process's is left alone), noop mode, and system calls with sh and cmd.
  • Not restored: the System spec, which was a heading with no content.
  • Setup: the applique clears QED's temporary directory itself. QED's own clear_working_directory! helper raises a TypeError in 3.0.1 (its root is nil); that is a QED bug, separate from this.
  • qed and ae are development dependencies; the README has a short section pointing to the demonstrations.

No change to the library.

🤖 Generated with Claude Code

trans and others added 2 commits November 29, 2026 13:30
The Shell, Script and Batch specs were dropped when Ratch was revived
for Ruby 3 (2.0.0). They return as demo/, passing against the rewritten
Shell with little change: listings are in sorted order, and the setup
clears QED's temporary directory itself. The Shell demonstration gains
sections on standing at another directory, noop mode and system calls,
in place of a pointer to a System class that is gone. The empty System
spec is not restored. CI runs them with the unit tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Their order is the file system's, which differs in CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@trans
trans merged commit 8276b02 into master Nov 29, 2026
10 checks passed
@trans
trans deleted the restore-demos branch November 29, 2026 20:43
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