I need to create events on a calendar server using CalDAV from within a Ruby (Rails to be precise) Application. I have looked at some different libraries and done some googling.
I looked at ri-cal ( http://ri-cal.rubyforge.org/rdoc/ ) But wasnt sure if it supported sending data toa server or if I had to do that myself,
this looked promising http://www.local-guru.net/blog/pages/rubycaldav , but it says it is alpha software, i need something stable.
What is the best way to do this? Is there any library that does this already, Do i need to form my own HTTP requests?
Any advice on the subject is appreceated
I ended up using the library at http://www.local-guru.net/blog/pages/rubycaldav
I had to adapt it work with SSL, and use the UUID library correctly, format the dates correctly and work with Full day events. Since I only needed to create and destroy Events that is all i updated. I plan to do more with in when i have time.
My updated code can be found here https://github.com/loosecannon93/ruby-caldav.
The problem I was having was supplying incorrectly formatted dates, and lack of UUIDs.
The
caldavtest.rbfile on GitHub is what I used to workAn additional Complication i ran into was that Zimbra ( the server ) has 2 paths, one for ICS files that are readonly
/home/user@host/Calenderand one for CalDAV/dav/user@host/CalendarI hope that someone may find help with this solution.
However there is a substantial lack of cladav implementation for Ruby. There are ICS libraries that form objects, but there is only pure Net::HTTP to interact with a server. Local-guru’s is the only ruby one I found that works both ways, but it is in need of some help with minor issues.
I fixed some of these but not project wide, I just had to get it working. But if someone would like to contribute I would love to help.