If the warden instance is availble in the current session, use it to authenticate the request. Warden is setup outside the hovercraft server at the rack layer. This just adds a global filter instead of resource or route specific ones. Closes issue #4
Support added for the following implementations: * Ruby MRI 1.9.2 * JRuby (1.9 mode) * Rubinius (1.9 mode)
Closes issue #3
First try the format part of the query string like a conventional rails app. Then fall back to the mime type in the accept header and if anything goes default to json.
To use the generated sinatra application from a rackup file we needed a simple proxy class that hooks up all the methods rack expects.
Pull together the models we loaded earlier and a sinatra application with the generate action methods registered to create the full application.
We'll need to generate actions from within a sinatra application by registering a module and then calling them for each model.
Using the Caller class we can track down our models, require the files, and figure out the class names based on the file names.
We need a way to find the directory in which hovercraft was required. By removing all the junk from caller we're left with a pretty good guess as to where the directory is.