0
0
Commit Graph

154 Commits

Author SHA1 Message Date
fea8ac2bbd Sets the Content-Type in to_a unless it is already set before
The default value is 'text/html'.
2012-11-23 20:05:58 +01:00
16eef08688 content_type sets the Content-Type header to the given value 2012-11-23 19:54:17 +01:00
78121c6eea Sets the Content-Length in to_a unless it is already set before 2012-11-23 19:39:56 +01:00
c15e8bdacb Sets Content-Type header in to_a 2012-11-23 19:35:14 +01:00
406c6f88d3 Add simplecov to Gemfile and gemspec 2012-11-23 19:29:06 +01:00
1b96ebb36d Merge remote-tracking branch 'origin/master' 2012-11-23 18:10:27 +01:00
a2e6c299cd Sets Content-Length to body string bytesize
Sets the Conten-Length to the bytesize of the joined body to cover UTF-8
2012-11-23 18:06:53 +01:00
b4e56c6868 Sets Content-Length to body string length
It joins the body array to a string and sets the Content-Length header
to its length.
2012-11-23 17:59:33 +01:00
22cf93d002 Remove @s in to_a 2012-11-23 17:45:36 +01:00
963adb8ddc content_length sets the Content-Length to 0
The method content_length creates a header named Content-Length and sets
its value to 0.
2012-11-23 17:43:39 +01:00
Gibheer
495d8f6503 add simplecov to get metrics
This only works with MRI, but should be good enough.
2012-11-20 20:37:10 +01:00
Gibheer
926775f029 seperated the methods of the basic controller 2012-11-20 20:37:10 +01:00
Gibheer
8e1b79663c added a basic spec for the controller 2012-11-20 20:37:10 +01:00
Gibheer
019bccd4a2 add a spec controller 2012-11-20 20:37:10 +01:00
Gibheer
7fa20e6131 make a wrapper over the static transform 2012-11-20 20:37:10 +01:00
Gibheer
4e2a4b8931 use Zero::Request instead of the rack one 2012-11-20 20:37:10 +01:00
Gibheer
d7c217bd30 make class functions more clear in renderer 2012-11-20 20:37:10 +01:00
2b79c3e840 Rename #finish to #to_a in response specs 2012-11-19 19:39:45 +01:00
2e073a07fa Restructure response specs
Also no change in behaviour
2012-11-18 16:38:38 +01:00
e6e3b0bd27 Add some TODOs
No change in behaviour
2012-11-18 16:24:50 +01:00
3ff56d815a Add default value for the body 2012-11-18 16:09:41 +01:00
3c3850a02b Add default value for header 2012-11-18 15:02:07 +01:00
a76b08fbb3 Add default value to status code 2012-11-17 14:46:53 +01:00
633d5fb7c8 Converts any input in status to an integer 2012-11-17 14:35:15 +01:00
Gibheer
41cf83c525 added specs for Renderer.transform 2012-11-16 18:13:07 +01:00
Gibheer
2f57c9965e not needed anymore 2012-11-16 18:13:07 +01:00
Gibheer
63fe8abe98 documentet the renderer and added a spec 2012-11-16 18:13:07 +01:00
Gibheer
90445fb473 corrected the naming of #accept, before #media_types 2012-11-16 18:13:07 +01:00
Gibheer
f7c2a53f00 corrected documentation 2012-11-16 18:13:07 +01:00
Gibheer
4cf38dae78 changed the name of the functions 2012-11-16 18:13:07 +01:00
Gibheer
ba6e3214b5 added specs for accept 2012-11-16 18:13:07 +01:00
Gibheer
be5cd61bb9 this adds a new accept type
This new class handles various accept strings and makes them available
throught the same API. This way, language and media type feels the same.
2012-11-16 18:13:07 +01:00
Gibheer
a7d3106df2 added specs for new type 2012-11-16 18:13:07 +01:00
0986ca27f5 Add simple response object 2012-11-16 17:56:34 +01:00
Gibheer
f37cc87fe5 move rack from runtime to dev dependency 2012-11-16 10:59:36 +01:00
Gibheer
4e72614a28 replace rack router with the zero router 2012-11-16 10:57:14 +01:00
Gibheer
a5a2e6276b added rack to generate environments 2012-11-16 10:56:29 +01:00
Gibheer
77e94f58cc delete old specs for router
These specs did not work and are cleanup with the unit specs, so there
is no need for them now.
2012-11-16 10:52:27 +01:00
Gibheer
a138da7e84 add unit specs for router 2012-11-16 10:50:49 +01:00
Gibheer
75ccc3195d call is a class function 2012-11-16 10:50:12 +01:00
Gibheer
8a1c464c8b added self.create to the request
With this it is possible to reuse an already set request and therefore
safe some memory and time.
2012-11-16 09:33:25 +01:00
Gibheer
331ee7c53c added the required line for spec_helper 2012-11-15 22:35:19 +01:00
Gibheer
14191d45fe added specs for #media_types 2012-11-15 22:27:56 +01:00
Gibheer
0fd2d00fdb check for nil argument and use an empty array 2012-11-15 19:32:14 +01:00
Gibheer
022d29d633 added the implemention for #server 2012-11-15 19:11:35 +01:00
Gibheer
063cb77c1c add specs for #server 2012-11-15 19:11:18 +01:00
Gibheer
553bf48fb9 add specs for #client 2012-11-15 17:28:25 +01:00
Gibheer
35150a7c09 check for an instance of parameter 2012-11-15 17:27:56 +01:00
Gibheer
ad16e2e931 clean up the accept map after all tests 2012-11-15 17:16:55 +01:00
Gibheer
2c1465f36d added docs for #client 2012-11-15 17:01:29 +01:00