Repository navigation
Add the step pack for Ruby on Rails apps (8.1 and 8.0) - #2
Merged
Merged
Conversation
22 steps on "the web application": users through the app's console, signing in and out, a scaffold's resources with Turbo's confirm and their errors, notices, cookie flags by scheme, CSRF and health checks, a password reset read from the mail catcher, the development error page, and no request outside its address. The demo app is made at the build; every secret is kept out of messages, failures and reports. Fixes #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo refuses a secret shorter than 64 characters, as a real secret_key_base is: openssl rand -hex 64, as bin/rails secret makes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RUBY_VERSION is in the official Ruby image's environment, not in every image the script runs in (DDEV's web container, where the Workspace's plugin makes the app): under set -u its last line failed the whole make. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Adds the step pack for Ruby on Rails apps,
@webship-js/rails-steps2.0.0.Issue: #1
What it brings
bin/rails runner -, the Ruby on its input), so no back door is needed and no secret is on a command line. Users get a random in-memory password and are removed with their sessions at the scenario's end; the records a scenario made are removed the same way. The README says which steps need the console./passwords/<token>/editis masked in every failure, including webship-js's ownPage:line, and in webship-js's error list (Secrets in a URL's query leak through the JavaScript-error report webship-js#707 now also covers paths).The demo (
demo/rails-demo-app.sh, made at the build, nothing ofrails newships)docker.io/library/ruby@sha256:5ac6b9f959a3356af5fc4f6a80a30106d99fd51785633f8a365be73cbe84e199SIGN_IN_RATE_LIMIT(the generator's 10 by default; 500 only in this demo and the workspace's development build, as the README says).@development.Proof (local, the demo on Docker, under the router lock)
journalctl -k: no OOM.npm run test:examples(22 definitions, 110 examples),npm run test:pathsandcucumber-js --dry-runpass.Trademark
The logo is Simple Icons' rubyonrails icon, unmodified, used only to say the pack supports Ruby on Rails, as rubyonrails.org/trademarks allows. The disclaimer is at the bottom of the README.
Checkpoints
🤖 Generated with Claude Code