443958f885
Add patch for URI decode_www_form
...
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-22 11:44:26 +01:00
Gibheer
b20c0c527c
reuse render for actual rendering
...
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-18 04:24:24 +01:00
Gibheer
b0954de7dc
added travis build status
2012-12-17 22:14:31 +01:00
Gibheer
09a179b256
allow 1.8 to fail
2012-12-17 22:11:02 +01:00
Gibheer
84829f81f5
require backports for ruby 1.8
2012-12-17 20:53:41 +01:00
Gibheer
aec85615de
add backports for ruby 1.8
2012-12-17 20:29:24 +01:00
Gibheer
b44ae754b3
fix gemfile for jruby
2012-12-17 20:05:53 +01:00
Gibheer
39acc44742
remove require_relative to make it 1.8 compatible
2012-12-17 19:36:41 +01:00
Gibheer
aa751668a3
don't install development gems on travis
2012-12-17 19:23:13 +01:00
Gibheer
6fbb12c0fd
cleanup gemfile for jruby on travis
2012-12-17 19:22:20 +01:00
Gibheer
daee3c5975
run simplecov only when needed
2012-12-17 18:18:20 +01:00
Gibheer
d578a8d9af
use more recent Gemfile
2012-12-17 18:16:03 +01:00
Gibheer
314e8feeef
release 0.1.2
2012-12-17 17:55:12 +01:00
Gibheer
2353a579ca
initialize the response
2012-12-17 16:29:29 +01:00
Gibheer
e437deee34
added LICENSE and release new version
2012-12-13 20:42:27 +01:00
Gibheer
7bda0ec7e5
added options to controller
...
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-13 08:45:03 +01:00
Gibheer
38bde320ac
typo in the documentation
2012-12-12 18:39:40 +01:00
Gibheer
6e705fdf49
added yard to Gemfile
2012-12-12 18:39:16 +01:00
Gibheer
a95f1436c4
replaced .create with .new on Zero::Request
2012-12-12 18:38:46 +01:00
Gibheer
34a7a04a04
added script command for travis
2012-12-10 21:24:41 +01:00
Gibheer
3418d262b3
newer versions of gems
2012-12-10 21:14:05 +01:00
Gibheer
e0919c87e5
define the renderer at initialization
2012-12-10 21:12:45 +01:00
Gibheer
2e356837c2
release version 0.1.0
2012-12-01 07:31:03 +01:00
Gibheer
55052f83ef
avoid changing existing environment keys
2012-12-01 07:23:37 +01:00
Gibheer
cd1d3d6e63
it is a toolkit not a tool set
2012-11-30 22:07:05 +01:00
Gibheer
5c07e72076
delete all.rb in favorite of zero.rb
2012-11-30 19:57:30 +01:00
6b9f34cb61
Optional setting of status code on redirect
2012-11-30 19:13:41 +01:00
facd4f143b
Add redirect to response
...
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 18:58:32 +01:00
Gibheer
d28dc720d1
added sample repository to readme
2012-11-30 18:22:16 +01:00
Gibheer
f89ef14687
specs for the renderer access
2012-11-30 16:22:49 +01:00
Gibheer
f79c5c8394
mapping is not needed at this point
2012-11-30 16:22:36 +01:00
Gibheer
ec446a53b1
use URI to get parameters
2012-11-30 14:46:52 +01:00
Gibheer
9cea623595
don't overwrite the request
2012-11-29 22:22:50 +01:00
74bbc7f186
Throws an ArgumentError, if no template fits given types
2012-11-29 21:41:13 +01:00
67dd2aa4d5
Throws ArgumentError, if given template does not exist
2012-11-29 21:25:50 +01:00
eccd314e23
Add default value for default templates
...
If a template has no type specifcation in it's name, then we use
'default' as map name now.
2012-11-29 21:11:31 +01:00
Gibheer
c6623d47df
added custom parameters in the router
2012-11-29 20:02:28 +01:00
Gibheer
849a6f34ca
updated gem lock
2012-11-29 19:44:24 +01:00
Gibheer
8c7eed073c
added custom parameter
2012-11-29 19:44:12 +01:00
Gibheer
2762f68363
better specs for render
2012-11-27 21:02:07 +01:00
Gibheer
9b941a9191
fixed a typo
2012-11-27 19:26:24 +01:00
Gibheer
839084aa90
added documentation for router
2012-11-27 19:23:07 +01:00
Gibheer
7578cb9adb
Revert "added the first set of documentation"
...
This reverts commit 37a4a28dee
.
2012-11-27 06:41:09 +01:00
Gibheer
46739a8a24
Revert "refreshed documentation"
...
This reverts commit be1afcd114
.
2012-11-27 06:40:49 +01:00
Gibheer
1ba18b4d9c
more explanation in the readme
2012-11-27 06:38:34 +01:00
Gibheer
be1afcd114
refreshed documentation
2012-11-26 21:45:33 +01:00
Gibheer
43a6ada2ed
now the renderer correctly saves all templates
...
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 21:41:09 +01:00
Gibheer
cb39d8ac90
renderer is now able to render templates
2012-11-26 21:41:09 +01:00
Gibheer
2a1499479a
specs for rendering
2012-11-26 21:41:09 +01:00
Gibheer
a913aac826
added more documentation to the renderer
2012-11-26 21:41:09 +01:00