0.4.0: Ruby 3.0+ keyword argument support
This release irons out a few kinks in the way that .delay
and handle_asynchronously
forward keyword arguments through to the delayed method call, with support for the new separation of positional and keyword arguments introduced in 2.7 and enforced in 3.0.
Since Ruby 3.0-style kwargs are already fully supported via ActiveJob (which we strongly recommend using going forward), this means that this library is now fully Ruby 3.0-capable!
A minor internal detail:
Delayed::PerformableMethod
now splits kwargs
out into a separate attribute, while still being backwards-compatible with jobs enqueued via the previous gem version. This is an undocumented internal API and is not considered a breaking change, but if you had previously relied on payload_object.args.last
to access keyword arguments, you must now use payload_object.kwargs
.