Permalink
Browse files

regenerate docs

  • Loading branch information...
1 parent f41a5b1 commit b1d8be9f2aaa4f4d2a6f90e03b8fcbe3a91767bb @dj2 dj2 committed Apr 11, 2011
Showing with 6,783 additions and 324 deletions.
  1. +10 −10 doc/Goliath.html
  2. +77 −57 doc/Goliath/API.html
  3. +628 −0 doc/Goliath/Application.html
  4. +1,452 −0 doc/Goliath/Connection.html
  5. +11 −6 doc/Goliath/Constants.html
  6. +97 −15 doc/Goliath/Env.html
  7. +436 −0 doc/Goliath/Headers.html
  8. +1 −1 doc/Goliath/Plugin.html
  9. +1 −1 doc/Goliath/Plugin/Latency.html
  10. +20 −3 doc/Goliath/Rack.html
  11. +1 −1 doc/Goliath/Rack/DefaultMimeType.html
  12. +312 −0 doc/Goliath/Rack/DefaultResponseFormat.html
  13. +2 −2 doc/Goliath/Rack/Formatters.html
  14. +1 −1 doc/Goliath/Rack/Formatters/HTML.html
  15. +1 −1 doc/Goliath/Rack/Formatters/JSON.html
  16. +1 −1 doc/Goliath/Rack/Formatters/XML.html
  17. +1 −1 doc/Goliath/Rack/Heartbeat.html
  18. +1 −1 doc/Goliath/Rack/JSONP.html
  19. +56 −18 doc/Goliath/Rack/Params.html
  20. +1 −1 doc/Goliath/Rack/Render.html
  21. +1 −1 doc/Goliath/Rack/Tracer.html
  22. +2 −2 doc/Goliath/Rack/Validation.html
  23. +1 −1 doc/Goliath/Rack/Validation/BooleanValue.html
  24. +1 −1 doc/Goliath/Rack/Validation/DefaultParams.html
  25. +1 −1 doc/Goliath/Rack/Validation/NumericRange.html
  26. +1 −1 doc/Goliath/Rack/Validation/RequestMethod.html
  27. +1 −1 doc/Goliath/Rack/Validation/RequiredParam.html
  28. +1 −1 doc/Goliath/Rack/Validation/RequiredValue.html
  29. +1 −1 doc/Goliath/Rack/ValidationError.html
  30. +1,483 −0 doc/Goliath/Request.html
  31. +723 −0 doc/Goliath/Response.html
  32. +27 −15 doc/Goliath/Runner.html
  33. +1,119 −0 doc/Goliath/Server.html
  34. +133 −54 doc/Goliath/TestHelper.html
  35. +1 −1 doc/Goliath/Validation.html
  36. +1 −1 doc/Goliath/Validation/Error.html
  37. +8 −1 doc/_index.html
  38. +1 −1 doc/class_list.html
  39. +1 −1 doc/file.LICENSE.html
  40. +12 −5 doc/file.README.html
  41. +12 −5 doc/index.html
  42. +141 −109 doc/method_list.html
  43. +1 −1 doc/top-level-namespace.html
