README.md in clockwork-0.4.0 vs README.md in clockwork-0.4.1

- old
+ new

@@ -123,11 +123,26 @@ every(1.day, 'reminders.send', :at => '00:00', :tz => 'UTC') # Runs the job each day at midnight, UTC. # The value for :tz can be anything supported by [TZInfo](http://tzinfo.rubyforge.org/) +### :if +`:if` parameter is invoked every time the task is ready to run, and run if the +return value is true. + +Run on every first day of month. + + Clockwork.every(1.day, 'myjob', :if => lambda { |t| t.day == 1 }) + +The argument is an instance of `Time`. If `:tz` option is set, it is local time. + +This argument cannot be omitted. Please use _ as placeholder if not needed. + + Clockwork.every(1.second, 'myjob', :if => lambda { |_| true }) + + Configuration ----------------------- Clockwork exposes a couple of configuration options you may change: @@ -213,15 +228,15 @@ Meta ---- Created by Adam Wiggins -Inspired by [rufus-scheduler](http://rufus.rubyforge.org/rufus-scheduler/) and [http://github.com/bvandenbos/resque-scheduler](resque-scehduler) +Inspired by [rufus-scheduler](http://rufus.rubyforge.org/rufus-scheduler/) and [resque-scehduler](http://github.com/bvandenbos/resque-scheduler) Design assistance from Peter van Hardenberg and Matthew Soldo Patches contributed by Mark McGranaghan and Lukáš Konarovský Released under the MIT License: http://www.opensource.org/licenses/mit-license.php -http://github.com/adamwiggins/clockwork +http://github.com/tomykaira/clockwork