ICS events in Ruby objects
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
HISTORY.md
README.rdoc
Rakefile
ics.gemspec

README.rdoc

ICS

ICS is a library that reads ICS files and parses them into ICS::Event objects.

Usage

Short version

require 'rubygems'
require 'ics'
events = ICS::Event.file(File.open('calendar.ics'))
events.map(&:summary)
#=> ['Walk dog', 'Solve world hunger, tell noone', ...]

Metadata

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.

Installation

gem install ics

TODO

  • escape characters

  • Multiple alarms?