Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-02-12 | extracted the building of template tree | Gibheer | 2 | -44/+168 | |
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-11 | change route regex to string beginning and end | Gibheer | 1 | -2/+7 | |
2013-01-29 | catch empty routes | Gibheer | 1 | -1/+1 | |
This fixes a bug where an empty route would catch all requests resulting in all routes found with the empty route. | |||||
2013-01-29 | remove more leftovers from class_options | Gibheer | 2 | -3/+0 | |
2013-01-29 | make request and response static | Gibheer | 1 | -10/+11 | |
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-28 | use new api of class_options | Gibheer | 2 | -3/+4 | |
2013-01-11 | use class_options for the controller | Gibheer | 2 | -25/+5 | |
2013-01-09 | take strings for body | Gibheer | 1 | -1/+19 | |
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. | |||||
2013-01-08 | prepare for version 0.2.0 | Gibheer | 1 | -1/+1 | |
2013-01-06 | Kill all mutants in Zero::Renderer | Stormwind | 1 | -1/+2 | |
2013-01-06 | Kill all mutants i Zero::Request | Stormwind | 1 | -1/+1 | |
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.) | |||||
2013-01-06 | Kill all mutants in Zero::Request::Parameter | Stormwind | 1 | -2/+3 | |
I've also changed "extract_query_params" because it does not matter, if the query string it empty or not for the "parse_string" method. | |||||
2013-01-05 | Kill almost all mutants in Zero::Request:AcceptType | Stormwind | 1 | -6/+3 | |
Killed 13 of 14 mutants. I will see later, how it's possible to kill the last one. I also fixed the return value of "preferred", if the in initialize given string is empty. Fixed the default value here. | |||||
2012-12-23 | Add zero-fix18 to dependencies | Stormwind | 1 | -0/+6 | |
Will make URI.decode_www_form usable with Ruby 1.8. | |||||
2012-12-23 | Remove 1.8 fixes | Stormwind | 2 | -92/+0 | |
The fixes for Ruby 1.8 will take place in a seperate gem. So I remove all the changes here. | |||||
2012-12-22 | Merge remote-tracking branch 'origin/master' | Stormwind | 1 | -4/+8 | |
2012-12-22 | Remove backports from dependencies | Stormwind | 1 | -3/+0 | |
... not used. | |||||
2012-12-22 | Improve query valid regex | Stormwind | 1 | -2/+2 | |
Now a query string cannot look like 'foo=bar=foo' anymore. | |||||
2012-12-22 | kick out Zero::Request from router | Gibheer | 1 | -4/+8 | |
To make the router more loose, I replaced the router with the plain environment. The custom parameters are stored in the same key, so can be used by the request later. | |||||
2012-12-22 | Add and use decode_www_form_component_18 | Stormwind | 1 | -22/+42 | |
This replaces URI encoded chars back into their original form. | |||||
2012-12-22 | Add first implementation of decode_www_form_18 | Stormwind | 1 | -1/+26 | |
Seperates now foo=bar&bar=foo;baz=foo queries. But does not fix url encoded strings and such things. Also added testcase for an empty query string. | |||||
2012-12-22 | Add patch for URI decode_www_form | Stormwind | 2 | -0/+46 | |
Plus some specs. This should it make later possible to make Zero work with Ruby 1.8. But at the moment it only routes to the original decode_www_form method, if it exists. Otherwise it returns an empty Array. So this will still fail on the 1.8 versions at the moment. | |||||
2012-12-18 | reuse render for actual rendering | Gibheer | 1 | -4/+13 | |
The splitting of rendering and processing is good, but on the other side it makes some double steps or even introduce workarounds. That is why I made the method #render just a call to the renderer. This should help much more than the strict seperation. The method will only return the resulting string and not add it to the body of the response. That still has to be taken care of by the user. | |||||
2012-12-17 | require backports for ruby 1.8 | Gibheer | 1 | -0/+4 | |
2012-12-17 | remove require_relative to make it 1.8 compatible | Gibheer | 3 | -10/+10 | |
2012-12-17 | release 0.1.2v0.1.2 | Gibheer | 1 | -1/+1 | |
2012-12-17 | initialize the response | Gibheer | 1 | -1/+1 | |
2012-12-13 | added LICENSE and release new versionv0.1.1 | Gibheer | 1 | -1/+1 | |
2012-12-13 | added options to controller | Gibheer | 1 | -5/+16 | |
This avoids hardcoding the options into the controller and therefore should it make possible to use Rack::Request or Sinatra apps as requests. (That sounds so weird.) | |||||
2012-12-12 | typo in the documentation | Gibheer | 1 | -1/+1 | |
2012-12-12 | replaced .create with .new on Zero::Request | Gibheer | 3 | -6/+23 | |
2012-12-10 | define the renderer at initialization | Gibheer | 1 | -4/+5 | |
2012-12-01 | release version 0.1.0v0.1.0 | Gibheer | 1 | -1/+1 | |
2012-12-01 | avoid changing existing environment keys | Gibheer | 1 | -2/+8 | |
2012-11-30 | delete all.rb in favorite of zero.rb | Gibheer | 2 | -5/+5 | |
2012-11-30 | Optional setting of status code on redirect | Stormwind | 1 | -2/+2 | |
2012-11-30 | Add redirect to response | Stormwind | 1 | -0/+9 | |
Now a relocation can be done, by calling redirect with the URL you want relocate to. This will set the Location header and set the status code to 302. | |||||
2012-11-30 | mapping is not needed at this point | Gibheer | 2 | -16/+0 | |
2012-11-30 | use URI to get parameters | Gibheer | 1 | -3/+1 | |
2012-11-29 | don't overwrite the request | Gibheer | 1 | -1/+1 | |
2012-11-29 | Throws an ArgumentError, if no template fits given types | Stormwind | 1 | -0/+3 | |
2012-11-29 | Throws ArgumentError, if given template does not exist | Stormwind | 1 | -5/+7 | |
2012-11-29 | Add default value for default templates | Stormwind | 1 | -5/+9 | |
If a template has no type specifcation in it's name, then we use 'default' as map name now. | |||||
2012-11-29 | added custom parameters in the router | Gibheer | 1 | -1/+1 | |
2012-11-29 | added custom parameter | Gibheer | 1 | -0/+29 | |
2012-11-27 | fixed a typo | Gibheer | 1 | -1/+1 | |
2012-11-27 | added documentation for router | Gibheer | 1 | -0/+32 | |
2012-11-26 | now the renderer correctly saves all templates | Gibheer | 1 | -20/+15 | |
Before this fix the renderer was not able to save the templates and types in the correct way. It still needs some cleanup, but it works now. | |||||
2012-11-26 | renderer is now able to render templates | Gibheer | 1 | -0/+28 | |
2012-11-26 | added more documentation to the renderer | Gibheer | 1 | -1/+20 | |