You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add and_then as alias for then (partially fix #23).
Add catch to Failure and Success. It acts as an inverted then and has a or_else alias.
Add support to custom data property to be passed when calling Base#Check.
Add support to multiple type checks on Result#on_success and Result#on_failure hooks.
Yields result type on blocks (then, on_success and on_failure).
Add type check on Result#on_success and Result#on_failure hooks.
Add method Base#Try. It wraps exceptions in Failures.
Add method Base#Check. It converts booleans to Results.
Add methods #Success(type, data:) and #Failure(type, data:) on FService::Base.
These methods allow defining the type and value of the Result object.
Allow adding types on Results.
Add #on_success and #on_failure hooks on Result objects.
Link to Changelog on gemspec.
Changed
[Deprecation] Mark Base#result as deprecated. They will be removed on the next release. Use the Base#Check instead.
[Deprecation] Mark Base#success and Base#failure as deprecated. They will be removed on the next release. Use the Base#Success and Base#Failure instead.
[Deprecation] Mark Result#on as deprecated. It will be removed on the next release. Use theResult#on_success and/or Result#on_failure hooks instead.