whedon - parse crontab syntax

The goal of this gem is to parse a crontab timing specification and produce an object that can be queried about the schedule.

This gem began as an extraction of Rufus::CronLine from the rufus-schedule gem.

API example

sch = Whedon::Schedule.new('30 * * * *')

# Most Recent
sch.last

# Upcoming
sch.next

# Next after date/time argument
sch.next("2020/07/01")

# Given date/time matches cron string
sch.matches?("2020/07/01 14:00:00")

# Give cron string represented as an array
# [seconds minutes hours days months weekdays monthdays timezone]
sch.to_a