Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept wildcards when specifying day of week #72

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Redithion
Copy link

@Redithion Redithion commented Dec 29, 2021

The idea is to support wildcards when setting a day of week.
A use case for this is if you want to send an alert every hour only on weekdays.
Examples:

  • Mon **:**
  • Mon 15:**
  • Mon **:15
  • Mon **:**, Tue **:**, Wed **:**

This was resolved setting NOT_SPECIFIED in both min and hour when matching that case (/\A([[:alpha:]]+)\s\*{1,2}:\*{1,2}\z/).

I've also updated the README reflecting this change.

Accept not specified minutes and hour with a given weekday.
Added the new formats supported and an example
Combined two separate blocks of code into one in :at example
@Redithion
Copy link
Author

I don't know why CI fails, we are using this in prod with Ruby 2.1 and Ruby 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant