Patches: Browse | Submit New | Admin

[#25026] patch for calendar.rb in gcalapi 0.1.2

Date:
2009-03-30 16:09
Priority:
3
Submitted By:
Nao Kawanishi (river2470)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
patch for calendar.rb in gcalapi 0.1.2

Detailed description
I'm a user of "gcalapi".
I use "gcalapi" to sync MHC with Google Calendar.

I cannot get events from Google Calendar using "gcalapi".
By checking the atom feed of Google Calendar, 
I found that some namespaces are added to feed tag.

So, I tried to create a patch for calendar.rb.
I'm not good at ruby, but this patch works well.

I also upload this patch in my blog (in japanese).
 http://www.heavenwolf.org/blog/2009/03/31/20090331005716/

Best regards.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-03-30 16:12
Sender: Nao Kawanishi

Did I fail to upload patch...?

--- calendar.rb.0.1.2   2007-02-19 00:08:31.000000000 +0900
+++ calendar.rb 2009-03-30 10:37:47.000000000 +0900
@@ -60,6 +60,10 @@
       REXML::Document.new(ret.body).root.elements.each("ent
ry"){}.map do
|elem|
         elem.attributes["xmlns:gCal"] = 
"http://schemas.google.com/gCal/2005"
         elem.attributes["xmlns:gd"]
= "http://schemas.google.com/g/2005"
+        elem.attributes["xmlns:openSearch"] =
"http://a9.com/-
/spec/opensearchrss/1.0/"
+        elem.attributes["xmlns:gml"]
= "http://www.opengis.net/gml"
+        elem.attributes["xmlns:georss"]
= "http://www.georss.org/georss"
+        elem.attributes["xmlns:batch"] = 
"http://schemas.google.com/gdata/batch"
         elem.attributes["xmlns"] =
"http://www.w3.org/2005/Atom"
         entry = Event.new
         entry.srv = @srv

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item