I've switched ApiDocLoader over to use the Hobo source via Hobo.root and I'm
now getting a few Maruku errors. Apparently it's choking on some of the new
comments added to the code. For example the below:
| Maruku tells you:
+---------------------------------------------------------------------------
| Malformed HTML starting at "<model_name>:\n filter_menu:\n
period:\n no_filter: Todos Períodos\n
options:\n - [ \"Hoy\", \"today\" ]\n - [
\"Ayer\", \"yesterday\" ]"
|
---------------------------------------------------------------------------
| tiverecord:N attributes:N <model_name>:N
filter_menu:N
|
--------------------------------------|-------------------------------------
| +--- Byte 50
| Shown bytes [12 to 75] of 245:
| > es:
| > activerecord:
| > attributes:
| > <model_name>:
| > filter_menu:
| > period:
| > no_filter: Todos Períodos
| > options:
| > - [ "Hoy", "today" ]
| > - [ "Ayer", "yesterday" ]
|
| At line 50
| code | options:|
| code | - [ "Hoy", "today" ]|
| code | - [ "Ayer", "yesterday" ]|
| empty --> ||
| text |or|
| empty ||
| text | es:|
|
|
| Elements read in span:
|
| Current string:
| " es: activerecord: attributes: "
+---------------------------------------------------------------------------
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/errors_management.rb:49:in
`maruku_error'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:476:in
`read_inline_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:122:in
`read_span'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:46:in
`parse_span_better'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:36:in
`parse_lines_as_span'
\___________________________________________________________________________
___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| REXML cannot parse this block of HTML/XML:
| |<marukuwrap><model_name>:
| | filter_menu:
| | period:
| | no_filter: Todos Períodos
| | options:
| | - [ "Hoy", "today" ]
| | - [ "Ayer", "yesterday" ]</marukuwrap>
| #<REXML::ParseException: #<REXML::ParseException: Missing end tag for
'model_name' (got "marukuwrap")
| Line:
| Position:
| Last 80 unconsumed characters:
| >
|
/home/bsleys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in
`pull'
|
/home/bsleys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in
`parse'
|
/home/bsleys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/rexml/document.rb:227:in
`build'
|
/home/bsleys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/rexml/document.rb:43:in
`initialize'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/helpers.rb:93:in
`new'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/helpers.rb:93:in
`md_html'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:484:in
`read_inline_html'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:122:in
`read_span'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:46:in
`parse_span_better'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:36:in
`parse_lines_as_span'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:275:in
`read_paragraph'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:158:in
`read_text_material'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:69:in
`parse_blocks'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:41:in
`parse_text_as_markdown'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:57:in
`parse_doc'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/maruku.rb:30:in
`initialize'
| (eval):1:in `new'
| (eval):1:in `comment_rest_html'
| ./lib/api_doc_loader.rb:28:in `load_into_database'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`send'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`method_missing'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`map'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`send'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`method_missing'
| ./lib/api_doc_loader.rb:12:in `load_into_database'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`send'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`method_missing'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`map'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`send'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/hobo_support-1.3.0.RC/lib/hobo_support/enumerable.rb:46:in
`method_missing'
| ./lib/api_doc_loader.rb:47:in `load'
| /home/bsleys/hobocookbook/lib/tasks/cookbook.rake:5
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
| /home/bsleys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
|
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/rake-0.8.7/bin/rake:31
| /home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bin/rake:19:in `load'
| /home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bin/rake:19
| ...
| Missing end tag for 'model_name' (got "marukuwrap")
| Line:
| Position:
| Last 80 unconsumed characters:
|
| Line:
| Position:
| Last 80 unconsumed characters:
| >
+---------------------------------------------------------------------------
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/errors_management.rb:56:in
`maruku_recover'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/helpers.rb:97:in
`md_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:484:in
`read_inline_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:122:in
`read_span'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:46:in
`parse_span_better'
\___________________________________________________________________________
Wrapping bad html in a PRE with class 'markdown-html-error'
|<model_name>:
| filter_menu:
| period:
| no_filter: Todos Períodos
| options:
| - [ "Hoy", "today" ]
| - [ "Ayer", "yesterday" ]
___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "hoy_today" for md_link([
| md_entity("ldquo"),
| "Hoy",
| md_entity("rdquo"),
| ", ",
| md_entity("ldquo"),
| "today",
| md_entity("rdquo")
| ],"hoy_today")
| Available refs are []
+---------------------------------------------------------------------------
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/errors_management.rb:49:in
`maruku_error'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:716:in
`to_html_link'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`send'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`array_to_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in
`each'
\___________________________________________________________________________
Not creating a link for ref_id = "hoy_today".
___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "ayer_yesterday" for md_link([
| md_entity("ldquo"),
| "Ayer",
| md_entity("rdquo"),
| ", ",
| md_entity("ldquo"),
| "yesterday",
| md_entity("rdquo")
| ],"ayer_yesterday")
| Available refs are []
+---------------------------------------------------------------------------
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/errors_management.rb:49:in
`maruku_error'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:716:in
`to_html_link'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`send'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`array_to_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in
`each'
\___________________________________________________________________________
Not creating a link for ref_id = "ayer_yesterday".
___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "today_yesterday" for md_link(["today
yesterday"],"today_yesterday")
| Available refs are []
+---------------------------------------------------------------------------
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/errors_management.rb:49:in
`maruku_error'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:716:in
`to_html_link'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`send'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
`array_to_html'
!/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in
`each'
\___________________________________________________________________________
Not creating a link for ref_id = "today_yesterday"
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/oVwg5oa5oP4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.