This adds the way to find out the actual ip of the client machine, even if it is hidden behind a local reverse proxy.
As rubinius made their big release, update travis to run on the newest version.
This commit adds support for response cookies. Response now has a method cookie to fetch the current cookie. One cookie has multiple crumbs which represent a key value pair. For each crumb multiple options can be set according to the specs.
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.
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`.
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 94a2d39.
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.