ICS is a library that reads ICS files and parses them into ICS::Event objects.
require 'rubygems' require 'ics' events = ICS::Event.file(File.open('calendar.ics')) events.map(&:summary) #=> ['Walk dog', 'Solve world hunger, tell noone', ...]
Some attributes have some metadata attached to them. For example, sometimes the DTSTART attribute has the time zone:
DTSTART;TZID=America/Chicago:20100331T190000
As of this version, metadata is ignored.
gem install ics
-
escape characters
-
Multiple alarms?