- Prevent duplicate invocation of the error callback when guarding an instance method.
- Prevent mutable default options from being shared across instances.
ResultMonad
callbacks (before_success
,before_error
) are now inherited.
- Listen on multiple event names to
EventSource
listener.
- Have
GuardFailed
inherit fromException
instead ofStandardError
.
- Loosen the ActiveSupport dependency version to prepare for Rails 7.
- Yield the result of the call from
FunctionalObject
if block is given.
- Add
ResultMonad::GuardClause#pass
method which can be used to pass guards.
- Add guard clauses through new
ResultMonad::GuardClause
mixin.
- Allow transform declaration with optional value to
OptionsDeclaration
.
- Add support for transformation methods to
OptionsDeclaration
.
- Add back dependency on
ActiveSupport#class_attribute
which was dropped prematurely.
- Add
error_handler
configuration option to theEventSource
module.
- Add nicely formatted inspect output for
ResultMonad::Result
.
- Split child classes of
EventSource
andOptionsDeclaration
into own files. - Add a bunch more inline documentation for the mixins.
- Remove
EventSource
andResultMonad
dependencies on ActiveSupport.
- Allow
default: nil
to be used without needingrequired: false
for theOptionsDeclaration.option
method.
- Add
raise_errors
option toEventSource.on
method.
- Require
EventSource
by default.
- Add
EventSource
mixin.
- Add
before_success
andbefore_error
callbacks toResultMonad
.
- Add
ResultMonad
mixin.
- Add
OptionsDeclaration
mixin.
- Require
FunctionalObject
by default.
- Add
FunctionalObject
mixin.