aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2013-01-11easier environment generationGibheer1-0/+18
This still needs some work, but it should definitly be easier to generate new environments now. Why is that even so much work?
2013-01-10reworked the tests to make them cleanerGibheer1-34/+68
The tests now use simple lists for the types to make it easier to distinguish between all elements. The tests themselves are also shared now.
2013-01-10Rename Zero::Request::AcceptType spec folderStormwind2-0/+0
2013-01-10Kill the last mutant in Zero::Request:AcceptTypeStormwind1-10/+11
2013-01-09refresh Gemfile.lockGibheer1-1/+1
2013-01-09guard should now be able to find the correct specsGibheer1-1/+1
2013-01-09take strings for bodyGibheer2-1/+46
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-08use devutils to see, if that works okayGibheer2-20/+78
2013-01-08prepare for version 0.2.0Gibheer1-1/+1
2013-01-06Split response_spec.rb into single test filesStormwind7-76/+111
2013-01-06Improve test structureStormwind40-0/+0
Created folder spec/unit/zero and moved all unittest into this folder.
2013-01-06Kill all mutants in Zero::RouterStormwind1-1/+6
2013-01-06Kill all mutants in Zero::RendererStormwind5-3/+26
2013-01-06Kill all mutants i Zero::RequestStormwind3-5/+10
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-06Kill all mutants in Zero::Request::ParameterStormwind4-3/+20
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-05Kill almost all mutants in Zero::Request:AcceptTypeStormwind2-12/+14
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-04Kill all mutants in Zero::Request::AcceptStormwind3-3/+9
2013-01-04Kill mutant in Zero::Request::ServerStormwind1-2/+10
2013-01-04Add check if body is empty on 204 and 304 in specsStormwind1-0/+2
2012-12-23Add zero-fix18 to dependenciesStormwind2-0/+7
Will make URI.decode_www_form usable with Ruby 1.8.
2012-12-23Remove 1.8 fixesStormwind3-239/+0
The fixes for Ruby 1.8 will take place in a seperate gem. So I remove all the changes here.
2012-12-22Merge remote-tracking branch 'origin/master'Stormwind1-4/+8
2012-12-22Replace 'parse_query_string' with 'decode_www_form_18' in testStormwind1-21/+23
2012-12-22Renamed specfile. Will test other method here.Stormwind1-0/+0
2012-12-22Remove backports from dependenciesStormwind3-11/+4
... not used.
2012-12-22Improve query valid regexStormwind2-3/+29
Now a query string cannot look like 'foo=bar=foo' anymore.
2012-12-22kick out Zero::Request from routerGibheer1-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-22Add and use decode_www_form_component_18Stormwind1-22/+42
This replaces URI encoded chars back into their original form.
2012-12-22Add first implementation of decode_www_form_18Stormwind2-1/+34
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-22Add patch for URI decode_www_formStormwind3-0/+157
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-18reuse render for actual renderingGibheer2-4/+32
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-17added travis build statusGibheer1-0/+2
2012-12-17allow 1.8 to failGibheer1-0/+5
2012-12-17require backports for ruby 1.8Gibheer1-0/+4
2012-12-17add backports for ruby 1.8Gibheer2-0/+4
2012-12-17fix gemfile for jrubyGibheer2-1/+9
2012-12-17remove require_relative to make it 1.8 compatibleGibheer3-10/+10
2012-12-17don't install development gems on travisGibheer1-0/+1
2012-12-17cleanup gemfile for jruby on travisGibheer4-9/+13
2012-12-17run simplecov only when neededGibheer1-4/+6
2012-12-17use more recent GemfileGibheer1-1/+1
2012-12-17release 0.1.2v0.1.2Gibheer1-1/+1
2012-12-17initialize the responseGibheer2-1/+15
2012-12-13added LICENSE and release new versionv0.1.1Gibheer3-2/+27
2012-12-13added options to controllerGibheer2-7/+18
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-12typo in the documentationGibheer1-1/+1
2012-12-12added yard to GemfileGibheer2-1/+7