0
0
Fork 0
Commit Graph

223 Commits

Author SHA1 Message Date
Gibheer d92dea4695 drop 1.8 support and add 2.0
As MRI 1.8 is EOL, I think it is okay to drop 1.8 support.
2013-07-29 08:45:15 +02:00
Gibheer 2fffda3e11 update dependencies 2013-07-26 14:50:21 +02:00
Gibheer e2f3e29a34 extend server with protocol information
This extends the server class with the information, if it is serving
http or https. This can then be used to generate a root uri to the web
application.
2013-07-26 14:46:33 +02:00
Gibheer 89e2efeffa Revert "generate a name from the server details"
This reverts commit 94a2d399eb.
2013-07-22 15:35:34 +02:00
Gibheer 94a2d399eb generate a name from the server details 2013-07-22 15:17:28 +02:00
Gibheer 7fd2f6b25b reworked the renderer
The renderer is now a bit smaller and asks the TemplateFinder for the
actual resources. That way it can just concentrate on rendering instead
of finding out, which stuff actually exists and which not.
2013-02-27 22:27:02 +01:00
Gibheer 714c540e4b reworked parts of the template finder
The template finder is now the instance to ask for templates. It was
already looking for them, so it should be able to handle questions
regarding the existence of templates too.
2013-02-27 21:15:05 +01:00
Gibheer d74f3da383 update dependencies 2013-02-27 09:43:37 +01:00
Gibheer a6fa1475a2 cleanup old specs 2013-02-12 08:39:45 +01:00
Gibheer f18ab69a91 extracted the building of template tree
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-12 08:29:33 +01:00
Gibheer 8ff98ff9dd change route regex to string beginning and end 2013-02-11 19:51:54 +01:00
Gibheer 1133c4106f rename spec for mutant
That kills 52 mutations!
2013-02-04 18:03:43 +01:00
Gibheer 37ddde308f get metrics back 2013-02-04 17:41:24 +01:00
Gibheer 335dbdd487 catch empty routes
This fixes a bug where an empty route would catch all requests resulting
in all routes found with the empty route.
2013-01-29 15:28:59 +01:00
Gibheer 27442f4061 remove more leftovers from class_options 2013-01-29 10:55:16 +01:00
Gibheer eeb0169bc9 remove class_options 2013-01-29 10:46:23 +01:00
Gibheer a2aed1fa20 make request and response static
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-29 10:34:48 +01:00
Gibheer 4a4d68d896 don't use class_options for the time being 2013-01-29 10:34:17 +01:00
Gibheer 701382e92c wrong link to class_options 2013-01-28 18:16:00 +01:00
Gibheer b317b05f90 use new api of class_options 2013-01-28 15:49:53 +01:00
Gibheer 001f9ebf77 use class_options from git
The class_options gem is undergoing changes and for the time being the
git repo should be used.
Also the metrics are disabled because of a bug in the zentest gem.
2013-01-28 15:48:42 +01:00
Gibheer b418462bbe add dependency to class_options 2013-01-11 16:04:01 +01:00
Gibheer 399e0ea338 use class_options for the controller 2013-01-11 16:02:26 +01:00
Gibheer f9fd98510b update of dependencies 2013-01-11 08:06:57 +01:00
Gibheer c75f61de6e added a spec for custom parameters 2013-01-11 08:06:35 +01:00
Gibheer 6fd096d4ab split of specs for [] and []=
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-11 08:05:43 +01:00
Gibheer 9e83d9d8b5 easier environment generation
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-11 08:02:46 +01:00
Gibheer d645a2eb49 reworked the tests to make them cleaner
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-10 21:43:12 +01:00
Stormwind 0ef61c062f Rename Zero::Request::AcceptType spec folder 2013-01-10 20:18:03 +01:00
Stormwind 158dc45ba6 Kill the last mutant in Zero::Request:AcceptType 2013-01-10 19:37:03 +01:00
Gibheer 4d6f5b0b19 refresh Gemfile.lock 2013-01-09 20:10:04 +01:00
Gibheer 029781bbda guard should now be able to find the correct specs 2013-01-09 20:09:40 +01:00
Gibheer ae0b32a58f take strings for body
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-09 20:08:26 +01:00
Gibheer d10862ce51 use devutils to see, if that works okay 2013-01-08 13:35:29 +01:00
Gibheer 0f8cc4ac53 prepare for version 0.2.0 2013-01-08 13:35:07 +01:00
Stormwind 69aa01cabc Split response_spec.rb into single test files 2013-01-06 20:46:29 +01:00
Stormwind 3a82183563 Improve test structure
Created folder spec/unit/zero and moved all unittest into this folder.
2013-01-06 20:24:39 +01:00
Stormwind b54c2569a4 Kill all mutants in Zero::Router 2013-01-06 19:09:44 +01:00
Stormwind 2c558846ec Kill all mutants in Zero::Renderer 2013-01-06 17:39:57 +01:00
Stormwind e81dff9c07 Kill all mutants i Zero::Request
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 12:37:07 +01:00
Stormwind cd97198e22 Kill all mutants in Zero::Request::Parameter
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-06 10:28:13 +01:00
Stormwind 3bb53d7343 Kill almost all mutants in Zero::Request:AcceptType
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-05 18:30:36 +01:00
Stormwind 5ca122b84c Kill all mutants in Zero::Request::Accept 2013-01-04 20:25:48 +01:00
Stormwind 7870c5c51f Kill mutant in Zero::Request::Server 2013-01-04 19:42:25 +01:00
Stormwind f4fa025b4d Add check if body is empty on 204 and 304 in specs 2013-01-04 16:46:21 +01:00
Stormwind ff1a8220f8 Add zero-fix18 to dependencies
Will make URI.decode_www_form usable with Ruby 1.8.
2012-12-23 15:23:16 +01:00
Stormwind 65b1d3a1da Remove 1.8 fixes
The fixes for Ruby 1.8 will take place in a seperate gem. So I remove
all the changes here.
2012-12-23 12:23:14 +01:00
Stormwind ca2273e700 Merge remote-tracking branch 'origin/master' 2012-12-22 20:00:34 +01:00
Stormwind 96f2b7a6c4 Replace 'parse_query_string' with 'decode_www_form_18' in test 2012-12-22 19:58:59 +01:00
Stormwind fac934af6d Renamed specfile. Will test other method here. 2012-12-22 19:19:02 +01:00