webmachine 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (907) hide show
  1. data/LICENSE +16 -0
  2. data/README.md +24 -0
  3. data/doc/Webmachine/Adapter.html +580 -0
  4. data/doc/Webmachine/Adapters.html +10 -9
  5. data/doc/Webmachine/Application.html +225 -72
  6. data/doc/Webmachine/CallableEncoder.html +23 -24
  7. data/doc/Webmachine/ChunkedBody.html +44 -29
  8. data/doc/Webmachine/Decision.html +8 -5
  9. data/doc/Webmachine/Dispatcher.html +103 -61
  10. data/doc/Webmachine/EnumerableEncoder.html +20 -25
  11. data/doc/Webmachine/Error.html +7 -6
  12. data/doc/Webmachine/FiberEncoder.html +16 -29
  13. data/doc/Webmachine/Headers.html +42 -30
  14. data/doc/Webmachine/InvalidResource.html +7 -13
  15. data/doc/Webmachine/MalformedRequest.html +8 -14
  16. data/doc/Webmachine/MediaType.html +153 -109
  17. data/doc/Webmachine/Request.html +844 -103
  18. data/doc/Webmachine/Resource.html +46 -48
  19. data/doc/Webmachine/Response.html +79 -50
  20. data/doc/Webmachine/StreamingEncoder.html +36 -23
  21. data/doc/Webmachine/Translation.html +21 -13
  22. data/doc/Webmachine.html +105 -82
  23. data/doc/_index.html +27 -34
  24. data/doc/class_list.html +1 -1
  25. data/doc/css/style.css +10 -10
  26. data/doc/file.README.html +113 -37
  27. data/doc/frames.html +1 -1
  28. data/doc/index.html +113 -37
  29. data/doc/js/app.js +4 -4
  30. data/doc/js/full_list.js +6 -0
  31. data/doc/method_list.html +269 -189
  32. data/lib/webmachine/adapters/mongrel.rb +5 -4
  33. data/lib/webmachine/decision/flow.rb +1 -1
  34. data/lib/webmachine/dispatcher.rb +1 -1
  35. data/lib/webmachine/request.rb +6 -3
  36. data/lib/webmachine/version.rb +1 -1
  37. data/spec/webmachine/adapters/mongrel_spec.rb +9 -0
  38. data/spec/webmachine/dispatcher_spec.rb +13 -0
  39. data/spec/webmachine/request_spec.rb +14 -9
  40. metadata +68 -992
  41. data/b/autospec +0 -16
  42. data/b/gpgen +0 -16
  43. data/b/guard +0 -16
  44. data/b/htmldiff +0 -16
  45. data/b/ldiff +0 -16
  46. data/b/mongrel_rails +0 -16
  47. data/b/rackup +0 -16
  48. data/b/rake +0 -16
  49. data/b/rake2thor +0 -16
  50. data/b/redcarpet +0 -16
  51. data/b/rspec +0 -16
  52. data/b/thor +0 -16
  53. data/b/yard +0 -16
  54. data/b/yardoc +0 -16
  55. data/b/yri +0 -16
  56. data/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  57. data/doc/Webmachine/Adapters/Mongrel.html +0 -212
  58. data/doc/Webmachine/Adapters/Rack.html +0 -316
  59. data/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  60. data/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  61. data/doc/Webmachine/Adapters/WEBrick.html +0 -202
  62. data/doc/Webmachine/Configuration.html +0 -551
  63. data/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  64. data/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  65. data/doc/Webmachine/Decision/Conneg.html +0 -678
  66. data/doc/Webmachine/Decision/FSM.html +0 -648
  67. data/doc/Webmachine/Decision/Flow.html +0 -3989
  68. data/doc/Webmachine/Decision/Helpers.html +0 -733
  69. data/doc/Webmachine/Dispatcher/Route.html +0 -657
  70. data/doc/Webmachine/Resource/Authentication.html +0 -333
  71. data/doc/Webmachine/Resource/Callbacks.html +0 -3046
  72. data/doc/Webmachine/Resource/Encodings.html +0 -325
  73. data/doc/Webmachine/Trace/Call.html +0 -366
  74. data/doc/Webmachine/Trace/TraceResource.html +0 -627
  75. data/doc/Webmachine/Trace/Wrapper.html +0 -451
  76. data/doc/Webmachine/Trace.html +0 -108
  77. data/doc/top-level-namespace.html +0 -103
  78. data/lib/webmachine/adapter.rbc +0 -486
  79. data/lib/webmachine/adapters/mongrel.rbc +0 -2213
  80. data/lib/webmachine/adapters/rack.rbc +0 -1082
  81. data/lib/webmachine/adapters/webrick.rbc +0 -2217
  82. data/lib/webmachine/adapters.rbc +0 -223
  83. data/lib/webmachine/application.rbc +0 -1143
  84. data/lib/webmachine/chunked_body.rbc +0 -552
  85. data/lib/webmachine/configuration.rbc +0 -570
  86. data/lib/webmachine/decision/conneg.rbc +0 -4428
  87. data/lib/webmachine/decision/flow.rbc +0 -8688
  88. data/lib/webmachine/decision/fsm.rbc +0 -1540
  89. data/lib/webmachine/decision/helpers.rbc +0 -2287
  90. data/lib/webmachine/decision.rbc +0 -194
  91. data/lib/webmachine/dispatcher/route.rbc +0 -1616
  92. data/lib/webmachine/dispatcher.rbc +0 -955
  93. data/lib/webmachine/errors.rbc +0 -625
  94. data/lib/webmachine/fiber18.rbc +0 -1251
  95. data/lib/webmachine/headers.rbc +0 -919
  96. data/lib/webmachine/media_type.rbc +0 -1946
  97. data/lib/webmachine/request.rbc +0 -1949
  98. data/lib/webmachine/resource/authentication.rbc +0 -510
  99. data/lib/webmachine/resource/callbacks.rbc +0 -2602
  100. data/lib/webmachine/resource/encodings.rbc +0 -746
  101. data/lib/webmachine/resource.rbc +0 -511
  102. data/lib/webmachine/response.rbc +0 -602
  103. data/lib/webmachine/streaming.rbc +0 -1024
  104. data/lib/webmachine/translation.rbc +0 -393
  105. data/lib/webmachine/version.rbc +0 -161
  106. data/lib/webmachine.rbc +0 -389
  107. data/pkg/public/map.png +0 -0
  108. data/pkg/public/trace.html.erb +0 -54
  109. data/pkg/public/wmtrace.css +0 -107
  110. data/pkg/public/wmtrace.js +0 -713
  111. data/pkg/tests.org +0 -80
  112. data/pkg/trace/trace_resource.rb +0 -83
  113. data/pkg/trace.rb +0 -40
  114. data/pkg/webmachine-0.1.0/Gemfile +0 -16
  115. data/pkg/webmachine-0.1.0/Guardfile +0 -11
  116. data/pkg/webmachine-0.1.0/README.md +0 -90
  117. data/pkg/webmachine-0.1.0/Rakefile +0 -31
  118. data/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  119. data/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  120. data/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  121. data/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  122. data/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  123. data/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  124. data/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  125. data/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  126. data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  127. data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  128. data/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  129. data/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  130. data/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  131. data/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  132. data/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  133. data/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  134. data/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  135. data/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  136. data/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  137. data/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  138. data/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  139. data/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  140. data/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  141. data/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  142. data/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  143. data/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  144. data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  145. data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  146. data/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  147. data/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  148. data/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  149. data/pkg/webmachine-0.1.0.gem +0 -0
  150. data/pkg/webmachine-0.2.0/Gemfile +0 -24
  151. data/pkg/webmachine-0.2.0/Guardfile +0 -11
  152. data/pkg/webmachine-0.2.0/README.md +0 -117
  153. data/pkg/webmachine-0.2.0/Rakefile +0 -31
  154. data/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  155. data/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  156. data/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  157. data/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  158. data/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  159. data/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  160. data/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  161. data/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  162. data/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  163. data/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  164. data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  165. data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  166. data/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  167. data/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  168. data/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  169. data/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  170. data/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  171. data/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  172. data/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  173. data/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  174. data/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  175. data/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  176. data/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  177. data/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  178. data/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  179. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  180. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  181. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  182. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  183. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  184. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  185. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  186. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  187. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  188. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  189. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  190. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  191. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  192. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  193. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  194. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  195. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  196. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  197. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  198. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  199. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  200. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  201. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  202. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  203. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  204. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  205. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  206. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  207. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  208. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  209. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  210. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  211. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  212. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  213. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  214. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  215. data/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  216. data/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  217. data/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  218. data/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  219. data/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  220. data/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  221. data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  222. data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  223. data/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  224. data/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  225. data/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  226. data/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  227. data/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  228. data/pkg/webmachine-0.2.0.gem +0 -0
  229. data/pkg/webmachine-0.3.0/Gemfile +0 -28
  230. data/pkg/webmachine-0.3.0/Guardfile +0 -11
  231. data/pkg/webmachine-0.3.0/README.md +0 -169
  232. data/pkg/webmachine-0.3.0/Rakefile +0 -41
  233. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  234. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  235. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
  236. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  237. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  238. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  239. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
  240. data/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
  241. data/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
  242. data/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
  243. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  244. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  245. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
  246. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
  247. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
  248. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
  249. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
  250. data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  251. data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
  252. data/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  253. data/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
  254. data/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
  255. data/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
  256. data/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
  257. data/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
  258. data/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
  259. data/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
  260. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
  261. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  262. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
  263. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
  264. data/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
  265. data/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
  266. data/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
  267. data/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
  268. data/pkg/webmachine-0.3.0/doc/_index.html +0 -478
  269. data/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
  270. data/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
  271. data/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
  272. data/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
  273. data/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
  274. data/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
  275. data/pkg/webmachine-0.3.0/doc/frames.html +0 -13
  276. data/pkg/webmachine-0.3.0/doc/index.html +0 -240
  277. data/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
  278. data/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
  279. data/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
  280. data/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
  281. data/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
  282. data/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
  283. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
  284. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
  285. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
  286. data/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
  287. data/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
  288. data/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
  289. data/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
  290. data/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
  291. data/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
  292. data/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
  293. data/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
  294. data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
  295. data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
  296. data/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
  297. data/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
  298. data/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
  299. data/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
  300. data/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
  301. data/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
  302. data/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
  303. data/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
  304. data/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
  305. data/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
  306. data/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
  307. data/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
  308. data/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
  309. data/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
  310. data/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
  311. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  312. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  313. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
  314. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  315. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  316. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  317. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  318. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  319. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  320. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  321. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  322. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  323. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  324. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  325. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  326. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  327. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  328. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  329. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  330. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  331. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  332. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  333. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  334. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  335. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  336. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  337. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  338. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  339. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  340. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  341. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  342. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  343. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  344. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  345. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  346. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
  347. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  348. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  349. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
  350. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  351. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  352. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  353. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  354. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  355. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  356. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  357. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  358. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  359. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  360. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  361. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  362. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  363. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  364. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  365. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  366. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  367. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  368. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  369. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  370. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  371. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  372. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  373. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  374. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  375. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  376. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  377. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  378. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  379. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  380. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  381. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  382. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  383. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  384. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  385. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  386. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  387. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  388. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  389. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  390. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  391. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  392. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  393. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  394. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  395. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  396. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  397. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  398. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  399. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  400. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  401. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  402. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  403. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  404. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  405. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  406. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  407. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  408. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  409. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  410. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  411. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  412. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  413. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  414. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  415. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  416. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  417. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  418. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  419. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  420. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  421. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  422. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  423. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  424. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  425. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
  426. data/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
  427. data/pkg/webmachine-0.3.0/spec/tests.org +0 -80
  428. data/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
  429. data/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
  430. data/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
  431. data/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  432. data/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  433. data/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  434. data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  435. data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
  436. data/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
  437. data/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
  438. data/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
  439. data/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
  440. data/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  441. data/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
  442. data/pkg/webmachine-0.3.0.gem +0 -0
  443. data/pkg/webmachine-0.4.0/Gemfile +0 -30
  444. data/pkg/webmachine-0.4.0/Guardfile +0 -11
  445. data/pkg/webmachine-0.4.0/README.md +0 -169
  446. data/pkg/webmachine-0.4.0/Rakefile +0 -41
  447. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  448. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  449. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Rack.html +0 -316
  450. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  451. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  452. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  453. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters.html +0 -120
  454. data/pkg/webmachine-0.4.0/doc/Webmachine/Application.html +0 -755
  455. data/pkg/webmachine-0.4.0/doc/Webmachine/CallableEncoder.html +0 -326
  456. data/pkg/webmachine-0.4.0/doc/Webmachine/ChunkedBody.html +0 -350
  457. data/pkg/webmachine-0.4.0/doc/Webmachine/Configuration.html +0 -551
  458. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  459. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  460. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg.html +0 -678
  461. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/FSM.html +0 -648
  462. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Flow.html +0 -3989
  463. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Helpers.html +0 -733
  464. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision.html +0 -121
  465. data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  466. data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher.html +0 -530
  467. data/pkg/webmachine-0.4.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  468. data/pkg/webmachine-0.4.0/doc/Webmachine/Error.html +0 -129
  469. data/pkg/webmachine-0.4.0/doc/Webmachine/FiberEncoder.html +0 -250
  470. data/pkg/webmachine-0.4.0/doc/Webmachine/Headers.html +0 -475
  471. data/pkg/webmachine-0.4.0/doc/Webmachine/InvalidResource.html +0 -139
  472. data/pkg/webmachine-0.4.0/doc/Webmachine/MalformedRequest.html +0 -141
  473. data/pkg/webmachine-0.4.0/doc/Webmachine/MediaType.html +0 -1406
  474. data/pkg/webmachine-0.4.0/doc/Webmachine/Request.html +0 -1048
  475. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Authentication.html +0 -333
  476. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  477. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Encodings.html +0 -325
  478. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource.html +0 -457
  479. data/pkg/webmachine-0.4.0/doc/Webmachine/Response.html +0 -880
  480. data/pkg/webmachine-0.4.0/doc/Webmachine/StreamingEncoder.html +0 -465
  481. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Call.html +0 -366
  482. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/TraceResource.html +0 -627
  483. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Wrapper.html +0 -451
  484. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace.html +0 -108
  485. data/pkg/webmachine-0.4.0/doc/Webmachine/Translation.html +0 -236
  486. data/pkg/webmachine-0.4.0/doc/Webmachine.html +0 -836
  487. data/pkg/webmachine-0.4.0/doc/_index.html +0 -478
  488. data/pkg/webmachine-0.4.0/doc/class_list.html +0 -47
  489. data/pkg/webmachine-0.4.0/doc/css/common.css +0 -1
  490. data/pkg/webmachine-0.4.0/doc/css/full_list.css +0 -55
  491. data/pkg/webmachine-0.4.0/doc/css/style.css +0 -322
  492. data/pkg/webmachine-0.4.0/doc/file.README.html +0 -240
  493. data/pkg/webmachine-0.4.0/doc/file_list.html +0 -49
  494. data/pkg/webmachine-0.4.0/doc/frames.html +0 -13
  495. data/pkg/webmachine-0.4.0/doc/index.html +0 -240
  496. data/pkg/webmachine-0.4.0/doc/js/app.js +0 -205
  497. data/pkg/webmachine-0.4.0/doc/js/full_list.js +0 -167
  498. data/pkg/webmachine-0.4.0/doc/js/jquery.js +0 -16
  499. data/pkg/webmachine-0.4.0/doc/method_list.html +0 -1910
  500. data/pkg/webmachine-0.4.0/doc/top-level-namespace.html +0 -103
  501. data/pkg/webmachine-0.4.0/examples/application.rb +0 -35
  502. data/pkg/webmachine-0.4.0/examples/webrick.rb +0 -19
  503. data/pkg/webmachine-0.4.0/lib/webmachine/adapter.rb +0 -36
  504. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/mongrel.rb +0 -86
  505. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/rack.rb +0 -69
  506. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/webrick.rb +0 -89
  507. data/pkg/webmachine-0.4.0/lib/webmachine/adapters.rb +0 -9
  508. data/pkg/webmachine-0.4.0/lib/webmachine/application.rb +0 -108
  509. data/pkg/webmachine-0.4.0/lib/webmachine/chunked_body.rb +0 -43
  510. data/pkg/webmachine-0.4.0/lib/webmachine/configuration.rb +0 -40
  511. data/pkg/webmachine-0.4.0/lib/webmachine/decision/conneg.rb +0 -239
  512. data/pkg/webmachine-0.4.0/lib/webmachine/decision/flow.rb +0 -503
  513. data/pkg/webmachine-0.4.0/lib/webmachine/decision/fsm.rb +0 -70
  514. data/pkg/webmachine-0.4.0/lib/webmachine/decision/helpers.rb +0 -104
  515. data/pkg/webmachine-0.4.0/lib/webmachine/decision.rb +0 -12
  516. data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher/route.rb +0 -126
  517. data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher.rb +0 -61
  518. data/pkg/webmachine-0.4.0/lib/webmachine/errors.rb +0 -38
  519. data/pkg/webmachine-0.4.0/lib/webmachine/fiber18.rb +0 -88
  520. data/pkg/webmachine-0.4.0/lib/webmachine/headers.rb +0 -40
  521. data/pkg/webmachine-0.4.0/lib/webmachine/locale/en.yml +0 -28
  522. data/pkg/webmachine-0.4.0/lib/webmachine/media_type.rb +0 -120
  523. data/pkg/webmachine-0.4.0/lib/webmachine/request.rb +0 -141
  524. data/pkg/webmachine-0.4.0/lib/webmachine/resource/authentication.rb +0 -36
  525. data/pkg/webmachine-0.4.0/lib/webmachine/resource/callbacks.rb +0 -377
  526. data/pkg/webmachine-0.4.0/lib/webmachine/resource/encodings.rb +0 -37
  527. data/pkg/webmachine-0.4.0/lib/webmachine/resource.rb +0 -50
  528. data/pkg/webmachine-0.4.0/lib/webmachine/response.rb +0 -51
  529. data/pkg/webmachine-0.4.0/lib/webmachine/streaming.rb +0 -63
  530. data/pkg/webmachine-0.4.0/lib/webmachine/translation.rb +0 -18
  531. data/pkg/webmachine-0.4.0/lib/webmachine/version.rb +0 -8
  532. data/pkg/webmachine-0.4.0/lib/webmachine/version.rbc +0 -161
  533. data/pkg/webmachine-0.4.0/lib/webmachine.rb +0 -22
  534. data/pkg/webmachine-0.4.0/pkg/public/map.png +0 -0
  535. data/pkg/webmachine-0.4.0/pkg/public/trace.html.erb +0 -54
  536. data/pkg/webmachine-0.4.0/pkg/public/wmtrace.css +0 -107
  537. data/pkg/webmachine-0.4.0/pkg/public/wmtrace.js +0 -713
  538. data/pkg/webmachine-0.4.0/pkg/tests.org +0 -80
  539. data/pkg/webmachine-0.4.0/pkg/trace/trace_resource.rb +0 -83
  540. data/pkg/webmachine-0.4.0/pkg/trace.rb +0 -40
  541. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  542. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  543. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/README.md +0 -90
  544. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  545. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  546. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  547. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  548. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  549. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  550. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  551. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  552. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  553. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  554. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  555. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  556. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  557. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  558. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  559. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  560. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  561. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  562. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  563. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  564. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  565. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  566. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  567. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  568. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  569. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  570. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  571. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  572. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  573. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  574. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  575. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  576. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0.gem +0 -0
  577. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  578. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  579. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/README.md +0 -117
  580. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  581. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  582. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  583. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  584. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  585. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  586. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  587. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  588. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  589. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  590. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  591. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  592. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  593. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  594. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  595. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  596. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  597. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  598. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  599. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  600. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  601. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  602. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  603. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  604. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  605. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  606. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  607. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  608. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  609. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  610. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  611. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  612. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  613. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  614. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  615. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  616. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  617. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  618. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  619. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  620. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  621. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  622. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  623. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  624. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  625. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  626. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  627. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  628. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  629. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  630. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  631. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  632. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  633. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  634. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  635. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  636. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  637. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  638. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  639. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  640. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  641. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  642. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  643. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  644. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  645. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  646. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  647. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  648. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  649. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  650. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  651. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  652. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  653. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  654. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  655. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0.gem +0 -0
  656. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Gemfile +0 -28
  657. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Guardfile +0 -11
  658. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/README.md +0 -169
  659. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Rakefile +0 -41
  660. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  661. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  662. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
  663. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  664. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  665. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  666. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
  667. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
  668. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
  669. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
  670. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  671. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  672. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
  673. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
  674. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
  675. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
  676. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
  677. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  678. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
  679. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  680. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
  681. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
  682. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
  683. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
  684. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
  685. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
  686. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
  687. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
  688. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  689. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
  690. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
  691. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
  692. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
  693. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
  694. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
  695. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/_index.html +0 -478
  696. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
  697. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
  698. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
  699. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
  700. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
  701. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
  702. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/frames.html +0 -13
  703. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/index.html +0 -240
  704. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
  705. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
  706. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
  707. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
  708. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
  709. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
  710. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
  711. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
  712. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
  713. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
  714. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
  715. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
  716. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
  717. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
  718. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
  719. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
  720. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
  721. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
  722. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
  723. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
  724. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
  725. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
  726. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
  727. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
  728. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
  729. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
  730. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
  731. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
  732. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
  733. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
  734. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
  735. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
  736. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
  737. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
  738. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  739. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  740. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
  741. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  742. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  743. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  744. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  745. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  746. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  747. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  748. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  749. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  750. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  751. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  752. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  753. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  754. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  755. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  756. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  757. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  758. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  759. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  760. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  761. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  762. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  763. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  764. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  765. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  766. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  767. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  768. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  769. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  770. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  771. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  772. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  773. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
  774. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  775. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  776. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
  777. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  778. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  779. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  780. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  781. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  782. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  783. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  784. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  785. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  786. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  787. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  788. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  789. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  790. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  791. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  792. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  793. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  794. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  795. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  796. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  797. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  798. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  799. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  800. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  801. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  802. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  803. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  804. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  805. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  806. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  807. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  808. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  809. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  810. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  811. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  812. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  813. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  814. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  815. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  816. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  817. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  818. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  819. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  820. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  821. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  822. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  823. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  824. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  825. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  826. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  827. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  828. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  829. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  830. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  831. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  832. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  833. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  834. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  835. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  836. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  837. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  838. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  839. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  840. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  841. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  842. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  843. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  844. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  845. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  846. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  847. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  848. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  849. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  850. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  851. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  852. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
  853. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
  854. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/tests.org +0 -80
  855. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
  856. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
  857. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
  858. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  859. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  860. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  861. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  862. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
  863. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
  864. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
  865. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
  866. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
  867. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  868. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
  869. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0.gem +0 -0
  870. data/pkg/webmachine-0.4.0/spec/spec_helper.rb +0 -13
  871. data/pkg/webmachine-0.4.0/spec/webmachine/adapter_spec.rb +0 -40
  872. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/mongrel_spec.rb +0 -22
  873. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/rack_spec.rb +0 -90
  874. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/webrick_spec.rb +0 -18
  875. data/pkg/webmachine-0.4.0/spec/webmachine/application_spec.rb +0 -73
  876. data/pkg/webmachine-0.4.0/spec/webmachine/chunked_body_spec.rb +0 -30
  877. data/pkg/webmachine-0.4.0/spec/webmachine/configuration_spec.rb +0 -27
  878. data/pkg/webmachine-0.4.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  879. data/pkg/webmachine-0.4.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  880. data/pkg/webmachine-0.4.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  881. data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher/route_spec.rb +0 -166
  882. data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher_spec.rb +0 -59
  883. data/pkg/webmachine-0.4.0/spec/webmachine/errors_spec.rb +0 -13
  884. data/pkg/webmachine-0.4.0/spec/webmachine/headers_spec.rb +0 -20
  885. data/pkg/webmachine-0.4.0/spec/webmachine/media_type_spec.rb +0 -78
  886. data/pkg/webmachine-0.4.0/spec/webmachine/request_spec.rb +0 -186
  887. data/pkg/webmachine-0.4.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  888. data/pkg/webmachine-0.4.0/webmachine.gemspec +0 -29
  889. data/pkg/webmachine-0.4.0.gem +0 -0
  890. data/spec/spec_helper.rbc +0 -438
  891. data/spec/webmachine/adapter_spec.rbc +0 -1059
  892. data/spec/webmachine/adapters/mongrel_spec.rbc +0 -748
  893. data/spec/webmachine/adapters/rack_spec.rbc +0 -2405
  894. data/spec/webmachine/adapters/webrick_spec.rbc +0 -653
  895. data/spec/webmachine/application_spec.rbc +0 -1979
  896. data/spec/webmachine/chunked_body_spec.rbc +0 -917
  897. data/spec/webmachine/configuration_spec.rbc +0 -874
  898. data/spec/webmachine/decision/conneg_spec.rbc +0 -4563
  899. data/spec/webmachine/decision/flow_spec.rbc +0 -31810
  900. data/spec/webmachine/decision/helpers_spec.rbc +0 -3742
  901. data/spec/webmachine/dispatcher/route_spec.rbc +0 -6354
  902. data/spec/webmachine/dispatcher_spec.rbc +0 -2143
  903. data/spec/webmachine/errors_spec.rbc +0 -387
  904. data/spec/webmachine/headers_spec.rbc +0 -678
  905. data/spec/webmachine/media_type_spec.rbc +0 -3298
  906. data/spec/webmachine/request_spec.rbc +0 -5948
  907. data/spec/webmachine/resource/authentication_spec.rbc +0 -2395
