example.rb in clockwork-0.7.0 vs example.rb in clockwork-0.7.1

- old
+ new

@@ -12,6 +12,17 @@ every(1.day, 'run.me.at.midnight', :at => '00:00') every(1.day, 'custom.event.handler', :at => '00:30') do puts 'This event has its own handler' end + + # note: callbacks that return nil or false will cause event to not run + on(:before_tick) do + puts "tick" + true + end + + on(:after_tick) do + puts "tock" + true + end end