0.2.0 (2023-08-16)
IMPROVEMENTS:
- Using RSpec instead of Minitest for testing
- Minor code cleanup
0.1.1 (2023-08-16)
HOTFIXES:
- Always pass the error to the
on_error
callable object instead of mixederror/Failure(error)
0.1.0 (2022-10-28)
- Explicit requires
dry-monads
>= 1.x, just for convenience
BREAKING CHANGES:
- The arrays of exceptions to catch is now received using the
only
argument key, e.g.ToResult(only: [ArgumentError])
- Setting the global
on_error
with a non-callable object (an object that does not respond tocall
) will raiseTypeError
NEW FEATURES:
- Added local
on_error
that can be used to override or run a one-time block when an error is catchedToResult(on_error: Proc { |e| puts e })
0.0.4 (2022-10-08)
- Adds a global
configuration
object for ToResult - Adds
on_error
field inconfiguration
to execute a block every time a error is catched
0.0.3 (2022-10-08)
- Fixed file name,
require 'to_result'
is not needed anymore to make this gem work.
0.0.2 (2022-09-18)
0.0.1 (2022-09-18)
* This Changelog was automatically generated by github_changelog_generator