Hobo v.1.3 beta cookbook available

176 views
Skip to first unread message

Bryan Larsen

unread,
Jun 8, 2011, 1:06:00 PM6/8/11
to Hobo Users
I've put up a preliminary version of the hobo cookbook for Hobo 1.3 at
cookbook-staging.hobocentral.net. (This is probably not it's final
location).

There are still a few things that haven't been updated.

- the agility gitorial "testing" and "internationalization" sections
have not been updated.

- the "downloading and installing" section does not mention the
"rails3" branch. Presumably when we release 1.3.0, we'll move that to
master, so this is kind of moot.

- the screencast is out of date

- the only plugin that has been updated is hobo-jquery. The others
may work unchanged, has anybody tested them?

- the branding hasn't been updated. It should clearly state that
this is for Hobo 1.3, and the current cookbook should have "1.0"
branding. We should then have links between the two.

- bugs. You can respond to this email if you see any, or create a
ticket at https://hobo.lighthouseapp.com/projects/27184-hobo-cookbook

Bryan

Bryan Larsen

unread,
Jun 8, 2011, 1:13:00 PM6/8/11
to Hobo Users
P.S. The cookbook is a medium-complexity hobo application, fully open
source at https://github.com/tablatom/hobocookbook. There is lots
that would be nice to do to it, so if somebody wants to lend a hand, I
would certainly be willing to do some mentoring on it.

Bob Sleys

unread,
Jun 8, 2011, 6:59:42 PM6/8/11
to hobo...@googlegroups.com
I'd be willing to give it a shot.  I'm a long time programmer but relatively new to rails and hobo so it would be a good learning experience.  I'm fixing my laptop atm, installing a new HD, once that's done I'll grab a copy and talk a look.

Bob

Bryan Larsen

unread,
Jun 9, 2011, 9:32:12 AM6/9/11
to hobo...@googlegroups.com
That's awesome. The master branch is a fairly generic Rails 2.3/Hobo
1.0 application. The only additional thing I think you need to know
is to use `rake cookbook:load_api_docs` to populate the taglibs tables
in the database.

The `hobo13doc` branch on the other hand, is a bastard hybrid, so it's
best to start with the 1.0 cookbook.

Let me know if you have any problems or would like some suggestions on
what you can do to help.

thanks,
Bryan

> --
> 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/-/VgFZHpagjHEJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>

Bob Sleys

unread,
Jun 9, 2011, 12:01:04 PM6/9/11
to hobo...@googlegroups.com
Well I started with the hobo13doc branch LOL

Ok so I've started getting things ported over to rails3 and now I'm running accross the following error when I try to start it up.

/home/bsleys/hobocookbook/app/rich_types/optional_markdown.rb:1: uninitialized constant HoboFields::RawMarkdownString (NameError)

Is optional_markdow still needed?  It looks like it was done to fix some bug that may no longer exist.

Bob

Bryan Larsen

unread,
Jun 10, 2011, 8:53:06 AM6/10/11
to hobo...@googlegroups.com
HoboFields::RawMarkdownString has moved in Hobo 1.3. it's now
HoboFields::Types::RawMarkdownString.

The big stumbling block porting to 1.3 is going to be getting `rake
cookbook:load_api_docs` to run.

Bryan

> --
> 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/-/3REsnyc-Gf4J.

Owen

unread,
Jun 10, 2011, 3:24:13 PM6/10/11
to Hobo Users
Thanks for joing in, Bob.

-Owen
> >http://groups.google.com/group/hobousers?hl=en.- Hide quoted text -
>
> - Show quoted text -

Bob Sleys

unread,
Jun 10, 2011, 3:36:59 PM6/10/11
to hobo...@googlegroups.com
Just a quick update.  Just trying to get the server to fire off and get to the home page, no imported data yet just a empty database etc.

Most the tabs don't work, throw various errors I haven't researched yet but I can get to the home page if I comment out

<account-nav if="&login_url(Hobo::User.default_user_model)" param/>

in the application.dryml.  It doesn't like Hobo:User

Bob

Bryan Larsen

unread,
Jun 10, 2011, 5:30:10 PM6/10/11
to hobo...@googlegroups.com
Hobo::User was renamed to Hobo::Model::UserBase.

Bryan

> --
> 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/-/9TG_i2X2494J.

Bob Sleys

unread,
Jun 11, 2011, 1:06:33 PM6/11/11
to hobo...@googlegroups.com
Ok time for another update.

