2009年03月31日(火)

gcalapi 0.1.2 への patch

mhc2gcalに関するりばにしの記事

Google Calendar の Feed に新たな名前空間が追加されたためか,自分が使っている mhc2gcal がエラーを吐くようになっていた.

mhc2gcal で使っている gcalapi の calendar.rb に以下のパッチをあてて動くようになった.

--- 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("entry"){}.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

gcalapi の作者さんにも送っておこう.

2009年03月31日00時57分 | Permalink
Trackback URL
Comment Form

▶次の記事:叙々苑特製焼肉弁当
◀前の記事:容疑者Xの献身