View
@@ -60,7 +60,7 @@
<dt class="r1 last">Defined in:</dt>
<dd class="r1 last">lib/goliath/goliath.rb<span class="defines">,<br />
- lib/goliath/env.rb,<br /> lib/goliath/api.rb,<br /> lib/goliath/server.rb,<br /> lib/goliath/runner.rb,<br /> lib/goliath/request.rb,<br /> lib/goliath/headers.rb,<br /> lib/goliath/version.rb,<br /> lib/goliath/response.rb,<br /> lib/goliath/constants.rb,<br /> lib/goliath/connection.rb,<br /> lib/goliath/rack/jsonp.rb,<br /> lib/goliath/rack/tracer.rb,<br /> lib/goliath/rack/render.rb,<br /> lib/goliath/rack/params.rb,<br /> lib/goliath/application.rb,<br /> lib/goliath/test_helper.rb,<br /> lib/goliath/rack/heartbeat.rb,<br /> lib/goliath/plugins/latency.rb,<br /> lib/goliath/http_status_codes.rb,<br /> lib/goliath/rack/formatters/xml.rb,<br /> lib/goliath/rack/formatters/json.rb,<br /> lib/goliath/rack/formatters/html.rb,<br /> lib/goliath/rack/validation_error.rb,<br /> lib/goliath/rack/default_mime_type.rb,<br /> lib/goliath/rack/validation/boolean_value.rb,<br /> lib/goliath/rack/validation/numeric_range.rb,<br /> lib/goliath/rack/validation/required_param.rb,<br /> lib/goliath/rack/validation/default_params.rb,<br /> lib/goliath/rack/validation/request_method.rb,<br /> lib/goliath/rack/validation/required_value.rb</span>
+ lib/goliath/env.rb,<br /> lib/goliath/api.rb,<br /> lib/goliath/server.rb,<br /> lib/goliath/runner.rb,<br /> lib/goliath/request.rb,<br /> lib/goliath/headers.rb,<br /> lib/goliath/version.rb,<br /> lib/goliath/response.rb,<br /> lib/goliath/constants.rb,<br /> lib/goliath/connection.rb,<br /> lib/goliath/rack/jsonp.rb,<br /> lib/goliath/rack/tracer.rb,<br /> lib/goliath/rack/params.rb,<br /> lib/goliath/test_helper.rb,<br /> lib/goliath/application.rb,<br /> lib/goliath/rack/render.rb,<br /> lib/goliath/rack/heartbeat.rb,<br /> lib/goliath/plugins/latency.rb,<br /> lib/goliath/http_status_codes.rb,<br /> lib/goliath/rack/formatters/xml.rb,<br /> lib/goliath/rack/formatters/html.rb,<br /> lib/goliath/rack/formatters/json.rb,<br /> lib/goliath/rack/validation_error.rb,<br /> lib/goliath/rack/default_mime_type.rb,<br /> lib/goliath/rack/default_response_format.rb,<br /> lib/goliath/rack/validation/boolean_value.rb,<br /> lib/goliath/rack/validation/numeric_range.rb,<br /> lib/goliath/rack/validation/required_value.rb,<br /> lib/goliath/rack/validation/request_method.rb,<br /> lib/goliath/rack/validation/default_params.rb,<br /> lib/goliath/rack/validation/required_param.rb</span>
</dd>
</dl>
@@ -108,7 +108,7 @@
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.9.0</span><span class='tstring_end'>'</span></span></pre></dd>
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.9.1</span><span class='tstring_end'>'</span></span></pre></dd>
<dt id="HTTP_STATUS_CODES-constant" class="">HTTP_STATUS_CODES =
<div class="docstring">
@@ -374,7 +374,7 @@
<pre class="code"><span class="info file"># File 'lib/goliath/goliath.rb', line 39</span>
<span class='kw'>def</span> <span class='id dev?'>dev?</span>
- <span class='ivar'>@env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>development</span><span class='tstring_end'>'</span></span>
+ <span class='ivar'>@env</span> <span class='op'>==</span> <span class='symbol'>:development</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -496,10 +496,10 @@
<pre class="code"><span class="info file"># File 'lib/goliath/goliath.rb', line 21</span>
<span class='kw'>def</span> <span class='id env='>env=</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
- <span class='kw'>case</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dev</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>development</span><span class='tstring_end'>'</span></span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>prod</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>production</span><span class='tstring_end'>'</span></span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span>
+ <span class='kw'>case</span><span class='lparen'>(</span><span class='id env'>env</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rparen'>)</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dev</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='symbol'>:development</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>prod</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='symbol'>:production</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@env</span> <span class='op'>=</span> <span class='symbol'>:test</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
@@ -558,7 +558,7 @@
<pre class="code"><span class="info file"># File 'lib/goliath/goliath.rb', line 32</span>
<span class='kw'>def</span> <span class='id prod?'>prod?</span>
- <span class='ivar'>@env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>production</span><span class='tstring_end'>'</span></span>
+ <span class='ivar'>@env</span> <span class='op'>==</span> <span class='symbol'>:production</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -616,7 +616,7 @@
<pre class="code"><span class="info file"># File 'lib/goliath/goliath.rb', line 46</span>
<span class='kw'>def</span> <span class='id test?'>test?</span>
- <span class='ivar'>@env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span>
+ <span class='ivar'>@env</span> <span class='op'>==</span> <span class='symbol'>:test</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -628,7 +628,7 @@
</div>
<div id="footer">
- Generated on Fri Mar 4 22:34:26 2011 by
+ Generated on Mon Apr 11 12:32:31 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.6.4 (ruby-1.9.2).
</div>
View
@@ -437,17 +437,17 @@
<pre class="lines">
-112
-113
-114
-115
-116
-117
-118
-119</pre>
+122
+123
+124
+125
+126
+127
+128
+129</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 112</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 122</span>
<span class='kw'>def</span> <span class='id method_missing'>method_missing</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
<span class='id name'>name</span> <span class='op'>=</span> <span class='id name'>name</span><span class='period'>.</span><span class='id to_s'>to_s</span>
@@ -541,12 +541,12 @@
<pre class="lines">
-76
-77
-78</pre>
+86
+87
+88</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 76</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 86</span>
<span class='kw'>def</span> <span class='id map'>map</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id block'>block</span><span class='rparen'>)</span>
<span class='id maps'>maps</span><span class='period'>.</span><span class='id push'>push</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id block'>block</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -599,12 +599,12 @@
<pre class="lines">
-63
-64
-65</pre>
+73
+74
+75</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 63</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 73</span>
<span class='kw'>def</span> <span class='id maps'>maps</span>
<span class='ivar'>@maps</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -659,13 +659,31 @@
22
23
-24</pre>
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 22</span>
<span class='kw'>def</span> <span class='id middlewares'>middlewares</span>
- <span class='ivar'>@middlewares</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='lbracket'>[</span><span class='op'>::</span><span class='const'>Rack</span><span class='op'>::</span><span class='const'>ContentLength</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
+ <span class='ivar'>@middlewares</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
+ <span class='ivar'>@middlewares</span><span class='period'>.</span><span class='id unshift'>unshift</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='op'>::</span><span class='const'>Goliath</span><span class='op'>::</span><span class='const'>Rack</span><span class='op'>::</span><span class='const'>DefaultResponseFormat</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span><span class='rparen'>)</span>
+ <span class='ivar'>@middlewares</span><span class='period'>.</span><span class='id unshift'>unshift</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='op'>::</span><span class='const'>Rack</span><span class='op'>::</span><span class='const'>ContentLength</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span><span class='rparen'>)</span>
+
+ <span class='kw'>if</span> <span class='const'>Goliath</span><span class='period'>.</span><span class='id dev?'>dev?</span>
+ <span class='id reloader'>reloader</span> <span class='op'>=</span> <span class='ivar'>@middlewares</span><span class='period'>.</span><span class='id detect'>detect</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id mw'>mw</span><span class='op'>|</span> <span class='id mw'>mw</span><span class='period'>.</span><span class='id first'>first</span> <span class='op'>==</span> <span class='op'>::</span><span class='const'>Rack</span><span class='op'>::</span><span class='const'>Reloader</span><span class='rbrace'>}</span>
+ <span class='ivar'>@middlewares</span><span class='period'>.</span><span class='id unshift'>unshift</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='op'>::</span><span class='const'>Rack</span><span class='op'>::</span><span class='const'>Reloader</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id reloader'>reloader</span>
+ <span class='kw'>end</span>
+
+ <span class='ivar'>@middlewares</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -742,12 +760,12 @@
<pre class="lines">
-56
-57
-58</pre>
+66
+67
+68</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 56</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 66</span>
<span class='kw'>def</span> <span class='id plugin'>plugin</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span>
<span class='id plugins'>plugins</span><span class='period'>.</span><span class='id push'>push</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id args'>args</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -800,12 +818,12 @@
<pre class="lines">
-45
-46
-47</pre>
+55
+56
+57</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 45</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 55</span>
<span class='kw'>def</span> <span class='id plugins'>plugins</span>
<span class='ivar'>@plugins</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -908,15 +926,17 @@
<pre class="lines">
-38
-39
-40</pre>
+47
+48
+49
+50</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 38</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 47</span>
<span class='kw'>def</span> <span class='id use'>use</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id args'>args</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id block'>block</span><span class='rparen'>)</span>
- <span class='id middlewares'>middlewares</span><span class='period'>.</span><span class='id push'>push</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id args'>args</span><span class='comma'>,</span> <span class='id block'>block</span><span class='rbracket'>]</span><span class='rparen'>)</span>
+ <span class='ivar'>@middlewares</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
+ <span class='ivar'>@middlewares</span> <span class='op'>&lt;&lt;</span> <span class='lbracket'>[</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id args'>args</span><span class='comma'>,</span> <span class='id block'>block</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -996,16 +1016,6 @@
<pre class="lines">
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
138
139
140
@@ -1017,10 +1027,20 @@
146
147
148
-149</pre>
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 128</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 138</span>
<span class='kw'>def</span> <span class='id call'>call</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
<span class='const'>Fiber</span><span class='period'>.</span><span class='id new'>new</span> <span class='lbrace'>{</span>
@@ -1102,12 +1122,12 @@
<pre class="lines">
-99
-100
-101</pre>
+109
+110
+111</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 99</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 109</span>
<span class='kw'>def</span> <span class='id env'>env</span>
<span class='const'>Thread</span><span class='period'>.</span><span class='id current'>current</span><span class='lbracket'>[</span><span class='const'>Goliath</span><span class='op'>::</span><span class='const'>Constants</span><span class='op'>::</span><span class='const'>GOLIATH_ENV</span><span class='rbracket'>]</span>
@@ -1190,11 +1210,11 @@
<pre class="lines">
-91
-92</pre>
+101
+102</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 91</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 101</span>
<span class='kw'>def</span> <span class='id options_parser'>options_parser</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
@@ -1272,13 +1292,13 @@
<pre class="lines">
-159
-160
-161
-162</pre>
+169
+170
+171
+172</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 159</span>
+ <pre class="code"><span class="info file"># File 'lib/goliath/api.rb', line 169</span>
<span class='kw'>def</span> <span class='id response'>response</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
<span class='id env'>env</span><span class='period'>.</span><span class='id logger'>logger</span><span class='period'>.</span><span class='id error'>error</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>You need to implement response</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
@@ -1294,7 +1314,7 @@
</div>
<div id="footer">
- Generated on Fri Mar 4 22:34:27 2011 by
+ Generated on Mon Apr 11 12:32:32 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.6.4 (ruby-1.9.2).
</div>
Oops, something went wrong.

0 comments on commit b1d8be9

Please sign in to comment.