[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mhc:01729] 'mhc-date.rb' Failes with More Than Two Durationsl in 'X-SC-duration'



加藤@東工大です.

X-SC-Duration: に次のように2つ以上の期間を指定すると,

| X-SC-Duration: 20021002-20030204 20030401-20030430

emacs上では正しく表示できるのですが, 'today' や 'gemcal' などでは
次のように失敗してしまいます.

| zsh $gemcal
| /usr/lib/ruby/1.6/mhc-date.rb:264:in `days': undefined method `-' for "20030204 20030401":String (NameError)
|        from /usr/lib/ruby/1.6/mhc-date.rb:279:in `<=>'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:601:in `>'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:601:in `in_duration?'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:1191:in `search1'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:1190:in `each'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:1190:in `search1'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:1188:in `each'
|        from /usr/lib/ruby/1.6/mhc-schedule.rb:1188:in `search1'
|         ... 6 levels...
|        from /usr/bin/gemcal:615:in `scan'
|        from /usr/bin/gemcal:571:in `initialize'
|        from /usr/bin/gemcal:681:in `new'
|        from /usr/bin/gemcal:681

そもそも, 仕様として X-SC-Duration: で複数の期間を指定して良いように
なっていない気がしますが, 指定できないとすると予定によっては
| X-SC-Day: !2002???? !2002???? !2002???? !2002???? !2002???? ......
と !日付 で一杯なって使いにくいので対応して頂けると嬉しい気がします.


-- 
================== Ryoichi Kato ==================
 mmm | Graduate School of Info. Sci. & Engineering
 - - | Dept. of Mathematical and Computing Sci.,
  ~  | Tokyo Institute of Technology