All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.6.0 - 2024-12-15
- Support Ruby-3.4.X.
- Add
Success#inspect
andFailure#inspect
methods. - Support default value literal in
Failure#value_or
.
- (BREAKING)
Success#value_or
requries default value or block to keep it consistent withFailure#value_or
.
0.5.2 - 2024-08-30
- i18n now looks for keys without
amazing_activist
prefix as well; Lookup order now goes like:amazing_activist.activities.[activity].failures
,activities.[activity].failures
,amazing_activist.failures
,activities.failures
, with fallback to hardcoded"<[activity]> failed - [code]"
.
0.5.1 - 2024-04-26
- Optimize
Failure#deconstruct_keys
to avoid message generation if requested keys are present and do not include it.
0.5.0 - 2024-03-13
- (BREAKING) i18n does not remove
_activity
suffix from keys anymore, e.g. forFoo::BarActivity
expected i18n key will befoo/bar_activity
, notfoo/bar
as it was before.
0.4.0 - 2024-02-19
Base.on_broken_outcome
allows registering custom handler for the broken outcome contract (when#call
returns neitherSuccess
norFailure
)Base.rescue_from
allows registering unhandled exception handlers.
0.3.0 - 2024-02-19
UnwrapError#cause
respects failure's#exception
.
- (BREAKING)
Base#failure
context must be given as keyword argument. - (BREAKING)
Failure#message
is no longer part of its#context
. - (BREAKING)
Failure#exception
is no longer part of its#context
.
0.2.0 - 2024-01-28
- Generate default failure messages with i18n.
0.1.0 - 2024-01-27
- Initial release.