kou/yard — pull request #1 by yhara (2012-02-27 08:27:45+00:00)
Title: "yardoc --output locale --format pot" raises error

Hi,

I got the following error when I tried to generate .pot file for CRuby's source.

% ~/proj/prismdoc/yard/bin/yardoc --output locale --format pot *.c *.y
(snip)
/Users/yhara/proj/prismdoc/yard/templates/default/fulldoc/pot/setup.rb:22:in `sort_by': comparison of NilClass with Array failed (ArgumentError)
from /Users/yhara/proj/prismdoc/yard/templates/default/fulldoc/pot/setup.rb:22:in `generate_pot'
from /Users/yhara/proj/prismdoc/yard/templates/default/fulldoc/pot/setup.rb:7:in `init'
from /Users/yhara/proj/prismdoc/yard/lib/yard/templates/template.rb:147:in `initialize'
from /Users/yhara/proj/prismdoc/yard/lib/yard/templates/template.rb:89:in `new'
from /Users/yhara/proj/prismdoc/yard/lib/yard/templates/template.rb:94:in `run'
from /Users/yhara/proj/prismdoc/yard/lib/yard/templates/engine.rb:104:in `generate'
from /Users/yhara/proj/prismdoc/yard/lib/yard/cli/yardoc.rb:330:in `run_generate'
from /Users/yhara/proj/prismdoc/yard/lib/yard/cli/yardoc.rb:243:in `run'
from /Users/yhara/proj/prismdoc/yard/lib/yard/cli/command.rb:13:in `run'
from /Users/yhara/proj/prismdoc/yard/bin/yardoc:12:in `

'

This patch fixes the problem (or maybe I'm doing something wrong?)