Module: Cronex

Defined in:
lib/cronex/utils.rb,
lib/cronex/errors.rb,
lib/cronex/parser.rb,
lib/cronex/version.rb,
lib/cronex/resource.rb,
lib/cronex/exp_descriptor.rb,
lib/cronex/description/base.rb,
lib/cronex/description/year.rb,
lib/cronex/description/hours.rb,
lib/cronex/description/month.rb,
lib/cronex/description/minutes.rb,
lib/cronex/description/seconds.rb,
lib/cronex/description/day_of_week.rb,
lib/cronex/description/day_of_month.rb

Defined Under Namespace

Modules: Utils Classes: DayOfMonthDescription, DayOfWeekDescription, Description, ExpressionDescriptor, HoursDescription, MinutesDescription, MonthDescription, Parser, Resource, SecondsDescription, YearDescription

Constant Summary collapse

ExpressionError =
Class.new(StandardError)
ResourceError =
Class.new(StandardError)
DAYS =
Date::ABBR_DAYNAMES.map(&:upcase)
MONTHS =
Date::ABBR_MONTHNAMES[1..-1].map(&:upcase)
DAY_NUM =
Hash[DAYS.zip(0..(DAYS.size - 1))]
MONTH_NUM =
Hash[MONTHS.zip(1..MONTHS.size)]
DAY_DAY =

abbr dayname => long dayname

Hash[DAYS.zip(Date::DAYNAMES.map(&:upcase))]
VERSION =
'0.15.0'
RESOURCES_DIR =
File.expand_path('../../../resources', __FILE__)
CASINGS =
[:title, :sentence, :lower]
SEGMENTS =
[:seconds, :minutes, :hours, :dayofmonth, :month, :dayofweek, :year, :timeofday, :full]
SPECIAL_CHARS =
['/', '-', ',', '*']
CRONEX_OPTS =
{
  casing: :sentence,
  verbose: false,
  zero_based_dow: true,
  use_24_hour_time_format: false,
  throw_exception_on_parse_error: true,
  strict_quartz: false,
  locale: nil,
  timezone: nil
}