[Nitro] [PATCH] RDoc task / dispatcher bugfix / tutorial start

Arne Brasseur arne at arnebrasseur.net
Tue Sep 18 09:53:14 EDT 2007


As promised I updated the rake task to generate the rdocs with. It no
longer shells out but properly uses the RDoc task. Sources from methods
are included in the HTML, and seperate docs are generated for the
different subprojects.

There's a bit of a hack in there to handle the 'Unhandled special'
problem I mentioned earlier. IMHO RDoc is simply flawed, but better
solutions are welcome.

do a 'rake rdoc:all' and do tell us what you think.


Second patch is a bugfix. We switched from "/" to "" as the mount path
for the root controller. The Raw::Dispatcher constructor still used the
old location. This was only exposed when using the form

Nitro.start(RootController)

instead of

app=Application.new
app.dispatcher.root=RootController
app.start

A testcase is included.

I also finally started working on the tutorial, preview included. I'm
planning to set up a repository contain the text as well as the example
applications. It might take a while (days, maybe over a week) before I
have time to work on this again. That's why I'm already showing what I have.

Cheers!
(ab)

-- 
Arne Brasseur
http://www.arnebrasseur.net
arne at arnebrasseur.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bundle_ab_20070918.patch
Type: text/x-patch
Size: 66584 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20070918/4f72b6ba/attachment-0001.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tutorial.txt
Url: http://rubyforge.org/pipermail/nitro-general/attachments/20070918/4f72b6ba/attachment-0001.txt 


More information about the Nitro-general mailing list