Project

ics_parser

0.0
No commit activity in last 3 years
No release in over 3 years
Reads iCalendar feeds and returns events in an array.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 3.0
 Project Readme

IcsParser

Reads an ICalendar file and returns the events in an array.

Also supports recurring events with excluded dates (using EXDATE).

It is not complete and I have only tested it on my feed (exported from Apple iCloud) so do not rely on it.

Example

require 'ics_parser'

parser = IcsParser.from_file('path/to/file')
# or parser = IcsParser.from_string(calendar)
events = parser.events

events.each do |event|
  puts event.summary # string
  puts event.starts_at # Time
  puts event.ends_at # Time
end

Installation

gem install ics_parser