schacon/docurium — Issue #4: undefined method `each' for #<String:0x00000000e65398>
Author: banthar
Created: 2011-12-18 11:37:04+00:00
State: open

I'm getting this, when I try to generate docs for libgit2:

$ cm doc api.docurium
* generating docs
- processing version v0.1.0
undefined method `each' for #
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:420:in `block in extract_meta'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:419:in `each'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:419:in `extract_meta'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:402:in `parse_header'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:193:in `block in parse_headers'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:192:in `each'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:192:in `parse_headers'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:51:in `block (2 levels) in generate_docs'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:48:in `chdir'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:48:in `block in generate_docs'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:45:in `each'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium.rb:45:in `generate_docs'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/lib/docurium/cli.rb:6:in `doc'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/bin/cm:18:in `block (2 levels) in '
/usr/lib/ruby/gems/1.9.1/gems/gli-1.4.0/lib/gli/command.rb:121:in `call'
/usr/lib/ruby/gems/1.9.1/gems/gli-1.4.0/lib/gli/command.rb:121:in `execute'
/usr/lib/ruby/gems/1.9.1/gems/gli-1.4.0/lib/gli.rb:237:in `run'
/usr/lib/ruby/gems/1.9.1/gems/docurium-0.0.5/bin/cm:41:in `'
/usr/bin/cm:19:in `load'
/usr/bin/cm:19:in `

'

My `ruby -v`:

ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

And my `gem list`:

*** LOCAL GEMS ***

bigdecimal (1.1.0)
docurium (0.0.5)
gli (1.4.0)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
mustache (0.99.4)
rake (0.9.2.2)
rdiscount (1.6.8)
rdoc (3.9.4)
rocco (0.7)
version_sorter (1.1.0)