Release 0.7.0 - #44
Merged
Merged
Conversation
…rsion bump
- rfc_9457: as: symbols with underscores now dasherize consistently
(as: :user_profile -> type "user-profile-ok", title "User profile ok")
- rfc_9457: drop Integer/Float from PRIMITIVE_CLASSES (covered by Numeric)
- Bump version to 0.7.0 and update Gemfile.lock; fold CHANGELOG [Unreleased]
into [0.7.0] dated 2026-07-02 (the 2026-06-29 entry never shipped)
- response-formatters.md: Default format docs described the pre-0.5.0
unwrapped-body behavior; rewritten to match the { data: } envelope
- README.md: JSON:API example type is singular ("user", not "users")
- custom-formatters.md: generated helpers delegate with errors: nil and
forward **extras; align intro with the 0.7 contract note
- action_figure.rb: resolve deprecation-comment placeholder (remove in 0.8.0)
- rfc_9457_test.rb: remove stale stub comment
Misspelled constant shipped through 0.6.0, aliased with deprecate_constant in 0.6.1 for one release; 0.7.0 removes it. Drops the alias, its RBS signature, and the alias resolution test.
There was a problem hiding this comment.
Pull request overview
Release prep for ActionFigure 0.7.0, updating versioning and documentation, removing a deprecated constant alias, and refining RFC 9457 formatter behavior/documentation.
Changes:
- Bump gem version to 0.7.0 and update release notes / lockfile metadata.
- Remove the deprecated
IndeterminantEntryPointErroralias (and related tests/signatures). - Improve RFC 9457 success derivation for underscored
as:names and refresh formatter documentation examples.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/action_figure/formatters/rfc_9457_test.rb | Adds coverage for as: :user_profile dasherization; simplifies error_response test setup. |
| test/action_figure/core_test.rb | Removes deprecated alias test helpers. |
| sig/action_figure.rbs | Removes the deprecated alias type entry. |
| README.md | Fixes JSON:API example type output to match serializer behavior. |
| lib/action_figure/version.rb | Bumps VERSION to 0.7.0. |
| lib/action_figure/formatters/rfc_9457.rb | Treats underscored as: names as dash-separated for derived type/title; cleans primitive list. |
| lib/action_figure.rb | Removes deprecated IndeterminantEntryPointError alias and deprecation hook. |
| Gemfile.lock | Updates locked local gem version references to 0.7.0. |
| docs/response-formatters.md | Updates Default formatter docs to reflect { "data": ... } envelope behavior. |
| docs/custom-formatters.md | Updates custom formatter docs re: generated error helper forwarding and error_response expectations. |
| CHANGELOG.md | Finalizes 0.7.0 release entry and notes removal of deprecated alias. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ### Changed | ||
|
|
||
| - **Formatter contract shrank from 8 methods to 4**: `Ok`, `Created`, `Accepted`, and the new `error_response(errors:, status:)`. Named error helpers (`NotFound`, `Conflict`, …) are generated from the registry and delegate to `error_response`; a hand-defined named helper on a formatter still wins. |
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.
No description provided.