rschmukler/agenda — pull request #114 by droppedoncaprica (2014-10-29 03:01:30+00:00)
Title: Fix .every() running when using cron strings.

The .every() method wasn't setting the nextRunAt correctly,
defaulting to Date.now() when it was first set up. After the
initial run the dates would be set correctly.

This fix computes the nextRunAt correctly using
Job.prototype.computeNextRunAt(). I also had to alter that method
a little, scheduling the job to run immediately if supplied a human
interval.

Fixes rschmukler/agenda#100.