montrose icon indicating copy to clipboard operation
montrose copied to clipboard

Add additional options for mday

Open pareeohnos opened this issue 8 months ago • 0 comments

Adds new options that can be supplied when creating an mday recurrence. This is backwards compatible with the existing API, but now allows for overriding specific months, or specifying a fallback if a month does not meet the criteria.

Montrose.every(:month, mday: { default: 30, fallback: -1 })
Montrose.every(:month, mday: { default: 30, february: 28, march: 29 })
Montrose.every(:month, mday: { default: 30, [:february, :march] => 29, fallback: -1)

Resolves issues #171 and #134

pareeohnos avatar Jun 21 '24 15:06 pareeohnos