@@ -91,17 +91,17 @@ schedule.previous_occurrence(from_time)
9191schedule.previous_occurrences(4 , from_time)
9292
9393# or include prior occurrences with a duration overlapping from_time
94- schedule.next_occurrences(4 , from_time, : spans => true )
95- schedule.occurrences_between(from_time, to_time, : spans => true )
94+ schedule.next_occurrences(4 , from_time, spans: true )
95+ schedule.occurrences_between(from_time, to_time, spans: true )
9696
9797# or give the schedule a duration and ask if occurring_at?
98- schedule = IceCube ::Schedule .new (now, : duration => 3600 )
98+ schedule = IceCube ::Schedule .new (now, duration: 3600 )
9999schedule.add_recurrence_rule IceCube ::Rule .daily
100100schedule.occurring_at?(now + 1800 ) # true
101101schedule.occurring_between?(t1, t2)
102102
103103# using end_time also sets the duration
104- schedule = IceCube ::Schedule .new (start = Time .now, : end_time => start + 3600 )
104+ schedule = IceCube ::Schedule .new (start = Time .now, end_time: start + 3600 )
105105schedule.add_recurrence_rule IceCube ::Rule .daily
106106schedule.occurring_at?(start + 3599 ) # true
107107schedule.occurring_at?(start + 3600 ) # false
@@ -162,7 +162,7 @@ ice_cube can provide ical or string representations of individual rules, or the
162162whole schedule.
163163
164164``` ruby
165- rule = IceCube ::Rule .daily(2 ).day_of_week(: tuesday => [1 , - 1 ], : wednesday => [2 ])
165+ rule = IceCube ::Rule .daily(2 ).day_of_week(tuesday: [1 , - 1 ], wednesday: [2 ])
166166
167167rule.to_ical # 'FREQ=DAILY;INTERVAL=2;BYDAY=1TU,-1TU,2WE'
168168
@@ -218,12 +218,12 @@ month (e.g. no occurrences in February for `day_of_month(31)`).
218218
219219``` ruby
220220# every month on the first and last tuesdays of the month
221- schedule.add_recurrence_rule IceCube ::Rule .monthly.day_of_week(: tuesday => [1 , - 1 ])
221+ schedule.add_recurrence_rule IceCube ::Rule .monthly.day_of_week(tuesday: [1 , - 1 ])
222222
223223# every other month on the first monday and last tuesday
224224schedule.add_recurrence_rule IceCube ::Rule .monthly(2 ).day_of_week(
225- : monday => [1 ],
226- : tuesday => [- 1 ]
225+ monday: [1 ],
226+ tuesday: [- 1 ]
227227)
228228
229229# for programmatic convenience (same as above)
@@ -270,7 +270,7 @@ schedule.add_recurrence_rule IceCube::Rule.hourly(2).day(:monday)
270270schedule.add_recurrence_rule IceCube ::Rule .minutely(10 )
271271
272272# every hour and a half, on the last tuesday of the month
273- schedule.add_recurrence_rule IceCube ::Rule .minutely(90 ).day_of_week(: tuesday => [- 1 ])
273+ schedule.add_recurrence_rule IceCube ::Rule .minutely(90 ).day_of_week(tuesday: [- 1 ])
274274```
275275
276276### Secondly (every N seconds)
@@ -298,10 +298,7 @@ https://github.com/GetJobber/recurring_select
298298
299299## Contributors
300300
301- * Andrew Vit ([ @avit ] [ github-avit ] )
302- 303- * Philip Roberts
304- * @sakrafd
301+ https://github.com/seejohnrun/ice_cube/graphs/contributors
305302
306303---
307304
0 commit comments