Skip to content

0.4.0: Ruby 3.0+ keyword argument support

Compare
Choose a tag to compare
@smudge smudge released this 30 Nov 23:57
· 11 commits to main since this release
6d9d831

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.