Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-01-09 | take strings for body | Gibheer | 1 | -0/+27 | |
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-06 | Split response_spec.rb into single test files | Stormwind | 7 | -76/+111 | |
2013-01-06 | Improve test structure | Stormwind | 40 | -0/+0 | |
Created folder spec/unit/zero and moved all unittest into this folder. | |||||
2013-01-06 | Kill all mutants in Zero::Router | Stormwind | 1 | -1/+6 | |
2013-01-06 | Kill all mutants in Zero::Renderer | Stormwind | 4 | -2/+24 | |
2013-01-06 | Kill all mutants i Zero::Request | Stormwind | 2 | -4/+9 | |
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 | 3 | -1/+17 | |
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/+11 | |
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. | |||||
2013-01-04 | Kill all mutants in Zero::Request::Accept | Stormwind | 3 | -3/+9 | |
2013-01-04 | Kill mutant in Zero::Request::Server | Stormwind | 1 | -2/+10 | |
2013-01-04 | Add check if body is empty on 204 and 304 in specs | Stormwind | 1 | -0/+2 | |
2012-12-23 | Remove 1.8 fixes | Stormwind | 1 | -147/+0 | |
The fixes for Ruby 1.8 will take place in a seperate gem. So I remove all the changes here. | |||||
2012-12-22 | Replace 'parse_query_string' with 'decode_www_form_18' in test | Stormwind | 1 | -21/+23 | |
2012-12-22 | Renamed specfile. Will test other method here. | Stormwind | 1 | -0/+0 | |
2012-12-22 | Improve query valid regex | Stormwind | 1 | -1/+27 | |
Now a query string cannot look like 'foo=bar=foo' anymore. | |||||
2012-12-22 | Add first implementation of decode_www_form_18 | Stormwind | 1 | -0/+8 | |
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 | 1 | -0/+111 | |
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 | -0/+19 | |
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 | cleanup gemfile for jruby on travis | Gibheer | 1 | -0/+0 | |
2012-12-17 | run simplecov only when needed | Gibheer | 1 | -4/+6 | |
2012-12-17 | initialize the response | Gibheer | 1 | -0/+14 | |
2012-12-13 | added options to controller | Gibheer | 1 | -2/+2 | |
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 | replaced .create with .new on Zero::Request | Gibheer | 3 | -5/+5 | |
2012-12-10 | define the renderer at initialization | Gibheer | 1 | -1/+6 | |
2012-12-01 | avoid changing existing environment keys | Gibheer | 1 | -0/+12 | |
2012-11-30 | delete all.rb in favorite of zero.rb | Gibheer | 1 | -1/+1 | |
2012-11-30 | Optional setting of status code on redirect | Stormwind | 1 | -0/+8 | |
2012-11-30 | Add redirect to response | Stormwind | 1 | -0/+10 | |
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 | specs for the renderer access | Gibheer | 1 | -0/+11 | |
2012-11-30 | use URI to get parameters | Gibheer | 2 | -6/+20 | |
2012-11-29 | don't overwrite the request | Gibheer | 1 | -0/+8 | |
2012-11-29 | Throws an ArgumentError, if no template fits given types | Stormwind | 1 | -0/+10 | |
2012-11-29 | Throws ArgumentError, if given template does not exist | Stormwind | 1 | -0/+6 | |
2012-11-29 | Add default value for default templates | Stormwind | 1 | -0/+11 | |
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 | -5/+18 | |
2012-11-29 | added custom parameter | Gibheer | 2 | -0/+74 | |
2012-11-27 | better specs for render | Gibheer | 3 | -21/+23 | |
2012-11-26 | now the renderer correctly saves all templates | Gibheer | 1 | -5/+5 | |
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 | specs for rendering | Gibheer | 2 | -0/+44 | |
2012-11-26 | first commit for the new renderer | Gibheer | 4 | -39/+56 | |
This part handles the building of the template tree, which then gets used later by the containers. | |||||
2012-11-24 | Content-Length must be a String | Stormwind | 1 | -7/+7 | |
2012-11-24 | Add an = at the end of the content_type method | Stormwind | 1 | -3/+3 | |
Shall made use of this functionality more confortable, even if it's not a real attribute of this class. | |||||
2012-11-24 | Delete Content-Length. Conten-Type and body on status 304 | Stormwind | 1 | -0/+11 | |
2012-11-24 | SimpleCov runs on latest rbx head | Gibheer | 1 | -5/+4 | |
2012-11-23 | Delete Content-Length. Conten-Type and body on status 204 | Stormwind | 1 | -0/+11 | |
Should work, but somehow it doesn't... | |||||
2012-11-23 | Sets the Content-Type in to_a unless it is already set before | Stormwind | 1 | -3/+16 | |
The default value is 'text/html'. | |||||
2012-11-23 | content_type sets the Content-Type header to the given value | Stormwind | 1 | -3/+11 | |
2012-11-23 | Sets the Content-Length in to_a unless it is already set before | Stormwind | 1 | -2/+9 | |
2012-11-23 | Sets Content-Type header in to_a | Stormwind | 1 | -1/+6 | |
2012-11-23 | Merge remote-tracking branch 'origin/master' | Stormwind | 2 | -0/+26 | |