Sam Roberts
2008-Mar-22 00:24 UTC
[Vpim-talk] Fwd: [ vpim-Feature Requests-18920 ] Parse Recurrence Rules in TODOs
There''s no contact info for the author of this feature request... are you on this list? Cheers, Sam Feature Requests item #18920, was opened at 2008-03-18 12:25 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=910&aid=18920&group_id=218 Category: None Group: None Status: Open Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Parse Recurrence Rules in TODOs Initial Comment: Recurrence rules don''t seem to parse on TODOs ---------------------------------------------------------------------->Comment By: Sam Roberts (sam)Date: 2008-03-21 17:17 Message: Please attach an example. I don''t know what you''re seeing, but it seems to work OK. Here''s a unit test: # Tracker #18920 def test_recurring_todos icstodo =<<___ BEGIN:VCALENDAR VERSION:2.0 BEGIN:VTODO SUMMARY:todo DTSTART:20040415T120000 RRULE:FREQ=WEEKLY;COUNT=2 END:VTODO END:VCALENDAR ___ cal = Icalendar.decode(icstodo).first todo = cal.todos.first assert(todo) assert_equal(todo.occurences.to_a.size, 2) end