Working though the cookbook rake tasks.

First off I've removed the vendor/plugins/hobo folder since it looks like it's the older version of hobo and hobo13 is located in vendor/hobo13.  If I'm mistaken please let me know.

Second I've removed the associated pull_all command to update the vendor/plugins/hobo dir since we already have another to update the vendor/hobo13 dir

At this all the cookbook tasks work with the exception of rebuild_generator_docs.  First I't trying to cd into a nonexistent dir rails3app, since there isn't a Rails.root in front of it I'm not 100% sure exactly where this dir belongs.  Second it's then going to rvm to 1.9.2-p0.  Is this the version we want to base this all off of?  I'm currently using ruby 1.8.7 but can switch up to 1.9.2 if that is the desired target.

Oh and one more aside.  There is a bit of a problem with rake 0.9.x.  For now I've just dropped back to 0.8.7 and included it in the Gemfile.  If you'd like to handle it a different way just let me know.

Bob

Bob Sleys

unread,
Jun 13, 2011, 10:26:31 AM6/13/11
to hobo...@googlegroups.com
Ok pushed what I have so far to https://github.com/bsleys/hobocookbook

Everything doesn't work yet but the cookbook tasks do as does firing up the server. IE you can get to the home page and a couple of other random pages but not most yet.

Bob

Bob Sleys

unread,
Jun 14, 2011, 10:53:10 AM6/14/11
to hobo...@googlegroups.com
Taglibs and recipes kind of work. All markdown output is being sanitized.  Not sure how to turn that off.

Bob

Bob Sleys

unread,
Jun 14, 2011, 11:10:41 AM6/14/11
to hobo...@googlegroups.com
The application_controller is trying to open the files "#{RAILS_ROOT}/git-path" and "#{RAILS_ROOT}/git-version" that arn't part of the project up on git.  Could you please pass them on to me.  I assume they just have one line text in them pointing to git and the git version but it's not always safe to make assumptions :P.

Bob

Bryan Larsen

unread,
Jun 14, 2011, 11:24:31 AM6/14/11
to hobo...@googlegroups.com
For production, those files are generated via `rake vlad:save-version`.

For development:

echo $PWD > git-path
git branch > git-version

Bryan

> --
> 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/-/aApR0ghXtkkJ.

Bryan Larsen

unread,
Jun 14, 2011, 11:28:09 AM6/14/11
to hobo...@googlegroups.com
> Working though the cookbook rake tasks.
> First off I've removed the vendor/plugins/hobo folder since it looks like
> it's the older version of hobo and hobo13 is located in vendor/hobo13.  If
> I'm mistaken please let me know.

Since you're now a genuine rails3 app, you can remove both. Some
sort of gem-foo would be then needed to locate the hobo source to
generate taglibs,

> At this all the cookbook tasks work with the exception
> of rebuild_generator_docs.  First I't trying to cd into a nonexistent dir
> rails3app, since there isn't a Rails.root in front of it I'm not 100%
> sure exactly where this dir belongs.  Second it's then going to rvm to
> 1.9.2-p0.  Is this the version we want to base this all off of?  I'm
> currently using ruby 1.8.7 but can switch up to 1.9.2 if that is the desired
> target.

Since you're now a genuine rails3 app, you can remove all of this
crap, and just do a "bundle exec rails g hobo:#{gen} --help"

> Oh and one more aside.  There is a bit of a problem with rake 0.9.x.  For
> now I've just dropped back to 0.8.7 and included it in the Gemfile.  If
> you'd like to handle it a different way just let me know.

Yup, have had to do the same in some of my apps.

Bryan

yllum...@gmail.com

unread,
Jun 14, 2011, 11:55:04 AM6/14/11
to hobo...@googlegroups.com
Hi folks, hoping for some community input.

I'm starting on a "cheat sheet" for Hobo that hopefully will have two solid and concise components:

I) A workflow cycles section and
II) A concepts / code section that will help people to perhaps exploit the book more easily as well as be able to search for answers more readily on the list and in the Cookbook.

I am hoping to start off by getting some community suggestions here from intermediate to advanced users, or heck, if you're a beginner, please throw in your thoughts. The goal is to distill down knowledge of advanced users in such a format that any beginner can step in and have a more clear method to the "magic" that Hobo provides.

For experienced developers, what kind of project and daily workflow cycles do you find yourself in? What commands do you run and then what activities do you perform iteratively during your project(s)?

