Skip to content

ordinaryzelig/ics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

ICS events in Ruby objects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages