feature/custom-error-content #8

Merged
heming merged 4 commits from feature/custom-error-content into main 2025-06-14 04:01:40 +02:00
Owner
No description provided.
- Users can now configure custom content for any error type
- Supports text, HTML, images, and ERB templates
- Content types: text (escaped), html (raw), image (with alt), template (with locals)
- Multiple content items can be added to the same error
- Method chaining support for configuration
- Full integration with preview functionality
- Comprehensive test coverage (18 tests, 59 assertions)
- Updated demo app with extensive examples
- Enhanced documentation with configuration examples
- Tests custom text and HTML content rendering in preview
- Tests custom image content with alt text in preview
- Tests template content with local variables in preview
- Verifies custom content sections are properly rendered
- All integration tests passing (17 tests, 62 assertions)
- Add empty lines before assertion methods
- Fix hash literal brace spacing
- Use double quotes for string literals consistently
- Use assert_empty instead of assert_equal for empty arrays
- Remove extra blank lines
- All 76 tests still passing with 855 assertions
Replace placeholder images with cute cat images in demo app
All checks were successful
CI / Test on Ruby 3.4 (pull_request) Successful in 42s
CI / Lint (pull_request) Successful in 38s
CI / Test on Ruby 3.4 (push) Successful in 46s
CI / Lint (push) Successful in 38s
CI / Build gem (pull_request) Successful in 33s
CI / Build gem (push) Successful in 33s
36a0015e93
- Updated 404 error with 'Confused cat saying 404 Not Found'
- Added 'Grumpy cat denying access' for 403 errors
- Server error now shows 'Sad cat experiencing server error'
- Rate limiting shows 'Cat telling you to slow down'
- Teapot error features 'Cat pretending to be a teapot'
- Bad request shows 'Confused cat with bad request'
- Service unavailable displays 'Cat working on maintenance'
- All images use free cataas.com API with custom text and colors
- Updated README to mention cute cat images in demo
- All tests still passing (76 tests, 855 assertions)
heming merged commit 36a0015e93 into main 2025-06-14 04:01:40 +02:00
heming deleted branch feature/custom-error-content 2025-06-14 04:01:40 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: heming/rsep#8
No description provided.