If you want to think about the 2nd item and offer feedback as well, you're certainly welcome to do so, but I'm hoping to start with at least the first item as it will give me some structure with which to start working.

Thanks SO VERY MUCH for ANY input or thoughts whatsoever!!!!


Kindest regards,

-George

Domizio Demichelis

unread,
Jun 14, 2011, 11:59:13 AM6/14/11
to hobo...@googlegroups.com
Since you're now a genuine rails3 app, you can remove both.   Some
sort of gem-foo would be then needed to locate the hobo source to
generate taglibs,

maybe you could use Hobo.root() to locate the hobo source?

ciao
dd

Bob Sleys

unread,
Jun 15, 2011, 8:00:27 AM6/15/11
to hobo...@googlegroups.com
Ok I did the above but the last_update in ApplicationController is still failing.  I don't know git that well I figure it out, just know the basics.

Here are my versions of the files

git-path
/home/bsleys/hobocookbook

git-version
* hobo13doc
  master

Basically I don't really know what is being done here nor do I know git well enough to debug it.

The error in the log is

fatal: ambiguous argument 'hobo13doc': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
sh: master: not found

It's failing on

      commit = `git rev-list #{head} #{filename} | head -n 1`

and debugging shows the locals vars as

filename = "manual/download.markdown"
head = "* hobo13doc\n  master"


Thanks for any help

Bryan Larsen

unread,
Jun 15, 2011, 8:53:59 AM6/15/11
to hobo...@googlegroups.com
Sorry, `git-version` should contain just "hobo13doc", not the full
output of git branch.

Bryan

> --
> 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/-/lILyh9zGFf0J.

Bob Sleys

unread,
Jun 17, 2011, 10:20:34 AM6/17/11
to hobo...@googlegroups.com
Thanks for the tip I'll try it out.

Next issue.  How would I go about updating the third party addons?  They are setup as git sub modules and not knowing git real well I'm not sure how to go about it.  Git sub modules appear to be tied to a check-in and not a branch in git.   I need to update paperclip and hobo_paperclip (to the rails3 branch)

Bryan Larsen

unread,
Jun 17, 2011, 10:37:10 AM6/17/11
to hobo...@googlegroups.com
Take a look at the pull_all task in cookbook.rake, and adjust it so
that paperclip & hobo_paperclip do the same thing as hobo-jquery.

Bryan

P.S. You're obviously on the right track. Thanks for all your help!

> --
> 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/-/x7V8n75q8K4J.

Bob Sleys

unread,
Jun 20, 2011, 9:34:56 AM6/20/11
to hobo...@googlegroups.com
paperclip and hobo_paperclip are installed as plugins.  Is there some reason for this vs simply requiring them via the gemfile now that we are moving to rails3?  The reason I ask is it would make dependencies easier if they could be moved over to the gemfile and installed via bundle. For example the latest version of paperclip needs cocain which I will need to get installed somehow, ie via another plugin, gemfile etc. but if I simply add paperclip to the gemfile cocain will automatically get installed.

Bob

Bryan Larsen

unread,
Jun 20, 2011, 9:37:38 AM6/20/11
to hobo...@googlegroups.com
Yes, please switch plugins to gems as appropriate while converting
from Rails2 to Rails3.

thanks,
Bryan

> --
> 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/-/zT0-FJq2mFsJ.

Bob Sleys

unread,
Jun 20, 2011, 3:48:53 PM6/20/11
to hobo...@googlegroups.com
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"

Bryan Larsen

unread,
Jun 20, 2011, 3:57:17 PM6/20/11
to hobo...@googlegroups.com
Are you using the github version? There shouldn't be any markdown
errors as of May 30.

Bryan

Bob Sleys

unread,
Jun 20, 2011, 5:15:13 PM6/20/11
to hobo...@googlegroups.com
I'm using the gem version 1.3.0.RC

Bob

Bob Sleys

unread,
Jun 20, 2011, 5:33:13 PM6/20/11
to hobo...@googlegroups.com
Ok updated to the latest from git and I'm through all the base hobo stuff and only get an error on hobo-jquery, Listed below.

