aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2025-05-23project unmaintainedHEADmasterGibheer1-1/+8
2023-06-01Correct HTTP status code on redirectStormwind2-4/+5
With the release of RFC 7231 in June 2014 the HTTP status code 302 - Moved Temporarily does no longer exist in this form and has been replaced by 302 - Found, which causes the browser to use the same request method to call the new resource. Which can cause unwanted deletions of resouces, when a child resource is deleted and the browser gets redirected to the parent resource. Instead we use now the status code 303 - See Others, which specifies, that the referred resource has to be called using the GET method.
2023-05-09Add error handeling pages (primarily for 404)Stormwind2-2/+36
Now you can add special error pages for http error codes. Currently it works only for 404 errors. If a route is called, which isn't defined, the framwork gave our a generic 404 error page. Now you can redirect this error to a controller, which allowes you to create a special error handling for that case yourself. you just need to add a route "404 => MyErrorController" to your routing list. If it's not defined, noting will change and the old error message will be returned as beforehand.
2023-05-09Use require_relative instead of requireStormwind5-12/+12
This allows the Gem to be used more flexible. There is no need to add the exact path of the Gem anymore in your Ruby path, if you don't want this.
2023-05-09Update dependenciesStormwind4-14/+28
Updated the dependencies to current versions of the gems this framework relies on. Also got the tests back running, as the synthax of RSpec slightly changed the past years.
2014-03-05correct forwarded-for headerv0.2.0Gibheer2-2/+2
2014-03-05travis does not know about rbx-head anymoreGibheer1-1/+0
2014-03-05use newer rbx stable version for testsGibheer1-1/+1
2014-03-05add x-forwarded-for header to the clientGibheer2-4/+35
This adds the way to find out the actual ip of the client machine, even if it is hidden behind a local reverse proxy.
2014-03-05update dependenciesGibheer2-224/+5
2013-10-28run tests on newer rbx versionGibheer1-2/+2
As rubinius made their big release, update travis to run on the newest version.
2013-10-28add cookie support to responseGibheer6-6/+236
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.
2013-10-22some more cleanup of the responseGibheer1-0/+3
2013-10-22some minor cleanupGibheer1-3/+0
2013-10-22add cookie support in requestsGibheer2-1/+41
2013-10-21update dependenciesGibheer2-3/+222
2013-10-21remove debug outputGibheer1-1/+0
2013-09-10allow a dash in the middle url partGibheer2-1/+14
2013-09-09sort routes for more specific resultsGibheer2-2/+33
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.
2013-09-03remove devutils until I update them againGibheer2-139/+9
2013-09-03add partial render methodGibheer4-38/+72
This enables the user to render partial templates to embed them into other templates and the like.
2013-08-14add request method override for browsersGibheer2-1/+72
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.
2013-08-13fix paramter extraction with charsetGibheer2-1/+22
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.
2013-08-06make it possible to push lists as paramtersGibheer2-1/+31
This makes it possible to push lists as paramters by naming the variables with `[]` at the end, for example `foo[]`.
2013-07-29drop 1.8 support and add 2.0Gibheer3-14/+3
As MRI 1.8 is EOL, I think it is okay to drop 1.8 support.
2013-07-26update dependenciesGibheer1-50/+66
2013-07-26extend server with protocol informationGibheer5-1/+110
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.
2013-07-22Revert "generate a name from the server details"Gibheer2-27/+0
This reverts commit 94a2d399eb81d59f9d66c5d16121611c4d1ae0cd.
2013-07-22generate a name from the server detailsGibheer2-0/+27
2013-02-27reworked the rendererGibheer8-114/+106
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.
2013-02-27reworked parts of the template finderGibheer5-12/+140
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.
2013-02-27update dependenciesGibheer1-36/+37
2013-02-12cleanup old specsGibheer1-57/+7
2013-02-12extracted the building of template treeGibheer6-49/+257
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.
2013-02-11change route regex to string beginning and endGibheer1-2/+7
2013-02-04rename spec for mutantGibheer1-0/+0
That kills 52 mutations!
2013-02-04get metrics backGibheer2-0/+58
2013-01-29catch empty routesGibheer2-1/+16
This fixes a bug where an empty route would catch all requests resulting in all routes found with the empty route.
2013-01-29remove more leftovers from class_optionsGibheer3-5/+0
2013-01-29remove class_optionsGibheer1-1/+0
2013-01-29make request and response staticGibheer4-42/+16
This is a step back but makes the controller work for the moment. It should be reimplemented in a better way in the future.
2013-01-29don't use class_options for the time beingGibheer2-10/+2
2013-01-28wrong link to class_optionsGibheer2-2/+2
2013-01-28use new api of class_optionsGibheer6-15/+18
2013-01-28use class_options from gitGibheer2-79/+22
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.
2013-01-11add dependency to class_optionsGibheer2-7/+5
2013-01-11use class_options for the controllerGibheer6-36/+34
2013-01-11update of dependenciesGibheer1-26/+36
2013-01-11added a spec for custom parametersGibheer1-0/+4
2013-01-11split of specs for [] and []=Gibheer3-56/+97
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.