From dsmyers at mit.edu Mon Mar 3 17:38:36 2008 From: dsmyers at mit.edu (Daniel Myers) Date: Mon, 3 Mar 2008 17:38:36 -0500 Subject: [iCalendar-devel] Escape carriage returns (\r)? Message-ID: <455d64770803031438i777c5609w9abaa15ffac3b990@mail.gmail.com> Hi, I was trying to get Google Calendar to import a gem-generated file with no luck (it kept giving me the unhelpful message "parse error," even though http://severinghaus.org/projects/icv/ accepted the file as valid). After a bunch of screwing around, I changed line 148 of component.rb to include a .gsub("\r", "\\r"), which fixed the problem. It seems like line 158 might also want the same...is this correct? Daniel From larry.karnowski at gmail.com Fri Mar 21 14:34:09 2008 From: larry.karnowski at gmail.com (Larry Karnowski) Date: Fri, 21 Mar 2008 14:34:09 -0400 Subject: [iCalendar-devel] PATCH: Timezone-specific bug in tests Message-ID: <2b27183e0803211134h50bfc76l4fa00297e32acbfa@mail.gmail.com> All, When I run "rake test" with my computer set to the -5 (EST) timezone, I always see the conversions_test.rb fail. It's because the line setting the x_time_of_day is inputing a simple Time.at(123456), and then the sample ICS file has the output set to the +2 timezone. I've attached a minor patch against 1.0.2 that makes the timezone explicit in the test, allowing it to run anywhere in the world. Hope this helps someone, Larry -------------- next part -------------- A non-text attachment was scrubbed... Name: timezone_test_conversion.patch Type: application/octet-stream Size: 735 bytes Desc: not available Url : http://rubyforge.org/pipermail/icalendar-devel/attachments/20080321/ce37c5d0/attachment.obj