courtenay / caldav forked from collectiveidea/caldav
- Source
- Commits
- Network (4)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit 86e67baa28e0f271de1ef6a39f71bbf17f2fe6f6
tree 3e5020ebd09335f86526085dba5f9e0ddc62868e
parent 47ca1532d65bab1fc80245733a4ae89666b2d1ce
tree 3e5020ebd09335f86526085dba5f9e0ddc62868e
parent 47ca1532d65bab1fc80245733a4ae89666b2d1ce
caldav /
| name | age | message | |
|---|---|---|---|
| |
.DS_Store | Fri Jul 25 18:03:07 -0700 2008 | |
| |
CHANGELOG.txt | Fri Jul 25 18:03:07 -0700 2008 | |
| |
History.txt | Fri Jul 25 18:03:07 -0700 2008 | |
| |
Manifest.txt | Fri Jul 25 18:03:07 -0700 2008 | |
| |
README.txt | ||
| |
Rakefile | Fri Jul 25 18:03:07 -0700 2008 | |
| |
lib/ | ||
| |
plugin/ | Fri Jul 25 18:03:07 -0700 2008 | |
| |
test/ | Fri Jul 25 18:03:07 -0700 2008 |
README.txt
= CalDAV
This is a hacked up version of the CalDAV library that is designed to work with my XServe's iCal server.
It implements digest auth (instead of basic) and grabs individual .ics files because I couldn't find a way
to see prop/caldav:calendar-data in the feed.
It makes a ton of assumptions and I have no idea what I'm doing here, but it works well enough for now.
Also: tests are all busted.
Requirements:
Gems:
icalendar
tzinfo
Usage:
require 'caldav'
options = { :username => 'courtenay', :password => 'blarg' }
host = "https://whatever.com:443"
calendar = CalDAV::Calendar.new "#{host}/calendars/users/officecalendar/calendar/", options
params = (DateTime.parse("20081202T000000Z")..DateTime.parse("20090103T000000Z"))
response = calendar.load_events_xml params
# Loads a big chunk of XML. Slooooow
events = calendar.parse_events_xml
ics = calendar.request_ics_from_event(events[0])
calendar.extract_events_from_ics(ics)
# will return a big array of ICalendar::Event objects that you can play with.
