Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
This change sorts the routes to get the most specific routes first and
avoid hitting a route which is not the most specific match.
With this the regex to extract variables is made more strict to avoid
matching half of the URI.
|
|
|
|
This enables the user to render partial templates to embed them into
other templates and the like.
|
|
Browsers are not able to send put, delete or any other request from a
plain html form. This limits the possibilities with APIs so an override
was introduced in many frameworks in the form, that `_method` could be
defined in a post payload.
With this, zero also supports `_method` in the post payload to make it
possible to use all functions of the API with javascript through plain
html.
|
|
This fixes a bug where a charset in the content type blocked the
extraction of the payload.
A browser may send a string like
multipart/form-data; charset=UTF-8
which include? could not find the defined types. Now it gets split and
then checked against the defined types.
|
|
This makes it possible to push lists as paramters by naming the
variables with `[]` at the end, for example `foo[]`.
|
|
As MRI 1.8 is EOL, I think it is okay to drop 1.8 support.
|
|
|
|
This extends the server class with the information, if it is serving
http or https. This can then be used to generate a root uri to the web
application.
|
|
This reverts commit 94a2d399eb81d59f9d66c5d16121611c4d1ae0cd.
|
|
|
|
The renderer is now a bit smaller and asks the TemplateFinder for the
actual resources. That way it can just concentrate on rendering instead
of finding out, which stuff actually exists and which not.
|
|
The template finder is now the instance to ask for templates. It was
already looking for them, so it should be able to handle questions
regarding the existence of templates too.
|
|
|
|
|
|
This step is a preparation to extend the functionality of the renderer.
To make the main class easier, the search for templates and building of
the tree is extracted into its own class.
|
|
|
|
That kills 52 mutations!
|
|
|
|
This fixes a bug where an empty route would catch all requests resulting
in all routes found with the empty route.
|
|
|
|
|
|
This is a step back but makes the controller work for the moment. It
should be reimplemented in a better way in the future.
|
|
|
|
|
|
|
|
The class_options gem is undergoing changes and for the time being the
git repo should be used.
Also the metrics are disabled because of a bug in the zentest gem.
|
|
|
|
|
|
|
|
|
|
As mutant can't use one spec file for both methods it got split up into
two. I also cleaned up the tests and made them (hopefully) better
readable.
|
|
This still needs some work, but it should definitly be easier to
generate new environments now. Why is that even so much work?
|
|
The tests now use simple lists for the types to make it easier to
distinguish between all elements.
The tests themselves are also shared now.
|
|
|
|
|
|
|
|
|
|
This makes the assignment for bodies easier when using plain Strings.
They get wrapped in an array as per rack definition.
For every other type, they have to implement each and get directly set
as body or have to be rendered to Strings first.
|
|
|
|
|
|
|
|
Created folder spec/unit/zero and moved all unittest into this folder.
|
|
|
|
|
|
Fix tests for PATCH, because spec_helper didn't support it and the tests where
wrong.
Remove if statement from "conent_type", because ruby already returns nil, if the
requested key in a hash is not found. (Sounds a bit ugly, but it's true.)
|