webmachine 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +16 -0
- data/README.md +24 -0
- data/doc/Webmachine/Adapter.html +580 -0
- data/doc/Webmachine/Adapters.html +10 -9
- data/doc/Webmachine/Application.html +225 -72
- data/doc/Webmachine/CallableEncoder.html +23 -24
- data/doc/Webmachine/ChunkedBody.html +44 -29
- data/doc/Webmachine/Decision.html +8 -5
- data/doc/Webmachine/Dispatcher.html +103 -61
- data/doc/Webmachine/EnumerableEncoder.html +20 -25
- data/doc/Webmachine/Error.html +7 -6
- data/doc/Webmachine/FiberEncoder.html +16 -29
- data/doc/Webmachine/Headers.html +42 -30
- data/doc/Webmachine/InvalidResource.html +7 -13
- data/doc/Webmachine/MalformedRequest.html +8 -14
- data/doc/Webmachine/MediaType.html +153 -109
- data/doc/Webmachine/Request.html +844 -103
- data/doc/Webmachine/Resource.html +46 -48
- data/doc/Webmachine/Response.html +79 -50
- data/doc/Webmachine/StreamingEncoder.html +36 -23
- data/doc/Webmachine/Translation.html +21 -13
- data/doc/Webmachine.html +105 -82
- data/doc/_index.html +27 -34
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -10
- data/doc/file.README.html +113 -37
- data/doc/frames.html +1 -1
- data/doc/index.html +113 -37
- data/doc/js/app.js +4 -4
- data/doc/js/full_list.js +6 -0
- data/doc/method_list.html +269 -189
- data/lib/webmachine/adapters/mongrel.rb +5 -4
- data/lib/webmachine/decision/flow.rb +1 -1
- data/lib/webmachine/dispatcher.rb +1 -1
- data/lib/webmachine/request.rb +6 -3
- data/lib/webmachine/version.rb +1 -1
- data/spec/webmachine/adapters/mongrel_spec.rb +9 -0
- data/spec/webmachine/dispatcher_spec.rb +13 -0
- data/spec/webmachine/request_spec.rb +14 -9
- metadata +68 -992
- data/b/autospec +0 -16
- data/b/gpgen +0 -16
- data/b/guard +0 -16
- data/b/htmldiff +0 -16
- data/b/ldiff +0 -16
- data/b/mongrel_rails +0 -16
- data/b/rackup +0 -16
- data/b/rake +0 -16
- data/b/rake2thor +0 -16
- data/b/redcarpet +0 -16
- data/b/rspec +0 -16
- data/b/thor +0 -16
- data/b/yard +0 -16
- data/b/yardoc +0 -16
- data/b/yri +0 -16
- data/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
- data/doc/Webmachine/Adapters/Mongrel.html +0 -212
- data/doc/Webmachine/Adapters/Rack.html +0 -316
- data/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
- data/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
- data/doc/Webmachine/Adapters/WEBrick.html +0 -202
- data/doc/Webmachine/Configuration.html +0 -551
- data/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
- data/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
- data/doc/Webmachine/Decision/Conneg.html +0 -678
- data/doc/Webmachine/Decision/FSM.html +0 -648
- data/doc/Webmachine/Decision/Flow.html +0 -3989
- data/doc/Webmachine/Decision/Helpers.html +0 -733
- data/doc/Webmachine/Dispatcher/Route.html +0 -657
- data/doc/Webmachine/Resource/Authentication.html +0 -333
- data/doc/Webmachine/Resource/Callbacks.html +0 -3046
- data/doc/Webmachine/Resource/Encodings.html +0 -325
- data/doc/Webmachine/Trace/Call.html +0 -366
- data/doc/Webmachine/Trace/TraceResource.html +0 -627
- data/doc/Webmachine/Trace/Wrapper.html +0 -451
- data/doc/Webmachine/Trace.html +0 -108
- data/doc/top-level-namespace.html +0 -103
- data/lib/webmachine/adapter.rbc +0 -486
- data/lib/webmachine/adapters/mongrel.rbc +0 -2213
- data/lib/webmachine/adapters/rack.rbc +0 -1082
- data/lib/webmachine/adapters/webrick.rbc +0 -2217
- data/lib/webmachine/adapters.rbc +0 -223
- data/lib/webmachine/application.rbc +0 -1143
- data/lib/webmachine/chunked_body.rbc +0 -552
- data/lib/webmachine/configuration.rbc +0 -570
- data/lib/webmachine/decision/conneg.rbc +0 -4428
- data/lib/webmachine/decision/flow.rbc +0 -8688
- data/lib/webmachine/decision/fsm.rbc +0 -1540
- data/lib/webmachine/decision/helpers.rbc +0 -2287
- data/lib/webmachine/decision.rbc +0 -194
- data/lib/webmachine/dispatcher/route.rbc +0 -1616
- data/lib/webmachine/dispatcher.rbc +0 -955
- data/lib/webmachine/errors.rbc +0 -625
- data/lib/webmachine/fiber18.rbc +0 -1251
- data/lib/webmachine/headers.rbc +0 -919
- data/lib/webmachine/media_type.rbc +0 -1946
- data/lib/webmachine/request.rbc +0 -1949
- data/lib/webmachine/resource/authentication.rbc +0 -510
- data/lib/webmachine/resource/callbacks.rbc +0 -2602
- data/lib/webmachine/resource/encodings.rbc +0 -746
- data/lib/webmachine/resource.rbc +0 -511
- data/lib/webmachine/response.rbc +0 -602
- data/lib/webmachine/streaming.rbc +0 -1024
- data/lib/webmachine/translation.rbc +0 -393
- data/lib/webmachine/version.rbc +0 -161
- data/lib/webmachine.rbc +0 -389
- data/pkg/public/map.png +0 -0
- data/pkg/public/trace.html.erb +0 -54
- data/pkg/public/wmtrace.css +0 -107
- data/pkg/public/wmtrace.js +0 -713
- data/pkg/tests.org +0 -80
- data/pkg/trace/trace_resource.rb +0 -83
- data/pkg/trace.rb +0 -40
- data/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.2.0/Gemfile +0 -24
- data/pkg/webmachine-0.2.0/Guardfile +0 -11
- data/pkg/webmachine-0.2.0/README.md +0 -117
- data/pkg/webmachine-0.2.0/Rakefile +0 -31
- data/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
- data/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
- data/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
- data/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
- data/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
- data/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.2.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
- data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
- data/pkg/webmachine-0.2.0.gem +0 -0
- data/pkg/webmachine-0.3.0/Gemfile +0 -28
- data/pkg/webmachine-0.3.0/Guardfile +0 -11
- data/pkg/webmachine-0.3.0/README.md +0 -169
- data/pkg/webmachine-0.3.0/Rakefile +0 -41
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
- data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
- data/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
- data/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
- data/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
- data/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
- data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
- data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
- data/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
- data/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
- data/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
- data/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
- data/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
- data/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
- data/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
- data/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
- data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
- data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
- data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
- data/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
- data/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
- data/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
- data/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
- data/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
- data/pkg/webmachine-0.3.0/doc/_index.html +0 -478
- data/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
- data/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
- data/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
- data/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
- data/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
- data/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
- data/pkg/webmachine-0.3.0/doc/frames.html +0 -13
- data/pkg/webmachine-0.3.0/doc/index.html +0 -240
- data/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
- data/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
- data/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
- data/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
- data/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
- data/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
- data/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
- data/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
- data/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
- data/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
- data/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
- data/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
- data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
- data/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
- data/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
- data/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
- data/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
- data/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
- data/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
- data/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
- data/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
- data/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
- data/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
- data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
- data/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.3.0/spec/tests.org +0 -80
- data/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
- data/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
- data/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
- data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
- data/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
- data/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
- data/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
- data/pkg/webmachine-0.3.0.gem +0 -0
- data/pkg/webmachine-0.4.0/Gemfile +0 -30
- data/pkg/webmachine-0.4.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/README.md +0 -169
- data/pkg/webmachine-0.4.0/Rakefile +0 -41
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Rack.html +0 -316
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
- data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters.html +0 -120
- data/pkg/webmachine-0.4.0/doc/Webmachine/Application.html +0 -755
- data/pkg/webmachine-0.4.0/doc/Webmachine/CallableEncoder.html +0 -326
- data/pkg/webmachine-0.4.0/doc/Webmachine/ChunkedBody.html +0 -350
- data/pkg/webmachine-0.4.0/doc/Webmachine/Configuration.html +0 -551
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg.html +0 -678
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/FSM.html +0 -648
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Flow.html +0 -3989
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Helpers.html +0 -733
- data/pkg/webmachine-0.4.0/doc/Webmachine/Decision.html +0 -121
- data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher/Route.html +0 -657
- data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher.html +0 -530
- data/pkg/webmachine-0.4.0/doc/Webmachine/EnumerableEncoder.html +0 -276
- data/pkg/webmachine-0.4.0/doc/Webmachine/Error.html +0 -129
- data/pkg/webmachine-0.4.0/doc/Webmachine/FiberEncoder.html +0 -250
- data/pkg/webmachine-0.4.0/doc/Webmachine/Headers.html +0 -475
- data/pkg/webmachine-0.4.0/doc/Webmachine/InvalidResource.html +0 -139
- data/pkg/webmachine-0.4.0/doc/Webmachine/MalformedRequest.html +0 -141
- data/pkg/webmachine-0.4.0/doc/Webmachine/MediaType.html +0 -1406
- data/pkg/webmachine-0.4.0/doc/Webmachine/Request.html +0 -1048
- data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Authentication.html +0 -333
- data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
- data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Encodings.html +0 -325
- data/pkg/webmachine-0.4.0/doc/Webmachine/Resource.html +0 -457
- data/pkg/webmachine-0.4.0/doc/Webmachine/Response.html +0 -880
- data/pkg/webmachine-0.4.0/doc/Webmachine/StreamingEncoder.html +0 -465
- data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Call.html +0 -366
- data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/TraceResource.html +0 -627
- data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Wrapper.html +0 -451
- data/pkg/webmachine-0.4.0/doc/Webmachine/Trace.html +0 -108
- data/pkg/webmachine-0.4.0/doc/Webmachine/Translation.html +0 -236
- data/pkg/webmachine-0.4.0/doc/Webmachine.html +0 -836
- data/pkg/webmachine-0.4.0/doc/_index.html +0 -478
- data/pkg/webmachine-0.4.0/doc/class_list.html +0 -47
- data/pkg/webmachine-0.4.0/doc/css/common.css +0 -1
- data/pkg/webmachine-0.4.0/doc/css/full_list.css +0 -55
- data/pkg/webmachine-0.4.0/doc/css/style.css +0 -322
- data/pkg/webmachine-0.4.0/doc/file.README.html +0 -240
- data/pkg/webmachine-0.4.0/doc/file_list.html +0 -49
- data/pkg/webmachine-0.4.0/doc/frames.html +0 -13
- data/pkg/webmachine-0.4.0/doc/index.html +0 -240
- data/pkg/webmachine-0.4.0/doc/js/app.js +0 -205
- data/pkg/webmachine-0.4.0/doc/js/full_list.js +0 -167
- data/pkg/webmachine-0.4.0/doc/js/jquery.js +0 -16
- data/pkg/webmachine-0.4.0/doc/method_list.html +0 -1910
- data/pkg/webmachine-0.4.0/doc/top-level-namespace.html +0 -103
- data/pkg/webmachine-0.4.0/examples/application.rb +0 -35
- data/pkg/webmachine-0.4.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/lib/webmachine/adapter.rb +0 -36
- data/pkg/webmachine-0.4.0/lib/webmachine/adapters/mongrel.rb +0 -86
- data/pkg/webmachine-0.4.0/lib/webmachine/adapters/rack.rb +0 -69
- data/pkg/webmachine-0.4.0/lib/webmachine/adapters/webrick.rb +0 -89
- data/pkg/webmachine-0.4.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.4.0/lib/webmachine/application.rb +0 -108
- data/pkg/webmachine-0.4.0/lib/webmachine/chunked_body.rb +0 -43
- data/pkg/webmachine-0.4.0/lib/webmachine/configuration.rb +0 -40
- data/pkg/webmachine-0.4.0/lib/webmachine/decision/conneg.rb +0 -239
- data/pkg/webmachine-0.4.0/lib/webmachine/decision/flow.rb +0 -503
- data/pkg/webmachine-0.4.0/lib/webmachine/decision/fsm.rb +0 -70
- data/pkg/webmachine-0.4.0/lib/webmachine/decision/helpers.rb +0 -104
- data/pkg/webmachine-0.4.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher/route.rb +0 -126
- data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher.rb +0 -61
- data/pkg/webmachine-0.4.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.4.0/lib/webmachine/fiber18.rb +0 -88
- data/pkg/webmachine-0.4.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.4.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/lib/webmachine/media_type.rb +0 -120
- data/pkg/webmachine-0.4.0/lib/webmachine/request.rb +0 -141
- data/pkg/webmachine-0.4.0/lib/webmachine/resource/authentication.rb +0 -36
- data/pkg/webmachine-0.4.0/lib/webmachine/resource/callbacks.rb +0 -377
- data/pkg/webmachine-0.4.0/lib/webmachine/resource/encodings.rb +0 -37
- data/pkg/webmachine-0.4.0/lib/webmachine/resource.rb +0 -50
- data/pkg/webmachine-0.4.0/lib/webmachine/response.rb +0 -51
- data/pkg/webmachine-0.4.0/lib/webmachine/streaming.rb +0 -63
- data/pkg/webmachine-0.4.0/lib/webmachine/translation.rb +0 -18
- data/pkg/webmachine-0.4.0/lib/webmachine/version.rb +0 -8
- data/pkg/webmachine-0.4.0/lib/webmachine/version.rbc +0 -161
- data/pkg/webmachine-0.4.0/lib/webmachine.rb +0 -22
- data/pkg/webmachine-0.4.0/pkg/public/map.png +0 -0
- data/pkg/webmachine-0.4.0/pkg/public/trace.html.erb +0 -54
- data/pkg/webmachine-0.4.0/pkg/public/wmtrace.css +0 -107
- data/pkg/webmachine-0.4.0/pkg/public/wmtrace.js +0 -713
- data/pkg/webmachine-0.4.0/pkg/tests.org +0 -80
- data/pkg/webmachine-0.4.0/pkg/trace/trace_resource.rb +0 -83
- data/pkg/webmachine-0.4.0/pkg/trace.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Gemfile +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/README.md +0 -117
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Rakefile +0 -31
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Gemfile +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/README.md +0 -169
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Rakefile +0 -41
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/_index.html +0 -478
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/frames.html +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/index.html +0 -240
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
- 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
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/tests.org +0 -80
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
- data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0.gem +0 -0
- data/pkg/webmachine-0.4.0/spec/spec_helper.rb +0 -13
- data/pkg/webmachine-0.4.0/spec/webmachine/adapter_spec.rb +0 -40
- data/pkg/webmachine-0.4.0/spec/webmachine/adapters/mongrel_spec.rb +0 -22
- data/pkg/webmachine-0.4.0/spec/webmachine/adapters/rack_spec.rb +0 -90
- data/pkg/webmachine-0.4.0/spec/webmachine/adapters/webrick_spec.rb +0 -18
- data/pkg/webmachine-0.4.0/spec/webmachine/application_spec.rb +0 -73
- data/pkg/webmachine-0.4.0/spec/webmachine/chunked_body_spec.rb +0 -30
- data/pkg/webmachine-0.4.0/spec/webmachine/configuration_spec.rb +0 -27
- data/pkg/webmachine-0.4.0/spec/webmachine/decision/conneg_spec.rb +0 -159
- data/pkg/webmachine-0.4.0/spec/webmachine/decision/flow_spec.rb +0 -1032
- data/pkg/webmachine-0.4.0/spec/webmachine/decision/helpers_spec.rb +0 -116
- data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher/route_spec.rb +0 -166
- data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher_spec.rb +0 -59
- data/pkg/webmachine-0.4.0/spec/webmachine/errors_spec.rb +0 -13
- data/pkg/webmachine-0.4.0/spec/webmachine/headers_spec.rb +0 -20
- data/pkg/webmachine-0.4.0/spec/webmachine/media_type_spec.rb +0 -78
- data/pkg/webmachine-0.4.0/spec/webmachine/request_spec.rb +0 -186
- data/pkg/webmachine-0.4.0/spec/webmachine/resource/authentication_spec.rb +0 -68
- data/pkg/webmachine-0.4.0/webmachine.gemspec +0 -29
- data/pkg/webmachine-0.4.0.gem +0 -0
- data/spec/spec_helper.rbc +0 -438
- data/spec/webmachine/adapter_spec.rbc +0 -1059
- data/spec/webmachine/adapters/mongrel_spec.rbc +0 -748
- data/spec/webmachine/adapters/rack_spec.rbc +0 -2405
- data/spec/webmachine/adapters/webrick_spec.rbc +0 -653
- data/spec/webmachine/application_spec.rbc +0 -1979
- data/spec/webmachine/chunked_body_spec.rbc +0 -917
- data/spec/webmachine/configuration_spec.rbc +0 -874
- data/spec/webmachine/decision/conneg_spec.rbc +0 -4563
- data/spec/webmachine/decision/flow_spec.rbc +0 -31810
- data/spec/webmachine/decision/helpers_spec.rbc +0 -3742
- data/spec/webmachine/dispatcher/route_spec.rbc +0 -6354
- data/spec/webmachine/dispatcher_spec.rbc +0 -2143
- data/spec/webmachine/errors_spec.rbc +0 -387
- data/spec/webmachine/headers_spec.rbc +0 -678
- data/spec/webmachine/media_type_spec.rbc +0 -3298
- data/spec/webmachine/request_spec.rbc +0 -5948
- data/spec/webmachine/resource/authentication_spec.rbc +0 -2395
@@ -1,506 +0,0 @@
|
|
1
|
-
require 'time'
|
2
|
-
require 'digest/md5'
|
3
|
-
require 'webmachine/decision/conneg'
|
4
|
-
require 'webmachine/translation'
|
5
|
-
|
6
|
-
module Webmachine
|
7
|
-
module Decision
|
8
|
-
# This module encapsulates all of the decisions in Webmachine's
|
9
|
-
# flow-chart. These invoke {Webmachine::Resource::Callbacks} methods to
|
10
|
-
# determine the appropriate response code, headers, and body for
|
11
|
-
# the response.
|
12
|
-
#
|
13
|
-
# This module is included into {FSM}, which drives the processing
|
14
|
-
# of the chart.
|
15
|
-
# @see http://webmachine.basho.com/images/http-headers-status-v3.png
|
16
|
-
module Flow
|
17
|
-
# Version of the flow diagram
|
18
|
-
VERSION = 3
|
19
|
-
|
20
|
-
# The first state in flow diagram
|
21
|
-
START = :b13
|
22
|
-
|
23
|
-
# Separate content-negotiation logic from flow diagram.
|
24
|
-
include Conneg
|
25
|
-
|
26
|
-
# Extract error strings into locale files
|
27
|
-
include Translation
|
28
|
-
|
29
|
-
# Handles standard decisions where halting is allowed
|
30
|
-
def decision_test(test, value, iftrue, iffalse)
|
31
|
-
case test
|
32
|
-
when value
|
33
|
-
iftrue
|
34
|
-
when Fixnum # Allows callbacks to "halt" with a given response code
|
35
|
-
test
|
36
|
-
else
|
37
|
-
iffalse
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
# Service available?
|
42
|
-
def b13
|
43
|
-
decision_test(resource.service_available?, true, :b12, 503)
|
44
|
-
end
|
45
|
-
|
46
|
-
# Known method?
|
47
|
-
def b12
|
48
|
-
decision_test(resource.known_methods.include?(request.method), true, :b11, 501)
|
49
|
-
end
|
50
|
-
|
51
|
-
# URI too long?
|
52
|
-
def b11
|
53
|
-
decision_test(resource.uri_too_long?(request.uri), true, 414, :b10)
|
54
|
-
end
|
55
|
-
|
56
|
-
# Method allowed?
|
57
|
-
def b10
|
58
|
-
if resource.allowed_methods.include?(request.method)
|
59
|
-
:b9
|
60
|
-
else
|
61
|
-
response.headers["Allow"] = resource.allowed_methods.join(", ")
|
62
|
-
405
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Content-MD5 present?
|
67
|
-
def b9
|
68
|
-
request.content_md5 ? :b9a : :b9b
|
69
|
-
end
|
70
|
-
|
71
|
-
# Content-MD5 valid?
|
72
|
-
def b9a
|
73
|
-
case valid = resource.validate_content_checksum
|
74
|
-
when Fixnum
|
75
|
-
valid
|
76
|
-
when true
|
77
|
-
:b9b
|
78
|
-
when false
|
79
|
-
response.body = "Content-MD5 header does not match request body."
|
80
|
-
400
|
81
|
-
else # not_validated
|
82
|
-
if request.content_md5 == Digest::MD5.hexdigest(request.body)
|
83
|
-
:b9b
|
84
|
-
else
|
85
|
-
response.body = "Content-MD5 header does not match request body."
|
86
|
-
400
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
# Malformed?
|
92
|
-
def b9b
|
93
|
-
decision_test(resource.malformed_request?, true, 400, :b8)
|
94
|
-
end
|
95
|
-
|
96
|
-
# Authorized?
|
97
|
-
def b8
|
98
|
-
result = resource.is_authorized?(request.authorization)
|
99
|
-
case result
|
100
|
-
when true
|
101
|
-
:b7
|
102
|
-
when Fixnum
|
103
|
-
result
|
104
|
-
when String
|
105
|
-
response.headers['WWW-Authenticate'] = result
|
106
|
-
401
|
107
|
-
else
|
108
|
-
401
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
# Forbidden?
|
113
|
-
def b7
|
114
|
-
decision_test(resource.forbidden?, true, 403, :b6)
|
115
|
-
end
|
116
|
-
|
117
|
-
# Okay Content-* Headers?
|
118
|
-
def b6
|
119
|
-
decision_test(resource.valid_content_headers?(request.headers.grep(/content-/)), true, :b5, 501)
|
120
|
-
end
|
121
|
-
|
122
|
-
# Known Content-Type?
|
123
|
-
def b5
|
124
|
-
decision_test(resource.known_content_type?(request.content_type), true, :b4, 415)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Req Entity Too Large?
|
128
|
-
def b4
|
129
|
-
decision_test(resource.valid_entity_length?(request.content_length), true, :b3, 413)
|
130
|
-
end
|
131
|
-
|
132
|
-
# OPTIONS?
|
133
|
-
def b3
|
134
|
-
if request.method == "OPTIONS"
|
135
|
-
response.headers.merge!(resource.options)
|
136
|
-
200
|
137
|
-
else
|
138
|
-
:c3
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
# Accept exists?
|
143
|
-
def c3
|
144
|
-
if !request.accept
|
145
|
-
metadata['Content-Type'] = MediaType.parse(resource.content_types_provided.first.first)
|
146
|
-
:d4
|
147
|
-
else
|
148
|
-
:c4
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
# Acceptable media type available?
|
153
|
-
def c4
|
154
|
-
types = resource.content_types_provided.map {|pair| pair.first }
|
155
|
-
chosen_type = choose_media_type(types, request.accept)
|
156
|
-
if !chosen_type
|
157
|
-
406
|
158
|
-
else
|
159
|
-
metadata['Content-Type'] = chosen_type
|
160
|
-
:d4
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
# Accept-Language exists?
|
165
|
-
def d4
|
166
|
-
if !request.accept_language
|
167
|
-
if language = choose_language(resource.languages_provided, "*")
|
168
|
-
resource.language_chosen(language)
|
169
|
-
:e5
|
170
|
-
else
|
171
|
-
406
|
172
|
-
end
|
173
|
-
else
|
174
|
-
:d5
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# Acceptable language available?
|
179
|
-
def d5
|
180
|
-
if language = choose_language(resource.languages_provided, request.accept_language)
|
181
|
-
resource.language_chosen(language)
|
182
|
-
:e5
|
183
|
-
else
|
184
|
-
406
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
# Accept-Charset exists?
|
189
|
-
def e5
|
190
|
-
if !request.accept_charset
|
191
|
-
choose_charset(resource.charsets_provided, "*") ? :f6 : 406
|
192
|
-
else
|
193
|
-
:e6
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
# Acceptable Charset available?
|
198
|
-
def e6
|
199
|
-
choose_charset(resource.charsets_provided, request.accept_charset) ? :f6 : 406
|
200
|
-
end
|
201
|
-
|
202
|
-
# Accept-Encoding exists?
|
203
|
-
# (also, set content-type header here, now that charset is chosen)
|
204
|
-
def f6
|
205
|
-
chosen_type = metadata['Content-Type']
|
206
|
-
if chosen_charset = metadata['Charset']
|
207
|
-
chosen_type.params['charset'] = chosen_charset
|
208
|
-
end
|
209
|
-
response.headers['Content-Type'] = chosen_type.to_s
|
210
|
-
if !request.accept_encoding
|
211
|
-
choose_encoding(resource.encodings_provided, "identity;q=1.0,*;q=0.5") ? :g7 : 406
|
212
|
-
else
|
213
|
-
:f7
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
# Acceptable encoding available?
|
218
|
-
def f7
|
219
|
-
choose_encoding(resource.encodings_provided, request.accept_encoding) ? :g7 : 406
|
220
|
-
end
|
221
|
-
|
222
|
-
# Resource exists?
|
223
|
-
def g7
|
224
|
-
# This is the first place after all conneg, so set Vary here
|
225
|
-
response.headers['Vary'] = variances.join(", ") if variances.any?
|
226
|
-
decision_test(resource.resource_exists?, true, :g8, :h7)
|
227
|
-
end
|
228
|
-
|
229
|
-
# If-Match exists?
|
230
|
-
def g8
|
231
|
-
request.if_match ? :g9 : :h10
|
232
|
-
end
|
233
|
-
|
234
|
-
# If-Match: * exists?
|
235
|
-
def g9
|
236
|
-
request.if_match == "*" ? :h10 : :g11
|
237
|
-
end
|
238
|
-
|
239
|
-
# ETag in If-Match
|
240
|
-
def g11
|
241
|
-
request_etags = request.if_match.split(/\s*,\s*/).map {|etag| unquote_header(etag) }
|
242
|
-
request_etags.include?(resource.generate_etag) ? :h10 : 412
|
243
|
-
end
|
244
|
-
|
245
|
-
# If-Match exists?
|
246
|
-
def h7
|
247
|
-
(request.if_match && unquote_header(request.if_match) == '*') ? 412 : :i7
|
248
|
-
end
|
249
|
-
|
250
|
-
# If-Unmodified-Since exists?
|
251
|
-
def h10
|
252
|
-
request.if_unmodified_since ? :h11 : :i12
|
253
|
-
end
|
254
|
-
|
255
|
-
# If-Unmodified-Since is valid date?
|
256
|
-
def h11
|
257
|
-
begin
|
258
|
-
date = Time.httpdate(request.if_unmodified_since)
|
259
|
-
metadata['If-Unmodified-Since'] = date
|
260
|
-
rescue ArgumentError
|
261
|
-
:i12
|
262
|
-
else
|
263
|
-
:h12
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
|
-
# Last-Modified > I-UM-S?
|
268
|
-
def h12
|
269
|
-
resource.last_modified > metadata['If-Unmodified-Since'] ? 412 : :i12
|
270
|
-
end
|
271
|
-
|
272
|
-
# Moved permanently? (apply PUT to different URI)
|
273
|
-
def i4
|
274
|
-
case uri = resource.moved_permanently?
|
275
|
-
when String, URI
|
276
|
-
response.headers["Location"] = uri.to_s
|
277
|
-
301
|
278
|
-
when Fixnum
|
279
|
-
uri
|
280
|
-
else
|
281
|
-
:p3
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
# PUT?
|
286
|
-
def i7
|
287
|
-
request.method == "PUT" ? :i4 : :k7
|
288
|
-
end
|
289
|
-
|
290
|
-
# If-none-match exists?
|
291
|
-
def i12
|
292
|
-
request.if_none_match ? :i13 : :l13
|
293
|
-
end
|
294
|
-
|
295
|
-
# If-none-match: * exists?
|
296
|
-
def i13
|
297
|
-
request.if_none_match == "*" ? :j18 : :k13
|
298
|
-
end
|
299
|
-
|
300
|
-
# GET or HEAD?
|
301
|
-
def j18
|
302
|
-
%w{GET HEAD}.include?(request.method) ? 304 : 412
|
303
|
-
end
|
304
|
-
|
305
|
-
# Moved permanently?
|
306
|
-
def k5
|
307
|
-
case uri = resource.moved_permanently?
|
308
|
-
when String, URI
|
309
|
-
response.headers["Location"] = uri.to_s
|
310
|
-
301
|
311
|
-
when Fixnum
|
312
|
-
uri
|
313
|
-
else
|
314
|
-
:l5
|
315
|
-
end
|
316
|
-
end
|
317
|
-
|
318
|
-
# Previously existed?
|
319
|
-
def k7
|
320
|
-
decision_test(resource.previously_existed?, true, :k5, :l7)
|
321
|
-
end
|
322
|
-
|
323
|
-
# Etag in if-none-match?
|
324
|
-
def k13
|
325
|
-
request_etags = request.if_none_match.split(/\s*,\s*/).map {|etag| unquote_header(etag) }
|
326
|
-
request_etags.include?(resource.generate_etag) ? :j18 : :l13
|
327
|
-
end
|
328
|
-
|
329
|
-
# Moved temporarily?
|
330
|
-
def l5
|
331
|
-
case uri = resource.moved_temporarily?
|
332
|
-
when String, URI
|
333
|
-
response.headers["Location"] = uri.to_s
|
334
|
-
307
|
335
|
-
when Fixnum
|
336
|
-
uri
|
337
|
-
else
|
338
|
-
:m5
|
339
|
-
end
|
340
|
-
end
|
341
|
-
|
342
|
-
# POST?
|
343
|
-
def l7
|
344
|
-
request.method == "POST" ? :m7 : 404
|
345
|
-
end
|
346
|
-
|
347
|
-
# If-Modified-Since exists?
|
348
|
-
def l13
|
349
|
-
request.if_modified_since ? :l14 : :m16
|
350
|
-
end
|
351
|
-
|
352
|
-
# IMS is valid date?
|
353
|
-
def l14
|
354
|
-
begin
|
355
|
-
date = Time.httpdate(request.if_modified_since)
|
356
|
-
metadata['If-Modified-Since'] = date
|
357
|
-
rescue ArgumentError
|
358
|
-
:m16
|
359
|
-
else
|
360
|
-
:l15
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
# IMS > Now?
|
365
|
-
def l15
|
366
|
-
metadata['If-Modified-Since'] > Time.now ? :m16 : :l17
|
367
|
-
end
|
368
|
-
|
369
|
-
# Last-Modified > IMS?
|
370
|
-
def l17
|
371
|
-
resource.last_modified.nil? || resource.last_modified > metadata['If-Modified-Since'] ? :m16 : 304
|
372
|
-
end
|
373
|
-
|
374
|
-
# POST?
|
375
|
-
def m5
|
376
|
-
request.method == "POST" ? :n5 : 410
|
377
|
-
end
|
378
|
-
|
379
|
-
# Server allows POST to missing resource?
|
380
|
-
def m7
|
381
|
-
decision_test(resource.allow_missing_post?, true, :n11, 404)
|
382
|
-
end
|
383
|
-
|
384
|
-
# DELETE?
|
385
|
-
def m16
|
386
|
-
request.method == "DELETE" ? :m20 : :n16
|
387
|
-
end
|
388
|
-
|
389
|
-
# DELETE enacted immediately? (Also where DELETE is forced.)
|
390
|
-
def m20
|
391
|
-
decision_test(resource.delete_resource, true, :m20b, 500)
|
392
|
-
end
|
393
|
-
|
394
|
-
# Did the DELETE complete?
|
395
|
-
def m20b
|
396
|
-
decision_test(resource.delete_completed?, true, :o20, 202)
|
397
|
-
end
|
398
|
-
|
399
|
-
# Server allows POST to missing resource?
|
400
|
-
def n5
|
401
|
-
decision_test(resource.allow_missing_post?, true, :n11, 410)
|
402
|
-
end
|
403
|
-
|
404
|
-
# Redirect?
|
405
|
-
def n11
|
406
|
-
# Stage1
|
407
|
-
if resource.post_is_create?
|
408
|
-
case uri = resource.create_path
|
409
|
-
when nil
|
410
|
-
raise InvalidResource, t('create_path_nil', :class => resource.class)
|
411
|
-
when URI, String
|
412
|
-
base_uri = resource.base_uri || request.base_uri
|
413
|
-
new_uri = URI.join(base_uri.to_s, uri)
|
414
|
-
request.disp_path = new_uri.path
|
415
|
-
response.headers['Location'] = new_uri.to_s
|
416
|
-
result = accept_helper
|
417
|
-
return result if Fixnum === result
|
418
|
-
end
|
419
|
-
else
|
420
|
-
case result = resource.process_post
|
421
|
-
when true
|
422
|
-
encode_body_if_set
|
423
|
-
when Fixnum
|
424
|
-
return result
|
425
|
-
else
|
426
|
-
raise InvalidResource, t('process_post_invalid', :result => result)
|
427
|
-
end
|
428
|
-
end
|
429
|
-
if response.is_redirect?
|
430
|
-
if response.headers['Location']
|
431
|
-
303
|
432
|
-
else
|
433
|
-
raise InvalidResource, t('do_redirect')
|
434
|
-
end
|
435
|
-
else
|
436
|
-
:p11
|
437
|
-
end
|
438
|
-
end
|
439
|
-
|
440
|
-
# POST?
|
441
|
-
def n16
|
442
|
-
request.method == "POST" ? :n11 : :o16
|
443
|
-
end
|
444
|
-
|
445
|
-
# Conflict?
|
446
|
-
def o14
|
447
|
-
if resource.is_conflict?
|
448
|
-
409
|
449
|
-
else
|
450
|
-
res = accept_helper
|
451
|
-
(Fixnum === res) ? res : :p11
|
452
|
-
end
|
453
|
-
end
|
454
|
-
|
455
|
-
# PUT?
|
456
|
-
def o16
|
457
|
-
request.method == "PUT" ? :o14 : :o18
|
458
|
-
end
|
459
|
-
|
460
|
-
# Multiple representations?
|
461
|
-
# Also where body generation for GET and HEAD is done.
|
462
|
-
def o18
|
463
|
-
if request.method =~ /^(GET|HEAD)$/
|
464
|
-
add_caching_headers
|
465
|
-
content_type = metadata['Content-Type']
|
466
|
-
handler = resource.content_types_provided.find {|ct, _| content_type.type_matches?(MediaType.parse(ct)) }.last
|
467
|
-
result = resource.send(handler)
|
468
|
-
if Fixnum === result
|
469
|
-
result
|
470
|
-
else
|
471
|
-
response.body = result
|
472
|
-
encode_body
|
473
|
-
:o18b
|
474
|
-
end
|
475
|
-
else
|
476
|
-
:o18b
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
|
-
# Multiple choices?
|
481
|
-
def o18b
|
482
|
-
decision_test(resource.multiple_choices?, true, 300, 200)
|
483
|
-
end
|
484
|
-
|
485
|
-
# Response includes an entity?
|
486
|
-
def o20
|
487
|
-
has_response_body? ? :o18 : 204
|
488
|
-
end
|
489
|
-
|
490
|
-
# Conflict?
|
491
|
-
def p3
|
492
|
-
if resource.is_conflict?
|
493
|
-
409
|
494
|
-
else
|
495
|
-
res = accept_helper
|
496
|
-
(Fixnum === res) ? res : :p11
|
497
|
-
end
|
498
|
-
end
|
499
|
-
|
500
|
-
# New resource?
|
501
|
-
def p11
|
502
|
-
!response.headers["Location"] ? :o20 : 201
|
503
|
-
end
|
504
|
-
end
|
505
|
-
end
|
506
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
require 'webmachine/decision/helpers'
|
2
|
-
require 'webmachine/decision/fsm'
|
3
|
-
require 'webmachine/translation'
|
4
|
-
|
5
|
-
module Webmachine
|
6
|
-
module Decision
|
7
|
-
# Implements the finite-state machine described by the Webmachine
|
8
|
-
# sequence diagram.
|
9
|
-
class FSM
|
10
|
-
include Flow
|
11
|
-
include Helpers
|
12
|
-
include Translation
|
13
|
-
|
14
|
-
attr_reader :resource, :request, :response, :metadata
|
15
|
-
|
16
|
-
def initialize(resource, request, response)
|
17
|
-
@resource, @request, @response = resource, request, response
|
18
|
-
@metadata = {}
|
19
|
-
end
|
20
|
-
|
21
|
-
# Processes the request, iteratively invoking the decision methods in {Flow}.
|
22
|
-
def run
|
23
|
-
begin
|
24
|
-
state = Flow::START
|
25
|
-
loop do
|
26
|
-
response.trace << state
|
27
|
-
result = send(state)
|
28
|
-
case result
|
29
|
-
when Fixnum # Response code
|
30
|
-
respond(result)
|
31
|
-
break
|
32
|
-
when Symbol # Next state
|
33
|
-
state = result
|
34
|
-
else # You bwoke it
|
35
|
-
raise InvalidResource, t('fsm_broke', :state => state, :result => result.inspect)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
rescue MalformedRequest => malformed
|
39
|
-
Webmachine.render_error(400, request, response, :message => malformed.message)
|
40
|
-
respond(400)
|
41
|
-
rescue => e # Handle all exceptions without crashing the server
|
42
|
-
error_response(e, state)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
def respond(code, headers={})
|
48
|
-
response.headers.merge!(headers)
|
49
|
-
end_time = Time.now
|
50
|
-
case code
|
51
|
-
when 404
|
52
|
-
Webmachine.render_error(code, request, response)
|
53
|
-
when 304
|
54
|
-
response.headers.delete('Content-Type')
|
55
|
-
add_caching_headers
|
56
|
-
end
|
57
|
-
response.code = code
|
58
|
-
resource.finish_request
|
59
|
-
# TODO: add logging/tracing
|
60
|
-
end
|
61
|
-
|
62
|
-
# Renders a 500 error by capturing the exception information.
|
63
|
-
def error_response(exception, state)
|
64
|
-
response.error = [exception.message, exception.backtrace].flatten.join("\n ")
|
65
|
-
response.end_state = state
|
66
|
-
Webmachine.render_error(500, request, response)
|
67
|
-
respond(500)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
@@ -1,104 +0,0 @@
|
|
1
|
-
require 'webmachine/streaming'
|
2
|
-
require 'webmachine/media_type'
|
3
|
-
|
4
|
-
module Webmachine
|
5
|
-
module Decision
|
6
|
-
# Methods that assist the Decision {Flow}.
|
7
|
-
module Helpers
|
8
|
-
# Pattern for quoted headers
|
9
|
-
QUOTED = /^"(.*)"$/
|
10
|
-
|
11
|
-
# Determines if the response has a body/entity set.
|
12
|
-
def has_response_body?
|
13
|
-
!response.body.nil? && !response.body.empty?
|
14
|
-
end
|
15
|
-
|
16
|
-
# If the response body exists, encode it.
|
17
|
-
# @see #encode_body
|
18
|
-
def encode_body_if_set
|
19
|
-
encode_body if has_response_body?
|
20
|
-
end
|
21
|
-
|
22
|
-
# Encodes the body in the selected charset and encoding.
|
23
|
-
def encode_body
|
24
|
-
body = response.body
|
25
|
-
chosen_charset = metadata['Charset']
|
26
|
-
chosen_encoding = metadata['Content-Encoding']
|
27
|
-
charsetter = resource.charsets_provided && resource.charsets_provided.find {|c,_| c == chosen_charset }.last || :charset_nop
|
28
|
-
encoder = resource.encodings_provided[chosen_encoding]
|
29
|
-
response.body = case body
|
30
|
-
when String # 1.8 treats Strings as Enumerable
|
31
|
-
resource.send(encoder, resource.send(charsetter, body))
|
32
|
-
when Fiber
|
33
|
-
FiberEncoder.new(resource, encoder, charsetter, body)
|
34
|
-
when Enumerable
|
35
|
-
EnumerableEncoder.new(resource, encoder, charsetter, body)
|
36
|
-
else
|
37
|
-
if body.respond_to?(:call)
|
38
|
-
CallableEncoder.new(resource, encoder, charsetter, body)
|
39
|
-
else
|
40
|
-
resource.send(encoder, resource.send(charsetter, body))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
if String === response.body
|
44
|
-
response.headers['Content-Length'] = response.body.respond_to?(:bytesize) ? response.body.bytesize.to_s : response.body.length.to_s
|
45
|
-
else
|
46
|
-
response.headers.delete 'Content-Length'
|
47
|
-
response.headers['Transfer-Encoding'] = 'chunked'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Ensures that a header is quoted (like ETag)
|
52
|
-
def ensure_quoted_header(value)
|
53
|
-
if value =~ QUOTED
|
54
|
-
value
|
55
|
-
else
|
56
|
-
'"' << value << '"'
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# Unquotes request headers (like ETag)
|
61
|
-
def unquote_header(value)
|
62
|
-
if value =~ QUOTED
|
63
|
-
$1
|
64
|
-
else
|
65
|
-
value
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
# Assists in receiving request bodies
|
70
|
-
def accept_helper
|
71
|
-
content_type = MediaType.parse(request.content_type || 'application/octet-stream')
|
72
|
-
acceptable = resource.content_types_accepted.find {|ct, _| content_type.match?(ct) }
|
73
|
-
if acceptable
|
74
|
-
resource.send(acceptable.last)
|
75
|
-
else
|
76
|
-
415
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# Computes the entries for the 'Vary' response header
|
81
|
-
def variances
|
82
|
-
resource.variances.tap do |v|
|
83
|
-
v.unshift "Accept-Language" if resource.languages_provided.size > 1
|
84
|
-
v.unshift "Accept-Charset" if resource.charsets_provided && resource.charsets_provided.size > 1
|
85
|
-
v.unshift "Accept-Encoding" if resource.encodings_provided.size > 1
|
86
|
-
v.unshift "Accept" if resource.content_types_provided.size > 1
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# Adds caching-related headers to the response.
|
91
|
-
def add_caching_headers
|
92
|
-
if etag = resource.generate_etag
|
93
|
-
response.headers['ETag'] = ensure_quoted_header(etag)
|
94
|
-
end
|
95
|
-
if expires = resource.expires
|
96
|
-
response.headers['Expires'] = expires.httpdate
|
97
|
-
end
|
98
|
-
if modified = resource.last_modified
|
99
|
-
response.headers['Last-Modified'] = modified.httpdate
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'webmachine/decision/helpers'
|
2
|
-
require 'webmachine/decision/conneg'
|
3
|
-
require 'webmachine/decision/flow'
|
4
|
-
require 'webmachine/decision/fsm'
|
5
|
-
|
6
|
-
module Webmachine
|
7
|
-
# This module encapsulates the logic related to delivering the
|
8
|
-
# proper HTTP response, given the constraints of the {Request} and
|
9
|
-
# the {Resource} which is being processed.
|
10
|
-
module Decision
|
11
|
-
end
|
12
|
-
end
|