Hi,
I just started using the icalendar module for ruby (version 1.0.2) and
I think I found a bug when parsing icalendar file
generated by the Sun Calendar server:
irb(main):064:0> cals = Icalendar.parse(file)
NoMethodError: Method Name: percent_complete
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/component.rb:413:in
`method_missing''
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/parser.rb:179:in
`send''
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/parser.rb:179:in
`parse_component''
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/parser.rb:133:in
`parse_component''
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/parser.rb:101:in
`parse''
from
/home/bk202143/sig/c8/ruby/lib/ruby/gems/1.8/gems/icalendar-1.0.2/lib/icalendar/parser.rb:16:in
`parse''
from (irb):64
from :0
I did not analyzed the code completely, but the problem seems to be
incomplete property name in the component/todo.rb file. After
following patch, it worked:
$ diff -u icalendar/component/todo.{rb,new}
--- icalendar/component/todo.rb Mon Mar 31 23:27:02 2008
+++ icalendar/component/todo.new Mon Mar 31 23:26:49 2008
@@ -25,7 +25,7 @@
ical_property :last_modified
ical_property :location
ical_property :organizer
- ical_property :percent
+ ical_property :percent_complete
ical_property :priority
ical_property :recurid, :recurrence_id
ical_property :seq, :sequence
If this indeed is correct fix, what should I do to have it included in
the distribution packages?
thank you,
Bob Koutsky
--
If the world were going to suddenly turn into a movie without warning,
I wish it would have been one of those boring, talky Merchant-Ivory
ones instead.