James Baster
2010-Mar-25 15:47 UTC
[iCalendar-devel] Icalendar::UnknownPropertyMethod: Unknown property type: on Parsing a ical file
I downloaded the ics from http://www.thegreenerleithsocial.org/events/cleanup-the-cycle-path and tried to parse it in my rails app console: ?> cal_file = File.open("/tmp/Clean_up the Cycle Path-1.ics") => #<File:/tmp/Clean_up the Cycle Path-1.ics>>> cals = Icalendar.parse(cal_file)Icalendar::UnknownPropertyMethod: Unknown property type: website from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:183:in `parse_component'' from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:132:in `parse_component'' from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:102:in `parse'' from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:17:in `parse'' from (irb):15 This is with version 1.1.3. Any suggestions? Thanks very much, James
Sean Dague
2010-Mar-25 17:31 UTC
[iCalendar-devel] Icalendar::UnknownPropertyMethod: Unknown property type: on Parsing a ical file
On 03/25/2010 11:47 AM, James Baster wrote:> I downloaded the ics from > http://www.thegreenerleithsocial.org/events/cleanup-the-cycle-path and > tried to parse it in my rails app console: > > ?> cal_file = File.open("/tmp/Clean_up the Cycle Path-1.ics") > => #<File:/tmp/Clean_up the Cycle Path-1.ics> >>> cals = Icalendar.parse(cal_file) > Icalendar::UnknownPropertyMethod: Unknown property type: website > from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:183:in > `parse_component'' > from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:132:in > `parse_component'' > from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:102:in `parse'' > from ..../vendor/gems/icalendar-1.1.3/lib/icalendar/parser.rb:17:in `parse'' > from (irb):15 > > This is with version 1.1.3. Any suggestions?When I run it through the ical validator, it''s the same issue: http://severinghaus.org/projects/icv/?url=http%3A%2F%2Fwww.thegreenerleithsocial.org%2Fevents%2Fcleanup-the-cycle-path%2Fexport ical is very specific on what named properties you are allowed to have, and website isn''t one of them. It needs to be X-WEBSITE or just stripped out of the content. -Sean -- __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 253 bytes Desc: OpenPGP digital signature URL: <http://rubyforge.org/pipermail/icalendar-devel/attachments/20100325/33597bb8/attachment.bin>