Permalink
Switch branches/tags
Commits on Mar 5, 2014
  1. add x-forwarded-for header to the client

    Gibheer committed Mar 5, 2014
    This adds the way to find out the actual ip of the client machine, even
    if it is hidden behind a local reverse proxy.
  2. update dependencies

    Gibheer committed Mar 5, 2014
Commits on Oct 28, 2013
  1. run tests on newer rbx version

    Gibheer committed Oct 28, 2013
    As rubinius made their big release, update travis to run on the newest version.
  2. add cookie support to response

    Gibheer committed Oct 28, 2013
    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.
Commits on Oct 22, 2013
  1. some minor cleanup

    Gibheer committed Oct 22, 2013
Commits on Oct 21, 2013
  1. update dependencies

    Gibheer committed Oct 21, 2013
  2. remove debug output

    Gibheer committed Oct 21, 2013
Commits on Sep 10, 2013
Commits on Sep 9, 2013
  1. sort routes for more specific results

    Gibheer committed Sep 9, 2013
    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.
Commits on Sep 3, 2013
  1. add partial render method

    Gibheer committed Sep 3, 2013
    This enables the user to render partial templates to embed them into
    other templates and the like.
Commits on Aug 14, 2013
  1. add request method override for browsers

    Gibheer committed Aug 14, 2013
    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.
Commits on Aug 13, 2013
  1. fix paramter extraction with charset

    Gibheer committed Aug 13, 2013
    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.
Commits on Aug 6, 2013
  1. make it possible to push lists as paramters

    Gibheer committed Aug 6, 2013
    This makes it possible to push lists as paramters by naming the
    variables with `[]` at the end, for example `foo[]`.
Commits on Jul 29, 2013
  1. drop 1.8 support and add 2.0

    Gibheer committed Jul 29, 2013
    As MRI 1.8 is EOL, I think it is okay to drop 1.8 support.
Commits on Jul 26, 2013
  1. update dependencies

    Gibheer committed Jul 26, 2013
  2. extend server with protocol information

    Gibheer committed Jul 26, 2013
    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.
Commits on Jul 22, 2013
  1. Revert "generate a name from the server details"

    Gibheer committed Jul 22, 2013
    This reverts commit 94a2d39.
Commits on Feb 27, 2013
  1. reworked the renderer

    Gibheer committed Feb 27, 2013
    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.
  2. reworked parts of the template finder

    Gibheer committed Feb 27, 2013
    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.
  3. update dependencies

    Gibheer committed Feb 27, 2013
Commits on Feb 12, 2013
  1. cleanup old specs

    Gibheer committed Feb 12, 2013
  2. extracted the building of template tree

    Gibheer committed Feb 12, 2013
    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.
Commits on Feb 11, 2013
Commits on Feb 4, 2013
  1. rename spec for mutant

    Gibheer committed Feb 4, 2013
    That kills 52 mutations!
  2. get metrics back

    Gibheer committed Feb 4, 2013
Commits on Jan 29, 2013
  1. catch empty routes

    Gibheer committed Jan 29, 2013
    This fixes a bug where an empty route would catch all requests resulting
    in all routes found with the empty route.
  2. remove class_options

    Gibheer committed Jan 29, 2013