lib/rufus/scheduler/jobs.rb in rufus-scheduler-3.4.2 vs lib/rufus/scheduler/jobs.rb in rufus-scheduler-3.5.0
- old
+ new
@@ -610,12 +610,10 @@
def initialize(scheduler, cronline, opts, block)
super(scheduler, cronline, opts, block)
- @cron_line =
- opts[:_t] ||
- (cronline.is_a?(CronLine) ? cronline : CronLine.new(cronline))
+ @cron_line = opts[:_t] || ::Fugit::Cron.parse(cronline)
set_next_time(nil)
end
def frequency