rstacruz / reacco

Generate documentation from README files.
http://ricostacruz.com/reacco
26 stars 2 forks source link

inner_html undefined method error #1

Open erwinluis opened 12 years ago

erwinluis commented 12 years ago

got this error while trying to install

using ruby 1.9.2-p180, nokogiri (1.5.0), redcarpet (2.0.0b5)

ruby-1.9.2-p180/gems/reacco-0.0.3/lib/reacco/readme.rb:143:in html': undefined methodinner_html' for nil:NilClass (NoMethodError)

rstacruz commented 12 years ago

Did you just install it, or were you running it?

erwinluis commented 12 years ago

just installed

rstacruz commented 12 years ago

Hmm. I'm not sure why that happens, or even why that particular line of code is being executed upon installing.

╰──› rvm gemset 1.9.2@reacco-fresh --create

╰──› gem install reacco
Fetching: reacco-0.0.3.gem (100%)
Successfully installed reacco-0.0.3
1 gem installed

╰──› command ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.7.0]

╰──› reacco --help
Usage: reacco [options]
Generates nice HTML.

Options:
      --literate         Move <pre> blocks to the right.
      --toc              Show a table of contents.
...
erwinluis commented 12 years ago

sorry, I was able to install it, so I got to the same spot as above ^. The error occurred when I ran the command reacco --literate

rstacruz commented 12 years ago

Can you put the file you were trying to process online?

erwinluis commented 12 years ago

Everything ok. My bad, had an empty README.md file. Added the markdown and now it is working. Reacco looks really cool, will pass it along. Thanks.

rstacruz commented 12 years ago

Cool. Yeah, empty files are kinda not handled properly due to laziness (it should at least warn the user IMHO)... I should probably fix that :-)