lib/clockwork.rb in clockwork-0.6.0 vs lib/clockwork.rb in clockwork-0.6.1

- old
+ new

@@ -16,10 +16,14 @@ def handler(&block) @@manager.handler(&block) end + def on(event, options={}, &block) + @@manager.on(event, options, &block) + end + def every(period, job, options={}, &block) @@manager.every(period, job, options, &block) end def run @@ -27,9 +31,10 @@ end def clear! @@manager = Manager.new end + end unless 1.respond_to?(:seconds) class Numeric def seconds; self; end