lib/almanack/representation/ical_feed.rb in almanack-1.2.1 vs lib/almanack/representation/ical_feed.rb in almanack-1.3.0.rc1

- old
+ new

@@ -10,11 +10,11 @@ def ical @ical ||= ical_calendar end def to_s - ical.to_s + ical.to_ical end def self.from(calendar) self.new(calendar) end @@ -24,11 +24,11 @@ def events calendar.events_between(now..lookahead) end def ical_calendar - events.each_with_object(RiCal.Calendar) do |event, calendar_component| - calendar_component.add_subcomponent ical_event_for(event) + events.each_with_object(Icalendar::Calendar.new) do |event, calendar| + calendar.add_event ical_event_for(event) end end def ical_event_for(event) BuiltIcalEvent.for(event)