Retriable 4.0.0
·
15 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Major release with breaking changes. Please read carefully before upgrading.
Breaking changes
- Removed
timeout:fromRetriable.retriable,Retriable.configure, andRetriable.with_override. Prefer library-native timeout settings, or wrap the retried block inTimeout.timeout(...)directly if you still need that behavior. - Minimum Ruby version is now 3.2. Ruby 2.x, 3.0, and 3.1 users should stay on the 3.8.x line (
~> 3.8).
Features
- Added
on_give_up, a callback that runs when Retriable stops retrying after a rescued retriable exception. - Added support for passing a
SetofExceptionclasses as theon:option.
Internal
- Switched
Retriable.retriable,Retriable.with_context, and theKernelextension methods to Ruby 3.1+ anonymous block forwarding.
See the README migration section for replacement patterns and examples.