Ical to Rss Converter
hi, first execute the rss to ical converter, store it in a file, then use this script, to convert it into rss. require 'rubygems' require 'net/http' require 'uri' require 'time' class Time def self.gcalschema(tzid) # We may not be handling Time Zones in the best way... tzid =~ /(\d\d\d\d)(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)Z/ ? # yyyymmddThhmmss Time.xmlschema("#{$1}-#{$2}-#{$3}T#{$4}:#{$5}:#{$6}") : nil end end class ICal attr_accessor :hash, :raw def initialize(ical_data) self.raw = ical_data self.hash = self.parse_ical_data(self.raw) end def parse_ical_data(data) data.gsub!(/\\\n/, "\\n") data.gsub!(/[\n\r]+ /, "\\n") lines = data.split(/[\n\r]+/) structure = [{}] keys_path = [] last_is_array = false lines.each do |line| line.gsub!(/\\n/, "\n") pair = line.split(':') name = pair.shift ...