@@ -1,376 +0,0 @@
1
- module Webmachine
2
- class Resource
3
- # These methods are the primary way your {Webmachine::Resource}
4
- # instance interacts with HTTP and the
5
- # {Webmachine::Decision::FSM}. Implementing a callback can change
6
- # the portions of the graph that are made available to your
7
- # application.
8
- module Callbacks
9
- # Does the resource exist? Returning a falsey value (false or nil)
10
- # will result in a '404 Not Found' response. Defaults to true.
11
- # @return [true,false] Whether the resource exists
12
- # @api callback
13
- def resource_exists?
14
- true
15
- end
16
-
17
- # Is the resource available? Returning a falsey value (false or
18
- # nil) will result in a '503 Service Not Available'
19
- # response. Defaults to true. If the resource is only temporarily
20
- # not available, add a 'Retry-After' response header in the body
21
- # of the method.
22
- # @return [true,false]
23
- # @api callback
24
- def service_available?
25
- true
26
- end
27
-
28
- # Is the client or request authorized? Returning anything other than true
29
- # will result in a '401 Unauthorized' response. Defaults to
30
- # true. If a String is returned, it will be used as the value in
31
- # the WWW-Authenticate header, which can also be set manually.
32
- # @param [String] authorization_header The contents of the
33
- # 'Authorization' header sent by the client, if present.
34
- # @return [true,false,String] Whether the client is authorized,
35
- # and if not, the WWW-Authenticate header when a String.
36
- # @api callback
37
- def is_authorized?(authorization_header = nil)
38
- true
39
- end
40
-
41
- # Is the request or client forbidden? Returning a truthy value
42
- # (true or non-nil) will result in a '403 Forbidden' response.
43
- # Defaults to false.
44
- # @return [true,false] Whether the client or request is forbidden.
45
- # @api callback
46
- def forbidden?
47
- false
48
- end
49
-
50
- # If the resource accepts POST requests to nonexistent resources,
51
- # then this should return true. Defaults to false.
52
- # @return [true,false] Whether to accept POST requests to missing
53
- # resources.
54
- # @api callback
55
- def allow_missing_post?
56
- false
57
- end
58
-
59
- # If the request is malformed, this should return true, which will
60
- # result in a '400 Malformed Request' response. Defaults to false.
61
- # @return [true,false] Whether the request is malformed.
62
- # @api callback
63
- def malformed_request?
64
- false
65
- end
66
-
67
- # If the URI is too long to be processed, this should return true,
68
- # which will result in a '414 Request URI Too Long'
69
- # response. Defaults to false.
70
- # @param [URI] uri the request URI
71
- # @return [true,false] Whether the request URI is too long.
72
- # @api callback
73
- def uri_too_long?(uri = nil)
74
- false
75
- end
76
-
77
- # If the Content-Type on PUT or POST is unknown, this should
78
- # return false, which will result in a '415 Unsupported Media
79
- # Type' response. Defaults to true.
80
- # @param [String] content_type the 'Content-Type' header sent by
81
- # the client
82
- # @return [true,false] Whether the passed media type is known or
83
- # accepted
84
- # @api callback
85
- def known_content_type?(content_type = nil)
86
- true
87
- end
88
-
89
- # If the request includes any invalid Content-* headers, this
90
- # should return false, which will result in a '501 Not
91
- # Implemented' response. Defaults to false.
92
- # @param [Hash] content_headers Request headers that begin with
93
- # 'Content-'
94
- # @return [true,false] Whether the Content-* headers are invalid
95
- # or unsupported
96
- # @api callback
97
- def valid_content_headers?(content_headers = nil)
98
- true
99
- end
100
-
101
- # If the entity length on PUT or POST is invalid, this should
102
- # return false, which will result in a '413 Request Entity Too
103
- # Large' response. Defaults to true.
104
- # @param [Fixnum] length the size of the request body (entity)
105
- # @return [true,false] Whether the body is a valid length (not too
106
- # large)
107
- # @api callback
108
- def valid_entity_length?(length = nil)
109
- true
110
- end
111
-
112
- # If the OPTIONS method is supported and is used, this method
113
- # should return a Hash of headers that should appear in the
114
- # response. Defaults to {}.
115
- # @return [Hash] headers to appear in the response
116
- # @api callback
117
- def options
118
- {}
119
- end
120
-
121
- # HTTP methods that are allowed on this resource. This must return
122
- # an Array of Strings in all capitals. Defaults to ['GET','HEAD'].
123
- # @return [Array<String>] allowed methods on this resource
124
- # @api callback
125
- def allowed_methods
126
- ['GET', 'HEAD']
127
- end
128
-
129
- # HTTP methods that are known to the resource. Like
130
- # {#allowed_methods}, this must return an Array of Strings in
131
- # all capitals. Default includes all standard HTTP methods. One
132
- # could override this callback to allow additional methods,
133
- # e.g. WebDAV.
134
- # @return [Array<String>] known methods
135
- # @api callback
136
- def known_methods
137
- ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT', 'OPTIONS']
138
- end
139
-
140
- # This method is called when a DELETE request should be enacted,
141
- # and should return true if the deletion succeeded. Defaults to false.
142
- # @return [true,false] Whether the deletion succeeded.
143
- # @api callback
144
- def delete_resource
145
- false
146
- end
147
-
148
- # This method is called after a successful call to
149
- # {#delete_resource} and should return false if the deletion was
150
- # accepted but cannot yet be guaranteed to have finished. Defaults
151
- # to true.
152
- # @return [true,false] Whether the deletion completed
153
- # @api callback
154
- def delete_completed?
155
- true
156
- end
157
-
158
- # If POST requests should be treated as a request to put content
159
- # into a (potentially new) resource as opposed to a generic
160
- # submission for processing, then this method should return
161
- # true. If it does return true, then {#create_path} will be called
162
- # and the rest of the request will be treated much like a PUT to
163
- # the path returned by that call. Default is false.
164
- # @return [true,false] Whether POST creates a new resource
165
- # @api callback
166
- def post_is_create?
167
- false
168
- end
169
-
170
- # This will be called on a POST request if post_is_create? returns
171
- # true. The path returned should be a valid URI part following the
172
- # dispatcher prefix. That path will replace the previous one in
173
- # the return value of {Request#disp_path} for all subsequent
174
- # resource function calls in the course of this request.
175
- # @return [String, URI] the path to the new resource
176
- # @api callback
177
- def create_path
178
- nil
179
- end
180
-
181
- # This will be called after {#create_path} but before setting the
182
- # Location response header, and is used to determine the root
183
- # URI of the new resource. Default is nil, which uses the URI of
184
- # the request as the base.
185
- # @return [String, URI, nil]
186
- # @api callback
187
- def base_uri
188
- nil
189
- end
190
-
191
- # If post_is_create? returns false, then this will be called to
192
- # process any POST request. If it succeeds, it should return true.
193
- # @return [true,false,Fixnum] Whether the POST was successfully
194
- # processed, or an alternate response code
195
- # @api callback
196
- def process_post
197
- false
198
- end
199
-
200
- # This should return an array of pairs where each pair is of the
201
- # form [mediatype, :handler] where mediatype is a String of
202
- # Content-Type format (or {Webmachine::MediaType}) and :handler
203
- # is a Symbol naming the method which can provide a resource
204
- # representation in that media type. For example, if a client
205
- # request includes an 'Accept' header with a value that does not
206
- # appear as a first element in any of the return pairs, then a
207
- # '406 Not Acceptable' will be sent. Default is [['text/html',
208
- # :to_html]].
209
- # @return an array of mediatype/handler pairs
210
- # @api callback
211
- def content_types_provided
212
- [['text/html', :to_html]]
213
- end
214
-
215
- # Similarly to content_types_provided, this should return an array
216
- # of mediatype/handler pairs, except that it is for incoming
217
- # resource representations -- for example, PUT requests. Handler
218
- # functions usually want to use {Request#body} to access the
219
- # incoming entity.
220
- # @return [Array] an array of mediatype/handler pairs
221
- # @api callback
222
- def content_types_accepted
223
- []
224
- end
225
-
226
- # If this is anything other than nil, it must be an array of pairs
227
- # where each pair is of the form Charset, Converter where Charset
228
- # is a string naming a charset and Converter is an arity-1 method
229
- # in the resource which will be called on the produced body in a
230
- # GET and ensure that it is in Charset.
231
- # @return [nil, Array] The provided character sets and encoder
232
- # methods, or nothing.
233
- # @api callback
234
- def charsets_provided
235
- nil
236
- end
237
-
238
- # This should return a list of language tags provided by the
239
- # resource. Default is the empty Array, in which the content is
240
- # in no specific language.
241
- # @return [Array<String>] a list of provided languages
242
- # @api callback
243
- def languages_provided
244
- []
245
- end
246
-
247
- # This should receive the chosen language and do something with
248
- # it that is resource-specific. The default is to store the
249
- # value in the @language instance variable.
250
- # @param [String] lang the negotiated language
251
- # @api callback
252
- def language_chosen(lang)
253
- @language = lang
254
- end
255
-
256
- # This should return a hash of encodings mapped to encoding
257
- # methods for Content-Encodings your resource wants to
258
- # provide. The encoding will be applied to the response body
259
- # automatically by Webmachine. A number of built-in encodings
260
- # are provided in the {Encodings} module. Default includes only
261
- # the 'identity' encoding.
262
- # @return [Hash] a hash of encodings and encoder methods/procs
263
- # @api callback
264
- # @see Encodings
265
- def encodings_provided
266
- {"identity" => :encode_identity }
267
- end
268
-
269
- # If this method is implemented, it should return a list of
270
- # strings with header names that should be included in a given
271
- # response's Vary header. The standard conneg headers (Accept,
272
- # Accept-Encoding, Accept-Charset, Accept-Language) do not need to
273
- # be specified here as Webmachine will add the correct elements of
274
- # those automatically depending on resource behavior. Default is
275
- # [].
276
- # @api callback
277
- # @return [Array<String>] a list of variance headers
278
- def variances
279
- []
280
- end
281
-
282
- # If this returns true, the client will receive a '409 Conflict'
283
- # response. This is only called for PUT requests. Default is false.
284
- # @api callback
285
- # @return [true,false] whether the submitted entity is in conflict
286
- # with the current state of the resource
287
- def is_conflict?
288
- false
289
- end
290
-
291
- # If this returns true, then it is assumed that multiple
292
- # representations of the response are possible and a single one
293
- # cannot be automatically chosen, so a 300 Multiple Choices will
294
- # be sent instead of a 200. Default is false.
295
- # @api callback
296
- # @return [true,false] whether the multiple representations are
297
- # possible
298
- def multiple_choices?
299
- false
300
- end
301
-
302
- # If this resource is known to have existed previously, this
303
- # method should return true. Default is false.
304
- # @api callback
305
- # @return [true,false] whether the resource existed previously
306
- def previously_existed?
307
- false
308
- end
309
-
310
- # If this resource has moved to a new location permanently, this
311
- # method should return the new location as a String or
312
- # URI. Default is to return false.
313
- # @api callback
314
- # @return [String,URI,false] the new location of the resource, or
315
- # false
316
- def moved_permanently?
317
- false
318
- end
319
-
320
- # If this resource has moved to a new location temporarily, this
321
- # method should return the new location as a String or
322
- # URI. Default is to return false.
323
- # @api callback
324
- # @return [String,URI,false] the new location of the resource, or
325
- # false
326
- def moved_temporarily?
327
- false
328
- end
329
-
330
- # This method should return the last modified date/time of the
331
- # resource which will be added as the Last-Modified header in the
332
- # response and used in negotiating conditional requests. Default
333
- # is nil.
334
- # @api callback
335
- # @return [Time,DateTime,Date,nil] the last modified time
336
- def last_modified
337
- nil
338
- end
339
-
340
- # If the resource expires, this method should return the date/time
341
- # it expires. Default is nil.
342
- # @api callback
343
- # @return [Time,DateTime,Date,nil] the expiration time
344
- def expires
345
- nil
346
- end
347
-
348
- # If this returns a value, it will be used as the value of the
349
- # ETag header and for comparison in conditional requests. Default
350
- # is nil.
351
- # @api callback
352
- # @return [String,nil] the entity tag for this resource
353
- def generate_etag
354
- nil
355
- end
356
-
357
- # This method is called just before the final response is
358
- # constructed and sent. The return value is ignored, so any effect
359
- # of this method must be by modifying the response.
360
- # @api callback
361
- def finish_request; end
362
-
363
- # This method is called when verifying the Content-MD5 header
364
- # against the request body. To do your own validation, implement
365
- # it in this callback, returning true or false. To bypass header
366
- # validation, simply return true. Default is nil, which will
367
- # invoke Webmachine's default validation.
368
- # @api callback
369
- # @return [true,false,nil] Whether the Content-MD5 header
370
- # validates against the request body
371
- def validate_content_checksum
372
- nil
373
- end
374
- end
375
- end
376
- end
@@ -1,36 +0,0 @@
1
- require 'zlib'
2
- require 'stringio'
3
-
4
- module Webmachine
5
- class Resource
6
- # This module implements standard Content-Encodings that you might
7
- # want to use in your {Resource}. To use one, simply return it in
8
- # the hash from {Callbacks#encodings_provided}.
9
- module Encodings
10
- # The 'identity' encoding, which does no compression.
11
- def encode_identity(data)
12
- data
13
- end
14
-
15
- # The 'deflate' encoding, which uses libz's DEFLATE compression.
16
- def encode_deflate(data)
17
- # The deflate options were borrowed from Rack and Mongrel1.
18
- Zlib::Deflate.deflate(data, *[Zlib::DEFAULT_COMPRESSION,
19
- # drop the zlib header which causes both Safari and IE to choke
20
- -Zlib::MAX_WBITS,
21
- Zlib::DEF_MEM_LEVEL,
22
- Zlib::DEFAULT_STRATEGY
23
- ])
24
- end
25
-
26
- # The 'gzip' encoding, which uses GNU Zip (via libz).
27
- # @note Because of the header/checksum requirements, gzip cannot
28
- # be used on streamed responses.
29
- def encode_gzip(data)
30
- "".tap do |out|
31
- Zlib::GzipWriter.wrap(StringIO.new(out)){|gz| gz << data }
32
- end
33
- end
34
- end
35
- end
36
- end
@@ -1,48 +0,0 @@
1
- require 'webmachine/resource/callbacks'
2
- require 'webmachine/resource/encodings'
3
-
4
- module Webmachine
5
- # Resource is the primary building block of Webmachine applications,
6
- # and describes families of HTTP resources. It includes all of the
7
- # methods you might want to override to customize the behavior of
8
- # the resource. The simplest resource family you can implement
9
- # looks like this:
10
- #
11
- # class HelloWorldResource < Webmachine::Resource
12
- # def to_html
13
- # "<html><body>Hello, world!</body></html>"
14
- # end
15
- # end
16
- #
17
- # For more information about how response decisions are made in
18
- # Webmachine based on your resource class, refer to the diagram at
19
- # {http://webmachine.basho.com/images/http-headers-status-v3.png}.
20
- class Resource
21
- include Callbacks
22
- include Encodings
23
-
24
- attr_reader :request, :response
25
-
26
- # Creates a new {Resource}, initializing it with the request and
27
- # response. Note that you may still override {#initialize} to
28
- # initialize your resource. It will be called after the request
29
- # and response ivars are set.
30
- # @param [Request] request the request object
31
- # @param [Response] response the response object
32
- # @return [Resource] the new resource
33
- def self.new(request, response)
34
- instance = allocate
35
- instance.instance_variable_set(:@request, request)
36
- instance.instance_variable_set(:@response, response)
37
- instance.send :initialize
38
- instance
39
- end
40
-
41
- private
42
- # When no specific charsets are provided, this acts as an identity
43
- # on the response body. Probably deserves some refactoring.
44
- def charset_nop(x)
45
- x
46
- end
47
- end
48
- end
@@ -1,49 +0,0 @@
1
- module Webmachine
2
- # Represents an HTTP response from Webmachine.
3
- class Response
4
- # @return [Hash] Response headers that will be sent to the client
5
- attr_reader :headers
6
-
7
- # @return [Fixnum] The HTTP status code of the response
8
- attr_accessor :code
9
-
10
- # @return [String, #each] The response body
11
- attr_accessor :body
12
-
13
- # @return [true,false] Whether the response is a redirect
14
- attr_accessor :redirect
15
-
16
- # @return [Array] the list of states that were traversed
17
- attr_reader :trace
18
-
19
- # @return [Symbol] When an error has occurred, the last state the
20
- # FSM was in
21
- attr_accessor :end_state
22
-
23
- # @return [String] The error message when responding with an error
24
- # code
25
- attr_accessor :error
26
-
27
- # Creates a new Response object with the appropriate defaults.
28
- def initialize
29
- @headers = {}
30
- @trace = []
31
- self.code = 200
32
- self.redirect = false
33
- end
34
-
35
- # Indicate that the response should be a redirect. This is only
36
- # used when processing a POST request in {Callbacks#process_post}
37
- # to indicate that the client should request another resource
38
- # using GET. Either pass the URI of the target resource, or
39
- # manually set the Location header using {#headers}.
40
- # @param [String, URI] location the target of the redirection
41
- def do_redirect(location=nil)
42
- headers['Location'] = location.to_s if location
43
- self.redirect = true
44
- end
45
-
46
- alias :is_redirect? :redirect
47
- alias :redirect_to :do_redirect
48
- end
49
- end
@@ -1,27 +0,0 @@
1
- module Webmachine
2
- class StreamingEncoder
3
- def initialize(resource, encoder, charsetter, body)
4
- @resource, @encoder, @charsetter, @body = resource, encoder, charsetter, body
5
- end
6
- end
7
-
8
- class EnumerableEncoder < StreamingEncoder
9
- include Enumerable
10
-
11
- def each
12
- @body.each do |block|
13
- yield @resource.send(@encoder, @resource.send(@charsetter, block))
14
- end
15
- end
16
- end
17
-
18
- class CallableEncoder < StreamingEncoder
19
- def call
20
- @resource.send(@encoder, @resource.send(@charsetter, @body.call))
21
- end
22
-
23
- def to_proc
24
- method(:call).to_proc
25
- end
26
- end
27
- end
@@ -1,11 +0,0 @@
1
- require 'i18n'
2
-
3
- I18n.config.load_path << File.expand_path("../locale/en.yml", __FILE__)
4
-
5
- module Webmachine
6
- module Translation
7
- def t(key, options={})
8
- ::I18n.t(key, options.merge(:scope => :webmachine))
9
- end
10
- end
11
- end
@@ -1,4 +0,0 @@
1
- module Webmachine
2
- VERSION = "0.2.0"
3
- SERVER_STRING = "Webmachine-Ruby/#{VERSION}"
4
- end
@@ -1,21 +0,0 @@
1
- require 'webmachine/configuration'
2
- require 'webmachine/headers'
3
- require 'webmachine/request'
4
- require 'webmachine/response'
5
- require 'webmachine/errors'
6
- require 'webmachine/decision'
7
- require 'webmachine/streaming'
8
- require 'webmachine/adapters'
9
- require 'webmachine/dispatcher'
10
- require 'webmachine/resource'
11
- require 'webmachine/version'
12
-
13
- # Webmachine is a toolkit for making well-behaved HTTP applications.
14
- # It is based on the Erlang library of the same name.
15
- module Webmachine
16
- # Starts Webmachine serving requests
17
- def self.run
18
- configure unless configuration
19
- Adapters.const_get(configuration.adapter).run
20
- end
21
- end
@@ -1,16 +0,0 @@
1
- source :rubygems
2
-
3
- gemspec
4
-
5
- gem 'bundler'
6
-
7
- unless ENV['TRAVIS']
8
- gem 'guard-rspec'
9
- gem 'rb-fsevent'
10
- gem 'growl'
11
- gem 'growl_notify'
12
- end
13
-
14
- platforms :jruby do
15
- gem 'jruby-openssl'
16
- end
@@ -1,11 +0,0 @@
1
- gemset = ENV['RVM_GEMSET'] || 'webmachine'
2
- gemset = "@#{gemset}" unless gemset.to_s == ''
3
-
4
- rvms = %W[ 1.9.2 ].map {|v| "#{v}#{gemset}" }
5
-
6
- guard 'rspec', :cli => "--color --profile", :growl => true, :rvm => rvms do
7
- watch(%r{^lib/webmachine/locale/.+$}) { "spec" }
8
- watch(%r{^spec/.+_spec\.rb$})
9
- watch(%r{^lib/(.+)\.rb$}){ |m| "spec/#{m[1]}_spec.rb" }
10
- watch('spec/spec_helper.rb') { "spec" }
11
- end