From 8e90dd908c7e1d7fb8fb0e7c175b820e9b7b7c61 Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 13 Apr 2009 10:08:52 +0200 Subject: uses the new chaos_calendar gem as well --- lib/chaos_importer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/chaos_importer.rb b/lib/chaos_importer.rb index 74e0bbe..c1ecc7d 100644 --- a/lib/chaos_importer.rb +++ b/lib/chaos_importer.rb @@ -1,6 +1,6 @@ require 'iconv' require 'nokogiri' -require 'lib/chaos_calendar/ical_occurrences' +require 'chaos_calendar' require 'digest/sha1' @@ -214,7 +214,7 @@ class ChaosImporter if dtend return dtend.content elsif duration - parsed_duration = Ical_occurrences.duration_to_fixnum(duration.content) + parsed_duration = ChaosCalendar.duration_to_fixnum(duration.content) return (dtstart.content.to_time + parsed_duration) else raise("Neiter DTEND nor DURATION found") -- cgit v1.3