README.md in zhong-0.2.3 vs README.md in zhong-0.2.4
- old
+ new
@@ -25,12 +25,12 @@
category "stuff" do
every 5.seconds, "foo" do
puts "foo"
end
- every(1.minute, "biz", at: ["**:26", "**:27"]) { puts "biz" }
- every(1.week, "baz", at: ["mon 22:45", "wed 23:13"]) { puts "baz" }
- every(10.seconds, "boom") { raise "fail" }
+ every(1.minute, "running biz at 26th and 27th minute", at: ["**:26", "**:27"]) { puts "biz" }
+ every(1.week, "running baz on mon and wed", at: ["mon 22:45", "wed 23:13"]) { puts "baz" }
+ every(10.seconds, "boom every 10 seconds") { raise "fail" }
end
category "clutter" do
every(1.second, "compute", if: -> (t) { t.wday == 3 && rand < 0.5 }) do
puts "something happened on wednesday, maybe"