File: /home/bsleys/hobocookbook/taglibs/hobo-jquery/taglibs/hobo-jquery.dryml
#<REXML::ParseException: Malformed comment
Line: 145
Position: 0
Last 80 unconsumed characters:
  <def tag="hjq-combobox" options="tag"> [![DRYML-ERB8   ]!]   <annotate-tag tag=>
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/parser/base_parser.rb:183:in `pull'
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/parser/tree_parser.rb:16:in `parse'
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/parser/document.rb:50:in `build'
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/parser/document.rb:25:in `initialize'
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/dryml_doc.rb:36:in `new'
/home/bsleys/.rvm/gems/ruby-1.8.7-p334@hobocookbook/bundler/gems/hobo-2c604814478b/dryml/lib/dryml/dryml_doc.rb:36:in `initialize'
./lib/api_doc_loader.rb:52:in `new'
./lib/api_doc_loader.rb:52:in `load'
./lib/api_doc_loader.rb:51:in `map'
./lib/api_doc_loader.rb:51:in `load'
./lib/api_doc_loader.rb:49:in `each'
./lib/api_doc_loader.rb:49: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
...
Malformed comment
Line: 145
Position: 0
Last 80 unconsumed characters:
  <def tag="hjq-combobox" options="tag"> [![DRYML-ERB8   ]!]   <annotate-tag tag=
Line: 145
Position: 0
Last 80 unconsumed characters:
  <def tag="hjq-combobox" options="tag"> [![DRYML-ERB8   ]!]   <annotate-tag tag=

(See full trace by running task with --trace)

Bob Sleys

unread,
Jun 20, 2011, 6:36:33 PM6/20/11
to hobo...@googlegroups.com
Think I might have screwed up converting the manually configured routes.  Whenever I try to go to the manual, plugin or tutorials pages, ie thouse not based on hobo_models I get an error can't convert nil into Array. Below is are the routes.rb changes I made with the original routes commented out. I'm getting into the controllers fine but It looks like ruby doesn't know which view to display

Hobocookbook::Application.routes.draw do root :to => 'front#index', :as => 'homepage' match 'search' => 'front#search', :as => 'site_search' match 'manual' => 'manual#index' match 'manual/:section' => 'manual#manual_section', :as => 'manual_section' match 'manual/:section/:subsection' => 'manual#manual_subsection' match 'tutorials' => 'tutorials#index', :as => 'tutorials' match 'tutorials/:tutorial' => 'tutorials#show', :as => 'tutorial' match 'plugins' => "plugins#index", :as => 'plugins' match 'plugin/:plugin' => "plugins#show", :as => 'plugin' #map.site_search 'search', :controller => 'front', :action => 'search' # map.homepage '', :controller => 'front', :action => 'index' # map.manual 'manual', :controller => 'manual', :action => 'index' # map.manual_section 'manual/:section', :controller => 'manual', :action => 'manual_section' # map.manual_section 'manual/:section/:subsection', :controller => 'manual', :action => 'manual_subsection' # map.tutorials 'tutorials', :controller => 'tutorials', :action => 'index' # map.tutorial 'tutorials/:tutorial', :controller => 'tutorials', :action => 'show' # # map.plugins 'plugins', :controller => 'plugins', :action => 'index' # map.plugin 'plugins/:plugin', :controller => 'plugins', :action => 'show'

Bryan Larsen

unread,
Jun 20, 2011, 11:08:47 PM6/20/11
to hobo...@googlegroups.com
On Mon, Jun 20, 2011 at 5:33 PM, Bob Sleys <bsl...@gmail.com> wrote:
> Ok updated to the latest from git and I'm through all the base hobo stuff
> and only get an error on hobo-jquery, Listed below.

That should be fixed now.

thanks,
Bryan

Bob Sleys

unread,
Jun 21, 2011, 1:40:01 PM6/21/11
to hobo...@googlegroups.com
I've pushed changed up to github again if anyone is interested.  Still much work to be done but at least this way what is done won't get lost.

Bob

Owen Dall

unread,
Jun 27, 2011, 8:34:28 PM6/27/11
to hobo...@googlegroups.com
Thanks, Bob.

On Tue, Jun 21, 2011 at 1:40 PM, Bob Sleys <bsl...@gmail.com> wrote:
I've pushed changed up to github again if anyone is interested.  Still much work to be done but at least this way what is done won't get lost.

Bob

--
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/-/ekkE3LYBDPAJ.

To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.



--
Owen Dall, Chief Systems Architect
Barquin International

Bob Sleys

unread,
Jul 1, 2011, 12:10:54 PM7/1/11
to hobo...@googlegroups.com
OK here is where I stand.

I fixed the problem with markdown not being .html_safe so the actual html code was showing. <- one problem down

What I can't figure out is the following error I get from the Download, Tutorial, Plugins and Manual tabs. It's the same error on all of them.  Frankly I'm stumped at this point and don't have any ideas.  All the code is pushed up to https://github.com/bsleys/hobocookbook 

Bob Sleys

unread,
Jul 1, 2011, 12:23:22 PM7/1/11
to hobo...@googlegroups.com
Oh one more problem Line 232 of application.dryml

<def tag="tag-def-link"><a class="#{'undocumented' unless this.documented?}"><view:short-def-line/></a></def>

the <view:short-def-line/> is also being interpreted as not html_safe so the html code is being seen on the pages where it's uses.  Any hints on how to fix it would be appreciated.

Bob

Owen Dall

unread,
Jul 1, 2011, 12:50:18 PM7/1/11
to hobo...@googlegroups.com
I know Bryan is off for Canada Day, so some other Hobo guru will need to chime in...

BTW, thanks Bob for all of your hard work...

--
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/-/89GImrFrMXMJ.

To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Bryan Larsen

unread,
Jul 5, 2011, 8:09:06 AM7/5/11
to hobo...@googlegroups.com
Hi Bob, that's a bug in Hobo itself that has been fixed. Upgrade to
the latest version from git.

Bryan

On Fri, Jul 1, 2011 at 12:23 PM, Bob Sleys <bsl...@gmail.com> wrote:

Bob Sleys

unread,
Jul 5, 2011, 9:47:30 AM7/5/11
to hobo...@googlegroups.com
Ok I had 

gem "hobo", "1.3.0.RC1", :git => "git://github.com/tablatom/hobo.git", :branch => "rails3"

In my gem file and did a bundle update hobo and got an error stating there wasn't a version 1.3.0.RC1 but only 1.3.0.  So I removed the version number and did the update again.  The problem I'm having with the taglings is still there.  I don't think its a hobo problem but one with the cookbook code.

I stated with line 232 in application.drymal

<view:short-def-line/>

which is calling 

  def short_def_line
    "<#{tag.html_safe}#{' for=\'' + for_type + '\'' if for_type}>"
  end

in api_def_tag.rb model I believe however I'm not quite sure how to fix the problem where the string isn't considered html safe.

Bob Sleys

unread,
Jul 5, 2011, 9:48:46 AM7/5/11
to hobo...@googlegroups.com
oops the .html_safe in the def short_def_line is one of my attempts to fix it please ignore.

Bryan Larsen

unread,
Jul 5, 2011, 11:09:14 AM7/5/11
to hobo...@googlegroups.com
There was a Maruku workaround blowing things up if you passed an
html_safe string. So I fixed that.

But that's not really what you wanted. The old cookbook was
depending on the view code turning those angle brackets into &lt; etc.
The problem was that Hobo 1.3 was doing that twice. So I fixed that
too.

Now you can do either:

"<#{tag}#{' for=\'' + for_type + '\'' if for_type}>"

or

"&lt;{tag}#{' for=\'' + for_type + '\'' if for_type}&gt;".html_safe

and get the same result. Which I think is the behavior people expect.

I pushed the fix to Hobo, and have fixed a couple of other things I
found, and pushed your work to
https://github.com/tablatom/hobocookbook/tree/rails3

I'll email Tom and ask him to add you to the committers list for the cookbook.

Bryan

> which is calling
>   def short_def_line

>     "<#{tag}#{' for=\'' + for_type + '\'' if for_type}>"

Bryan Larsen

unread,
Jul 5, 2011, 11:34:48 AM7/5/11
to hobo...@googlegroups.com
I haven't played with it much, but it looks pretty good to me. Is
there anything else that needs to be fixed, can we move on to
enhancements now? And do you have time to help make it better?

thanks,
Bryan

Bob Sleys

unread,
Jul 5, 2011, 12:37:04 PM7/5/11
to hobo...@googlegroups.com
ok the latest version of hobo fixed a lot of stuff.  I need to poke around the app and confirm everything else is working now.

Bob Sleys

unread,
Jul 5, 2011, 1:01:38 PM7/5/11
to hobo...@googlegroups.com
Ok minor problem now that I've removed hobo etc from the vendor dir the sym links from the manual are broken.

There are a couple of ways to fix this.  Manually change them but that would have to be done on the server or add a new task to update the links to point back to where hobo is installed similar to how the taglibs are now updated from the installed hobo.

Bob

Bob Sleys

unread,
Jul 5, 2011, 1:10:13 PM7/5/11
to hobo...@googlegroups.com
Hobo defines a Hobo.root but Hobo fields and Hobo support don't. It would make automating the links much easier if they did.

Bob

Bryan Larsen

unread,
Jul 5, 2011, 1:10:04 PM7/5/11
to hobo...@googlegroups.com

The task sounds like exactly the right thing, as it could easily be
added to the vlad deployment scripts.

thanks,
Bryan

Bryan Larsen

unread,
Jul 5, 2011, 1:14:15 PM7/5/11
to hobo...@googlegroups.com
Done.

thanks,
Bryan

> --
> 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/-/aJHcIJUAC3gJ.

Bob Sleys

unread,
Jul 5, 2011, 2:06:59 PM7/5/11
to hobo...@googlegroups.com
Sorry are you saying you added to .root to hobo_support and Hobo_fields?  Cause if you did I'm doing something wrong and not seeing it.  If not no problem I can update the rest of the links once it's done.


As for the other links in the manual dir theses a new task to update them.

Bob

Bryan Larsen

unread,
Jul 5, 2011, 2:09:29 PM7/5/11
to hobo...@googlegroups.com
On Tue, Jul 5, 2011 at 2:06 PM, Bob Sleys <bsl...@gmail.com> wrote:
> Sorry are you saying you added to .root to hobo_support and Hobo_fields?
>  Cause if you did I'm doing something wrong and not seeing it.  If not no
> problem I can update the rest of the links once it's done.

It means that I thought I typed "git push", but I actually hadn't. :)

Please bundle update hobo again.

>
> As for the other links in the manual dir theses a new task to update them.

awesome. I hope that means we're at the "we can add new things now" stage. :)

cheers,
Bryan

Bob Sleys

unread,
Jul 5, 2011, 2:48:50 PM7/5/11
to hobo...@googlegroups.com
Ok I can see your changes on gitub but when I run the bundle update command I'm not getting them.  I've tried with the following lines in my gemfile 


gem "hobo", '1.3.0.RC', :git => "git://github.com/tablatom/hobo.git", :branch => "rails3" <-fails says there is only a 1.3.0 version

the below two work but I don't see the latest changes to add the .root which I can see via github

gem "hobo", '1.3.0', :git => "git://github.com/tablatom/hobo.git", :branch => "rails3"
gem "hobo", :git => "git://github.com/tablatom/hobo.git", :branch => "rails3"

Bryan Larsen

unread,
Jul 5, 2011, 3:58:49 PM7/5/11
to Hobo Users

> the below two work but I don't see the latest changes to add the .root which
> I can see via github
>
> gem "hobo", '1.3.0', :git => "git://github.com/tablatom/hobo.git", :branch
> => "rails3"
> gem "hobo", :git => "git://github.com/tablatom/hobo.git", :branch =>
> "rails3"

The second one works for me, and the first should work. Please try
again, maybe it was a github problem.

Bob Sleys

unread,
Jul 5, 2011, 4:14:40 PM7/5/11
to hobo...@googlegroups.com
Sorry my bad. I was just confused on where rvm and bundler where placing the files. I keep looking at an older copy.

Ok I just pushed the lastest of the changes to my github.  As far as I can tell everything works.  If anyone sees any bugs just let me know.

Note my new task isn't the cleanest code I've written but at least it appears to work.  I also added it to the update task so everything can be updated with a single command.

Bob

Bryan Larsen

unread,
Jul 7, 2011, 4:00:01 PM7/7/11
to hobo...@googlegroups.com
If everything's working, the only other thing we need is for it to
prominently display "for Hobo 1.3" or something like that, and a link
back to the Hobo 1.0 cookbook. (and the converse should be done to
the master branch).

Beyond that, there's lots of stuff that could be done, but that's all
that must be done.

I just noticed that Kevin has a fork where he has added some search
capability. What's the status of that, Kevin? Can we steal it?

thanks,
Bryan

kevinpfromnm

unread,
Jul 7, 2011, 4:35:15 PM7/7/11
to hobo...@googlegroups.com
of course.  it needs a solr server IIRC for the indexing but I believe everything was running.  though that was half a year back, might need some tweaks to get working with 1.3.

Bob Sleys

unread,
Jul 12, 2011, 5:28:21 PM7/12/11
to hobo...@googlegroups.com
Just did a minor update to showing recipes.

Image thumbnails are now shown on the right aside when viewing a recipe. The thumbnails are also clickable to open the original image.

Bob
Reply all
Reply to author
Forward
0 new messages