calfilter
Description
The calfilter gem is a small library to assist in writing filtering programs for icalendar files or streams. It can be used for various purposes, including:
- removing items from icalendar feeds that are not interesting to you
- removing private information from your own calendar before publishing it to others
- reformatting a provided calendar to highlight particular information
Install
sudo gem install calfilter
Synopsis
require 'calfilter' require 'calfilter/cgi' filter_calendars('some_url') do |cal| cal.keep(:events) # not journals, todos, or freebusys cal.filter_events do |evt| # Remove events I've marked private evt.remove if evt.description =~ /PRIVATE/ # Don't reveal phone numbers of my contacts evt.description.sub! /\d{3}-\d{4}/, '###-####' end end
Features
- require 'calfilter/tripit' to add some methods specific to tripit.com calendar feeds.
- require 'calfilter/cgi' to automatically turn your filter into a CGI script.
Bugs/Requests
Please submit your bug reports, patches or feature requests as a ticket under the component "calfilter". You'll have to create an account (Sorry! Otherwise we'd get way too much spam).
License and Copyright
Copyright (c) 2008 Glenn Vanderburg, released under the MIT license
