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,1032 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Webmachine::Decision::Flow do
|
4
|
-
subject { Webmachine::Decision::FSM.new(resource, request, response) }
|
5
|
-
let(:method) { 'GET' }
|
6
|
-
let(:uri) { URI.parse("http://localhost/") }
|
7
|
-
let(:headers) { Webmachine::Headers.new }
|
8
|
-
let(:body) { "" }
|
9
|
-
let(:request) { Webmachine::Request.new(method, uri, headers, body) }
|
10
|
-
let(:response) { Webmachine::Response.new }
|
11
|
-
let(:default_resource) { resource_with }
|
12
|
-
let(:missing_resource) { missing_resource_with }
|
13
|
-
|
14
|
-
def resource_with(&block)
|
15
|
-
klass = Class.new(Webmachine::Resource) do
|
16
|
-
def to_html; "test resource"; end
|
17
|
-
end
|
18
|
-
klass.module_eval(&block) if block_given?
|
19
|
-
klass.new(request, response)
|
20
|
-
end
|
21
|
-
|
22
|
-
def missing_resource_with(&block)
|
23
|
-
resource_with do
|
24
|
-
def resource_exists?; false; end
|
25
|
-
self.module_eval(&block) if block
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe "#b13 (Service Available?)" do
|
30
|
-
let(:resource) do
|
31
|
-
resource_with do
|
32
|
-
attr_accessor :available
|
33
|
-
def service_available?; @available; end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should respond with 503 when the service is unavailable" do
|
38
|
-
resource.available = false
|
39
|
-
subject.run
|
40
|
-
response.code.should == 503
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
describe "#b12 (Known method?)" do
|
45
|
-
let(:resource) do
|
46
|
-
resource_with do
|
47
|
-
def known_methods; ['HEAD']; end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
it "should respond with 501 when the method is unknown" do
|
52
|
-
subject.run
|
53
|
-
response.code.should == 501
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe "#b11 (URI too long?)" do
|
58
|
-
let(:resource) do
|
59
|
-
resource_with do
|
60
|
-
def uri_too_long?(uri); true; end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
it "should respond with 414 when the URI is too long" do
|
65
|
-
subject.run
|
66
|
-
response.code.should == 414
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
describe "#b10 (Method allowed?)" do
|
71
|
-
let(:resource) do
|
72
|
-
resource_with do
|
73
|
-
def allowed_methods; ['POST']; end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
it "should respond with 405 when the method is not allowed" do
|
78
|
-
subject.run
|
79
|
-
response.code.should == 405
|
80
|
-
response.headers['Allow'].should == "POST"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
describe "#b9 (Malformed request?)" do
|
85
|
-
let(:resource) { resource_with { def malformed_request?; true; end } }
|
86
|
-
|
87
|
-
it "should respond with 400 when the request is malformed" do
|
88
|
-
subject.run
|
89
|
-
response.code.should == 400
|
90
|
-
end
|
91
|
-
|
92
|
-
context "when the Content-MD5 header is present" do
|
93
|
-
let(:resource) do
|
94
|
-
resource_with do
|
95
|
-
def allowed_methods; ['POST']; end;
|
96
|
-
def process_post; true; end;
|
97
|
-
attr_accessor :validation
|
98
|
-
def validate_content_checksum; @validation; end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
let(:method) { "POST" }
|
103
|
-
let(:body) { "This is the body." }
|
104
|
-
let(:headers) { Webmachine::Headers["Content-Type" => "text/plain"] }
|
105
|
-
|
106
|
-
it "should respond with 400 when the request body does not match the header" do
|
107
|
-
headers['Content-MD5'] = "thiswillnotmatchthehash"
|
108
|
-
subject.run
|
109
|
-
response.code.should == 400
|
110
|
-
end
|
111
|
-
|
112
|
-
it "should respond with 400 when the resource invalidates the checksum" do
|
113
|
-
resource.validation = false
|
114
|
-
headers['Content-MD5'] = "thiswillnotmatchthehash"
|
115
|
-
subject.run
|
116
|
-
response.code.should == 400
|
117
|
-
end
|
118
|
-
|
119
|
-
it "should not respond with 400 when the resource validates the checksum" do
|
120
|
-
resource.validation = true
|
121
|
-
headers['Content-MD5'] = "thiswillnotmatchthehash"
|
122
|
-
subject.run
|
123
|
-
response.code.should_not == 400
|
124
|
-
end
|
125
|
-
|
126
|
-
it "should respond with the given code when the resource returns a code while validating" do
|
127
|
-
resource.validation = 500
|
128
|
-
headers['Content-MD5'] = "thiswillnotmatchthehash"
|
129
|
-
subject.run
|
130
|
-
response.code.should == 500
|
131
|
-
end
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
describe "#b8 (Authorized?)" do
|
136
|
-
let(:resource) { resource_with { attr_accessor :auth; def is_authorized?(header); @auth; end } }
|
137
|
-
|
138
|
-
it "should reply with 401 when the client is unauthorized" do
|
139
|
-
resource.auth = false
|
140
|
-
subject.run
|
141
|
-
response.code.should == 401
|
142
|
-
end
|
143
|
-
|
144
|
-
it "should reply with 401 when the resource gives a challenge" do
|
145
|
-
resource.auth = "Basic realm=Webmachine"
|
146
|
-
subject.run
|
147
|
-
response.code.should == 401
|
148
|
-
response.headers['WWW-Authenticate'].should == "Basic realm=Webmachine"
|
149
|
-
end
|
150
|
-
|
151
|
-
it "should halt with the given code when the resource returns a status code" do
|
152
|
-
resource.auth = 400
|
153
|
-
subject.run
|
154
|
-
response.code.should == 400
|
155
|
-
end
|
156
|
-
|
157
|
-
it "should not reply with 401 when the client is authorized" do
|
158
|
-
resource.auth = true
|
159
|
-
subject.run
|
160
|
-
response.code.should_not == 401
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
describe "#b7 (Forbidden?)" do
|
165
|
-
let(:resource) { resource_with { attr_accessor :forbid; def forbidden?; @forbid; end } }
|
166
|
-
|
167
|
-
it "should reply with 403 when the request is forbidden" do
|
168
|
-
resource.forbid = true
|
169
|
-
subject.run
|
170
|
-
response.code.should == 403
|
171
|
-
end
|
172
|
-
|
173
|
-
it "should not reply with 403 when the request is permitted" do
|
174
|
-
resource.forbid = false
|
175
|
-
subject.run
|
176
|
-
response.code.should_not == 403
|
177
|
-
end
|
178
|
-
|
179
|
-
it "should halt with the given code when the resource returns a status code" do
|
180
|
-
resource.forbid = 400
|
181
|
-
subject.run
|
182
|
-
response.code.should == 400
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
describe "#b6 (Unsupported Content-* header?)" do
|
187
|
-
let(:resource) do
|
188
|
-
resource_with do
|
189
|
-
def valid_content_headers?(contents)
|
190
|
-
contents['Content-Fail'].nil?
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
it "should reply with 501 when an invalid Content-* header is present" do
|
196
|
-
headers['Content-Fail'] = "yup"
|
197
|
-
subject.run
|
198
|
-
response.code.should == 501
|
199
|
-
end
|
200
|
-
|
201
|
-
it "should not reply with 501 when all Content-* headers are valid" do
|
202
|
-
subject.run
|
203
|
-
response.code.should_not == 501
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
describe "#b5 (Known Content-Type?)" do
|
208
|
-
let(:method) { "POST" }
|
209
|
-
let(:body) { "This is the body." }
|
210
|
-
let(:resource) do
|
211
|
-
resource_with do
|
212
|
-
def known_content_type?(type) type !~ /unknown/; end;
|
213
|
-
def process_post; true; end
|
214
|
-
def allowed_methods; %w{POST}; end
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
before { headers['Content-Length'] = body.length.to_s }
|
219
|
-
|
220
|
-
it "should reply with 415 when the Content-Type is unknown" do
|
221
|
-
headers['Content-Type'] = "application/x-unknown-type"
|
222
|
-
subject.run
|
223
|
-
response.code.should == 415
|
224
|
-
end
|
225
|
-
|
226
|
-
it "should not reply with 415 when the Content-Type is known" do
|
227
|
-
headers['Content-Type'] = "text/plain"
|
228
|
-
subject.run
|
229
|
-
response.code.should_not == 415
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
describe "#b4 (Request entity too large?)" do
|
234
|
-
let(:resource) do
|
235
|
-
resource_with do
|
236
|
-
def allowed_methods; %w{POST}; end
|
237
|
-
def process_post; true; end
|
238
|
-
def valid_entity_length?(length); length.to_i < 100; end
|
239
|
-
end
|
240
|
-
end
|
241
|
-
let(:method) { "POST" }
|
242
|
-
before { headers['Content-Type'] = "text/plain"; headers['Content-Length'] = body.size.to_s }
|
243
|
-
|
244
|
-
context "when the request body is too large" do
|
245
|
-
let(:body) { "Big" * 100 }
|
246
|
-
it "should reply with 413" do
|
247
|
-
subject.run
|
248
|
-
response.code.should == 413
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|
252
|
-
context "when the request body is not too large" do
|
253
|
-
let(:body) { "small" }
|
254
|
-
|
255
|
-
it "should not reply with 413" do
|
256
|
-
subject.run
|
257
|
-
response.code.should_not == 413
|
258
|
-
end
|
259
|
-
end
|
260
|
-
end
|
261
|
-
|
262
|
-
describe "#b3 (OPTIONS?)" do
|
263
|
-
let(:method){ "OPTIONS" }
|
264
|
-
let(:resource){ resource_with { def allowed_methods; %w[GET HEAD OPTIONS]; end } }
|
265
|
-
it "should reply with 200 when the request method is OPTIONS" do
|
266
|
-
subject.run
|
267
|
-
response.code.should == 200
|
268
|
-
end
|
269
|
-
end
|
270
|
-
|
271
|
-
describe "#c3, #c4 (Acceptable media types)" do
|
272
|
-
let(:resource) { default_resource }
|
273
|
-
context "when the Accept header exists" do
|
274
|
-
it "should reply with 406 when the type is unacceptable" do
|
275
|
-
headers['Accept'] = "text/plain"
|
276
|
-
subject.run
|
277
|
-
response.code.should == 406
|
278
|
-
end
|
279
|
-
|
280
|
-
it "should not reply with 406 when the type is acceptable" do
|
281
|
-
headers['Accept'] = "text/*"
|
282
|
-
subject.run
|
283
|
-
response.code.should_not == 406
|
284
|
-
response.headers['Content-Type'].should == "text/html"
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
288
|
-
context "when the Accept header does not exist" do
|
289
|
-
it "should not negotiate a media type" do
|
290
|
-
headers['Accept'].should be_nil
|
291
|
-
subject.should_not_receive(:c4)
|
292
|
-
subject.run
|
293
|
-
response.headers['Content-Type'].should == 'text/html'
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
|
-
describe "#d4, #d5 (Acceptable languages)" do
|
299
|
-
let(:resource) { resource_with { def languages_provided; %w{en-US fr}; end } }
|
300
|
-
context "when the Accept-Language header exists" do
|
301
|
-
it "should reply with 406 when the language is unacceptable" do
|
302
|
-
headers['Accept-Language'] = "es, de"
|
303
|
-
subject.run
|
304
|
-
response.code.should == 406
|
305
|
-
end
|
306
|
-
|
307
|
-
it "should not reply with 406 when the language is acceptable" do
|
308
|
-
headers['Accept-Language'] = "en-GB, en;q=0.7"
|
309
|
-
subject.run
|
310
|
-
response.code.should_not == 406
|
311
|
-
response.headers['Content-Language'].should == "en-US"
|
312
|
-
resource.instance_variable_get(:@language).should == 'en-US'
|
313
|
-
end
|
314
|
-
end
|
315
|
-
|
316
|
-
context "when the Accept-Language header is absent" do
|
317
|
-
it "should not negotiate the language" do
|
318
|
-
headers['Accept-Language'].should be_nil
|
319
|
-
subject.should_not_receive(:d5)
|
320
|
-
subject.run
|
321
|
-
response.headers['Content-Language'].should == 'en-US'
|
322
|
-
resource.instance_variable_get(:@language).should == 'en-US'
|
323
|
-
end
|
324
|
-
end
|
325
|
-
end
|
326
|
-
|
327
|
-
describe "#e5, #e6 (Acceptable charsets)" do
|
328
|
-
let(:resource) do
|
329
|
-
resource_with do
|
330
|
-
def charsets_provided
|
331
|
-
[["iso8859-1", :to_iso],["utf-8", :to_utf]];
|
332
|
-
end
|
333
|
-
def to_iso(chunk); chunk; end
|
334
|
-
def to_utf(chunk); chunk; end
|
335
|
-
end
|
336
|
-
end
|
337
|
-
|
338
|
-
context "when the Accept-Charset header exists" do
|
339
|
-
it "should reply with 406 when the charset is unacceptable" do
|
340
|
-
headers['Accept-Charset'] = "utf-16"
|
341
|
-
subject.run
|
342
|
-
response.code.should == 406
|
343
|
-
end
|
344
|
-
|
345
|
-
it "should not reply with 406 when the charset is acceptable" do
|
346
|
-
headers['Accept-Charset'] = "iso8859-1"
|
347
|
-
subject.run
|
348
|
-
response.code.should_not == 406
|
349
|
-
response.headers['Content-Type'].should == "text/html;charset=iso8859-1"
|
350
|
-
end
|
351
|
-
end
|
352
|
-
|
353
|
-
context "when the Accept-Charset header is absent" do
|
354
|
-
it "should not negotiate the language" do
|
355
|
-
headers['Accept-Charset'].should be_nil
|
356
|
-
subject.should_not_receive(:e6)
|
357
|
-
subject.run
|
358
|
-
response.headers['Content-Type'].should == 'text/html;charset=iso8859-1'
|
359
|
-
end
|
360
|
-
end
|
361
|
-
end
|
362
|
-
|
363
|
-
describe "#f6, #f7 (Acceptable encodings)" do
|
364
|
-
let(:resource) do
|
365
|
-
resource_with do
|
366
|
-
def encodings_provided
|
367
|
-
super.merge("gzip" => :encode_gzip)
|
368
|
-
end
|
369
|
-
end
|
370
|
-
end
|
371
|
-
|
372
|
-
context "when the Accept-Encoding header is present" do
|
373
|
-
it "should reply with 406 if the encoding is unacceptable" do
|
374
|
-
headers['Accept-Encoding'] = 'deflate, identity;q=0.0'
|
375
|
-
subject.run
|
376
|
-
response.code.should == 406
|
377
|
-
end
|
378
|
-
|
379
|
-
it "should not reply with 406 if the encoding is acceptable" do
|
380
|
-
headers['Accept-Encoding'] = 'gzip, deflate'
|
381
|
-
subject.run
|
382
|
-
response.code.should_not == 406
|
383
|
-
response.headers['Content-Encoding'].should == 'gzip'
|
384
|
-
# It should be compressed
|
385
|
-
response.body.should_not == 'test resource'
|
386
|
-
end
|
387
|
-
end
|
388
|
-
|
389
|
-
context "when the Accept-Encoding header is not present" do
|
390
|
-
it "should not negotiate an encoding" do
|
391
|
-
headers['Accept-Encoding'].should be_nil
|
392
|
-
subject.should_not_receive(:f7)
|
393
|
-
subject.run
|
394
|
-
response.code.should_not == 406
|
395
|
-
# It should not be compressed
|
396
|
-
response.body.should == 'test resource'
|
397
|
-
end
|
398
|
-
end
|
399
|
-
end
|
400
|
-
|
401
|
-
describe "#g7 (Resource exists?)" do
|
402
|
-
let(:resource) { resource_with { attr_accessor :exist; def resource_exists?; @exist; end } }
|
403
|
-
|
404
|
-
it "should not enter conditional requests if missing (and eventually reply with 404)" do
|
405
|
-
resource.exist = false
|
406
|
-
subject.should_not_receive(:g8)
|
407
|
-
subject.run
|
408
|
-
response.code.should == 404
|
409
|
-
end
|
410
|
-
|
411
|
-
it "should not reply with 404 if it does exist" do
|
412
|
-
resource.exist = true
|
413
|
-
subject.should_not_receive(:h7)
|
414
|
-
subject.run
|
415
|
-
response.code.should_not == 404
|
416
|
-
end
|
417
|
-
end
|
418
|
-
|
419
|
-
# Conditional requests/preconditions
|
420
|
-
describe "#g8, #g9, #g10 (ETag match)" do
|
421
|
-
let(:resource) { resource_with { def generate_etag; "etag"; end } }
|
422
|
-
it "should skip ETag matching when If-Match is missing" do
|
423
|
-
headers['If-Match'].should be_nil
|
424
|
-
subject.should_not_receive(:g9)
|
425
|
-
subject.should_not_receive(:g11)
|
426
|
-
subject.run
|
427
|
-
response.code.should_not == 412
|
428
|
-
end
|
429
|
-
it "should not reply with 304 when If-Match is *" do
|
430
|
-
headers['If-Match'] = "*"
|
431
|
-
subject.run
|
432
|
-
response.code.should_not == 412
|
433
|
-
end
|
434
|
-
it "should reply with 412 if the ETag is not in If-Match" do
|
435
|
-
headers['If-Match'] = '"notetag"'
|
436
|
-
subject.run
|
437
|
-
response.code.should == 412
|
438
|
-
end
|
439
|
-
it "should not reply with 412 if the ETag is in If-Match" do
|
440
|
-
headers['If-Match'] = '"etag"'
|
441
|
-
subject.run
|
442
|
-
response.code.should_not == 412
|
443
|
-
end
|
444
|
-
end
|
445
|
-
|
446
|
-
describe "#h10, #h11, #h12 (If-Unmodified-Since match [IUMS])" do
|
447
|
-
let(:resource) { resource_with { attr_accessor :now; def last_modified; @now; end } }
|
448
|
-
before { @now = resource.now = Time.now }
|
449
|
-
|
450
|
-
it "should skip LM matching if IUMS is missing" do
|
451
|
-
headers['If-Unmodified-Since'].should be_nil
|
452
|
-
subject.should_not_receive(:h11)
|
453
|
-
subject.should_not_receive(:h12)
|
454
|
-
subject.run
|
455
|
-
response.code.should_not == 412
|
456
|
-
end
|
457
|
-
|
458
|
-
it "should skip LM matching if IUMS is an invalid date" do
|
459
|
-
headers['If-Unmodified-Since'] = "garbage"
|
460
|
-
subject.should_not_receive(:h12)
|
461
|
-
subject.run
|
462
|
-
response.code.should_not == 412
|
463
|
-
end
|
464
|
-
|
465
|
-
it "should not reply with 412 if LM is <= IUMS" do
|
466
|
-
headers['If-Unmodified-Since'] = (@now + 100).httpdate
|
467
|
-
subject.run
|
468
|
-
response.code.should_not == 412
|
469
|
-
end
|
470
|
-
|
471
|
-
it "should reply with 412 if LM is > IUMS" do
|
472
|
-
headers['If-Unmodified-Since'] = (@now - 100).httpdate
|
473
|
-
subject.run
|
474
|
-
response.code.should == 412
|
475
|
-
end
|
476
|
-
end
|
477
|
-
|
478
|
-
describe "#i12, #i13, #k13, #j18 (If-None-Match match)" do
|
479
|
-
let(:resource) do
|
480
|
-
resource_with do
|
481
|
-
def generate_etag; "etag"; end;
|
482
|
-
def process_post; true; end
|
483
|
-
def allowed_methods; %w{GET HEAD POST}; end
|
484
|
-
end
|
485
|
-
end
|
486
|
-
|
487
|
-
it "should skip ETag matching if If-None-Match is missing" do
|
488
|
-
headers['If-None-Match'].should be_nil
|
489
|
-
%w{i13 k13 j18}.each do |m|
|
490
|
-
subject.should_not_receive(m.to_sym)
|
491
|
-
end
|
492
|
-
subject.run
|
493
|
-
[304, 412].should_not include(response.code)
|
494
|
-
end
|
495
|
-
|
496
|
-
it "should not reply with 412 or 304 if the ETag is not in If-None-Match" do
|
497
|
-
headers['If-None-Match'] = '"notetag"'
|
498
|
-
subject.run
|
499
|
-
[304, 412].should_not include(response.code)
|
500
|
-
end
|
501
|
-
|
502
|
-
context "when the method is GET or HEAD" do
|
503
|
-
let(:method){ %w{GET HEAD}[rand(1)] }
|
504
|
-
it "should reply with 304 when If-None-Match is *" do
|
505
|
-
headers['If-None-Match'] = '*'
|
506
|
-
end
|
507
|
-
it "should reply with 304 when the ETag is in If-None-Match" do
|
508
|
-
headers['If-None-Match'] = '"etag", "foobar"'
|
509
|
-
end
|
510
|
-
after { subject.run; response.code.should == 304 }
|
511
|
-
end
|
512
|
-
|
513
|
-
context "when the method is not GET or HEAD" do
|
514
|
-
let(:method){ "POST" }
|
515
|
-
let(:body) { "This is the body." }
|
516
|
-
let(:headers){ Webmachine::Headers["Content-Type" => "text/plain"] }
|
517
|
-
|
518
|
-
it "should reply with 412 when If-None-Match is *" do
|
519
|
-
headers['If-None-Match'] = '*'
|
520
|
-
end
|
521
|
-
|
522
|
-
it "should reply with 412 when the ETag is in If-None-Match" do
|
523
|
-
headers['If-None-Match'] = '"etag"'
|
524
|
-
end
|
525
|
-
after { subject.run; response.code.should == 412 }
|
526
|
-
end
|
527
|
-
end
|
528
|
-
|
529
|
-
describe "#l13, #l14, #l15, #l17 (If-Modified-Since match)" do
|
530
|
-
let(:resource) { resource_with { attr_accessor :now; def last_modified; @now; end } }
|
531
|
-
before { @now = resource.now = Time.now }
|
532
|
-
it "should skip LM matching if IMS is missing" do
|
533
|
-
headers['If-Modified-Since'].should be_nil
|
534
|
-
%w{l14 l15 l17}.each do |m|
|
535
|
-
subject.should_not_receive(m.to_sym)
|
536
|
-
end
|
537
|
-
subject.run
|
538
|
-
response.code.should_not == 304
|
539
|
-
end
|
540
|
-
|
541
|
-
it "should skip LM matching if IMS is an invalid date" do
|
542
|
-
headers['If-Modified-Since'] = "garbage"
|
543
|
-
%w{l15 l17}.each do |m|
|
544
|
-
subject.should_not_receive(m.to_sym)
|
545
|
-
end
|
546
|
-
subject.run
|
547
|
-
response.code.should_not == 304
|
548
|
-
end
|
549
|
-
|
550
|
-
it "should skip LM matching if IMS is later than current time" do
|
551
|
-
headers['If-Modified-Since'] = (@now + 1000).httpdate
|
552
|
-
subject.should_not_receive(:l17)
|
553
|
-
subject.run
|
554
|
-
response.code.should_not == 304
|
555
|
-
end
|
556
|
-
|
557
|
-
it "should reply with 304 if LM is <= IMS" do
|
558
|
-
headers['If-Modified-Since'] = (@now - 1).httpdate
|
559
|
-
resource.now = @now - 1000
|
560
|
-
subject.run
|
561
|
-
response.code.should == 304
|
562
|
-
end
|
563
|
-
|
564
|
-
it "should not reply with 304 if LM is > IMS" do
|
565
|
-
headers['If-Modified-Since'] = (@now - 1000).httpdate
|
566
|
-
subject.run
|
567
|
-
response.code.should_not == 304
|
568
|
-
end
|
569
|
-
end
|
570
|
-
|
571
|
-
# Resource missing branch (upper right)
|
572
|
-
describe "#h7 (If-Match: * exists?)" do
|
573
|
-
let(:resource) { missing_resource }
|
574
|
-
it "should reply with 412 when the If-Match header is *" do
|
575
|
-
headers['If-Match'] = '"*"'
|
576
|
-
subject.run
|
577
|
-
response.code.should == 412
|
578
|
-
end
|
579
|
-
|
580
|
-
it "should not reply with 412 when the If-Match header is missing or not *" do
|
581
|
-
headers['If-Match'] = ['"etag"', nil][rand(1)]
|
582
|
-
subject.run
|
583
|
-
response.code.should_not == 412
|
584
|
-
end
|
585
|
-
end
|
586
|
-
|
587
|
-
describe "#i7 (PUT?)" do
|
588
|
-
let(:resource) do
|
589
|
-
missing_resource_with do
|
590
|
-
def allowed_methods; %w{GET HEAD PUT POST}; end
|
591
|
-
def process_post; true; end
|
592
|
-
end
|
593
|
-
end
|
594
|
-
let(:body) { %W{GET HEAD DELETE}.include?(method) ? nil : "This is the body." }
|
595
|
-
before { headers['Content-Type'] = 'text/plain' }
|
596
|
-
|
597
|
-
context "when the method is PUT" do
|
598
|
-
let(:method){ "PUT" }
|
599
|
-
|
600
|
-
it "should not reach state k7" do
|
601
|
-
subject.should_not_receive(:k7)
|
602
|
-
subject.run
|
603
|
-
end
|
604
|
-
|
605
|
-
after { [404, 410, 303].should_not include(response.code) }
|
606
|
-
end
|
607
|
-
|
608
|
-
context "when the method is not PUT" do
|
609
|
-
let(:method){ %W{GET HEAD POST DELETE}[rand(4)] }
|
610
|
-
|
611
|
-
it "should not reach state i4" do
|
612
|
-
subject.should_not_receive(:i4)
|
613
|
-
subject.run
|
614
|
-
end
|
615
|
-
|
616
|
-
after { response.code.should_not == 409 }
|
617
|
-
end
|
618
|
-
end
|
619
|
-
|
620
|
-
describe "#i4 (Apply to a different URI?)" do
|
621
|
-
let(:resource) do
|
622
|
-
missing_resource_with do
|
623
|
-
attr_accessor :location
|
624
|
-
def moved_permanently?; @location; end
|
625
|
-
def allowed_methods; %w[PUT]; end
|
626
|
-
end
|
627
|
-
end
|
628
|
-
let(:method){ "PUT" }
|
629
|
-
let(:body){ "This is the body." }
|
630
|
-
let(:headers) { Webmachine::Headers["Content-Type" => "text/plain", "Content-Length" => body.size.to_s] }
|
631
|
-
|
632
|
-
it "should reply with 301 when the resource has moved" do
|
633
|
-
resource.location = URI.parse("http://localhost:8098/newuri")
|
634
|
-
subject.run
|
635
|
-
response.code.should == 301
|
636
|
-
response.headers['Location'].should == resource.location.to_s
|
637
|
-
end
|
638
|
-
|
639
|
-
it "should not reply with 301 when resource has not moved" do
|
640
|
-
resource.location = false
|
641
|
-
subject.run
|
642
|
-
response.code.should_not == 301
|
643
|
-
end
|
644
|
-
end
|
645
|
-
|
646
|
-
describe "Redirection (Resource previously existed)" do
|
647
|
-
let(:resource) do
|
648
|
-
missing_resource_with do
|
649
|
-
attr_writer :moved_perm, :moved_temp, :allow_missing
|
650
|
-
def previously_existed?; true; end
|
651
|
-
def moved_permanently?; @moved_perm; end
|
652
|
-
def moved_temporarily?; @moved_temp; end
|
653
|
-
def allow_missing_post?; @allow_missing; end
|
654
|
-
def allowed_methods; %W{GET POST}; end
|
655
|
-
def process_post; true; end
|
656
|
-
end
|
657
|
-
end
|
658
|
-
let(:method){ @method || "GET" }
|
659
|
-
|
660
|
-
describe "#k5 (Moved permanently?)" do
|
661
|
-
it "should reply with 301 when the resource has moved permanently" do
|
662
|
-
uri = resource.moved_perm = URI.parse("http://www.google.com/")
|
663
|
-
subject.run
|
664
|
-
response.code.should == 301
|
665
|
-
response.headers['Location'].should == uri.to_s
|
666
|
-
end
|
667
|
-
it "should not reply with 301 when the resource has not moved permanently" do
|
668
|
-
resource.moved_perm = false
|
669
|
-
subject.run
|
670
|
-
response.code.should_not == 301
|
671
|
-
end
|
672
|
-
end
|
673
|
-
|
674
|
-
describe "#l5 (Moved temporarily?)" do
|
675
|
-
before { resource.moved_perm = false }
|
676
|
-
it "should reply with 307 when the resource has moved temporarily" do
|
677
|
-
uri = resource.moved_temp = URI.parse("http://www.basho.com/")
|
678
|
-
subject.run
|
679
|
-
response.code.should == 307
|
680
|
-
response.headers['Location'].should == uri.to_s
|
681
|
-
end
|
682
|
-
it "should not reply with 307 when the resource has not moved temporarily" do
|
683
|
-
resource.moved_temp = false
|
684
|
-
subject.run
|
685
|
-
response.code.should_not == 307
|
686
|
-
end
|
687
|
-
end
|
688
|
-
|
689
|
-
describe "#m5 (POST?), #n5 (POST to missing resource?)" do
|
690
|
-
before { resource.moved_perm = resource.moved_temp = false }
|
691
|
-
it "should reply with 410 when the method is not POST" do
|
692
|
-
method.should_not == "POST"
|
693
|
-
subject.run
|
694
|
-
response.code.should == 410
|
695
|
-
end
|
696
|
-
it "should reply with 410 when the resource disallows missing POSTs" do
|
697
|
-
@method = "POST"
|
698
|
-
resource.allow_missing = false
|
699
|
-
subject.run
|
700
|
-
response.code.should == 410
|
701
|
-
end
|
702
|
-
it "should not reply with 410 when the resource allows missing POSTs" do
|
703
|
-
@method = "POST"
|
704
|
-
resource.allow_missing = true
|
705
|
-
subject.run
|
706
|
-
response.code.should == 410
|
707
|
-
end
|
708
|
-
end
|
709
|
-
end
|
710
|
-
|
711
|
-
describe "#l7 (POST?), #m7 (POST to missing resource?)" do
|
712
|
-
let(:resource) do
|
713
|
-
missing_resource_with do
|
714
|
-
attr_accessor :allow_missing
|
715
|
-
def allowed_methods; %W{GET POST}; end
|
716
|
-
def previously_existed?; false; end
|
717
|
-
def allow_missing_post?; @allow_missing; end
|
718
|
-
def process_post; true; end
|
719
|
-
end
|
720
|
-
end
|
721
|
-
let(:method){ @method || "GET" }
|
722
|
-
it "should reply with 404 when the method is not POST" do
|
723
|
-
method.should_not == "POST"
|
724
|
-
subject.run
|
725
|
-
response.code.should == 404
|
726
|
-
end
|
727
|
-
it "should reply with 404 when the resource disallows missing POSTs" do
|
728
|
-
@method = "POST"
|
729
|
-
resource.allow_missing = false
|
730
|
-
subject.run
|
731
|
-
response.code.should == 404
|
732
|
-
end
|
733
|
-
it "should not reply with 404 when the resource allows missing POSTs" do
|
734
|
-
@method = "POST"
|
735
|
-
resource.allow_missing = true
|
736
|
-
subject.run
|
737
|
-
response.code.should_not == 404
|
738
|
-
end
|
739
|
-
end
|
740
|
-
|
741
|
-
describe "#p3 (Conflict?)" do
|
742
|
-
let(:resource) do
|
743
|
-
missing_resource_with do
|
744
|
-
attr_writer :conflict
|
745
|
-
def allowed_methods; %W{PUT}; end
|
746
|
-
def is_conflict?; @conflict; end
|
747
|
-
end
|
748
|
-
end
|
749
|
-
let(:method){ "PUT" }
|
750
|
-
it "should reply with 409 if the resource is in conflict" do
|
751
|
-
resource.conflict = true
|
752
|
-
subject.run
|
753
|
-
response.code.should == 409
|
754
|
-
end
|
755
|
-
it "should not reply with 409 if the resource is in conflict" do
|
756
|
-
resource.conflict = false
|
757
|
-
subject.run
|
758
|
-
response.code.should_not == 409
|
759
|
-
end
|
760
|
-
end
|
761
|
-
|
762
|
-
# Bottom right
|
763
|
-
describe "#n11 (Redirect?)" do
|
764
|
-
let(:method) { "POST" }
|
765
|
-
let(:resource) do
|
766
|
-
resource_with do
|
767
|
-
attr_writer :new_loc, :exist
|
768
|
-
def allowed_methods; %w{POST}; end
|
769
|
-
def allow_missing_post?; true; end
|
770
|
-
def process_post
|
771
|
-
response.redirect_to(@new_loc) if @new_loc
|
772
|
-
true
|
773
|
-
end
|
774
|
-
end
|
775
|
-
end
|
776
|
-
[true, false].each do |e|
|
777
|
-
context "and the resource #{ e ? "does not exist" : 'exists'}" do
|
778
|
-
before { resource.exist = e }
|
779
|
-
|
780
|
-
it "should reply with 303 if the resource redirected" do
|
781
|
-
resource.new_loc = URI.parse("/foo/bar")
|
782
|
-
subject.run
|
783
|
-
response.code.should == 303
|
784
|
-
response.headers['Location'].should == "/foo/bar"
|
785
|
-
end
|
786
|
-
|
787
|
-
it "should not reply with 303 if the resource did not redirect" do
|
788
|
-
resource.new_loc = nil
|
789
|
-
subject.run
|
790
|
-
response.code.should_not == 303
|
791
|
-
end
|
792
|
-
end
|
793
|
-
end
|
794
|
-
end
|
795
|
-
|
796
|
-
describe "#p11 (New resource?)" do
|
797
|
-
let(:resource) do
|
798
|
-
resource_with do
|
799
|
-
attr_writer :exist, :new_loc, :create
|
800
|
-
|
801
|
-
def allowed_methods; %W{PUT POST}; end
|
802
|
-
def resource_exists?; @exist; end
|
803
|
-
def process_post; true; end
|
804
|
-
def allow_missing_post?; true; end
|
805
|
-
def post_is_create?; @create; end
|
806
|
-
def create_path; @new_loc; end
|
807
|
-
def content_types_accepted; [["text/plain", :accept_text]]; end
|
808
|
-
def accept_text
|
809
|
-
response.headers['Location'] = @new_loc.to_s if @new_loc
|
810
|
-
true
|
811
|
-
end
|
812
|
-
end
|
813
|
-
end
|
814
|
-
let(:body) { "new content" }
|
815
|
-
let(:headers){ Webmachine::Headers['content-type' => 'text/plain'] }
|
816
|
-
|
817
|
-
context "when the method is PUT" do
|
818
|
-
let(:method){ "PUT" }
|
819
|
-
[true, false].each do |e|
|
820
|
-
context "and the resource #{ e ? "does not exist" : 'exists'}" do
|
821
|
-
before { resource.exist = e }
|
822
|
-
|
823
|
-
it "should reply with 201 when the Location header has been set" do
|
824
|
-
resource.exist = e
|
825
|
-
resource.new_loc = "http://ruby-doc.org/"
|
826
|
-
subject.run
|
827
|
-
response.code.should == 201
|
828
|
-
end
|
829
|
-
it "should not reply with 201 when the Location header has been set" do
|
830
|
-
resource.exist = e
|
831
|
-
subject.run
|
832
|
-
response.headers['Location'].should be_nil
|
833
|
-
response.code.should_not == 201
|
834
|
-
end
|
835
|
-
end
|
836
|
-
end
|
837
|
-
end
|
838
|
-
|
839
|
-
context "when the method is POST" do
|
840
|
-
let(:method){ "POST" }
|
841
|
-
[true, false].each do |e|
|
842
|
-
context "and the resource #{ e ? 'exists' : "does not exist"}" do
|
843
|
-
before { resource.exist = e }
|
844
|
-
it "should reply with 201 when post_is_create is true and create_path returns a URI" do
|
845
|
-
resource.new_loc = created = "/foo/bar/baz"
|
846
|
-
resource.create = true
|
847
|
-
subject.run
|
848
|
-
response.code.should == 201
|
849
|
-
response.headers['Location'].should == created
|
850
|
-
end
|
851
|
-
it "should reply with 500 when post_is_create is true and create_path returns nil" do
|
852
|
-
resource.create = true
|
853
|
-
subject.run
|
854
|
-
response.code.should == 500
|
855
|
-
response.error.should_not be_nil
|
856
|
-
end
|
857
|
-
it "should not reply with 201 when post_is_create is false" do
|
858
|
-
resource.create = false
|
859
|
-
subject.run
|
860
|
-
response.code.should_not == 201
|
861
|
-
end
|
862
|
-
end
|
863
|
-
end
|
864
|
-
end
|
865
|
-
end
|
866
|
-
|
867
|
-
describe "#o14 (Conflict?)" do
|
868
|
-
let(:resource) do
|
869
|
-
resource_with do
|
870
|
-
attr_writer :conflict
|
871
|
-
def allowed_methods; %W{PUT}; end
|
872
|
-
def is_conflict?; @conflict; end
|
873
|
-
end
|
874
|
-
end
|
875
|
-
let(:method){ "PUT" }
|
876
|
-
it "should reply with 409 if the resource is in conflict" do
|
877
|
-
resource.conflict = true
|
878
|
-
subject.run
|
879
|
-
response.code.should == 409
|
880
|
-
end
|
881
|
-
it "should not reply with 409 if the resource is in conflict" do
|
882
|
-
resource.conflict = false
|
883
|
-
subject.run
|
884
|
-
response.code.should_not == 409
|
885
|
-
end
|
886
|
-
end
|
887
|
-
|
888
|
-
describe "#m16 (DELETE?), #m20 (Delete enacted?)" do
|
889
|
-
let(:method){ @method || "DELETE" }
|
890
|
-
let(:resource) do
|
891
|
-
resource_with do
|
892
|
-
attr_writer :deleted, :completed
|
893
|
-
def allowed_methods; %w{GET DELETE}; end
|
894
|
-
def delete_resource; @deleted; end
|
895
|
-
def delete_completed?; @completed; end
|
896
|
-
end
|
897
|
-
end
|
898
|
-
it "should not reply with 202 if the method is not DELETE" do
|
899
|
-
@method = "GET"
|
900
|
-
subject.run
|
901
|
-
response.code.should_not == 202
|
902
|
-
end
|
903
|
-
it "should reply with 500 if the DELETE fails" do
|
904
|
-
resource.deleted = false
|
905
|
-
subject.run
|
906
|
-
response.code.should == 500
|
907
|
-
end
|
908
|
-
it "should reply with 202 if the DELETE succeeds but is not complete" do
|
909
|
-
resource.deleted = true
|
910
|
-
resource.completed = false
|
911
|
-
subject.run
|
912
|
-
response.code.should == 202
|
913
|
-
end
|
914
|
-
it "should not reply with 202 if the DELETE succeeds and completes" do
|
915
|
-
resource.completed = resource.deleted = true
|
916
|
-
subject.run
|
917
|
-
response.code.should_not == 202
|
918
|
-
end
|
919
|
-
end
|
920
|
-
|
921
|
-
# These decisions are covered by dozens of other examples. Leaving
|
922
|
-
# commented for now.
|
923
|
-
# describe "#n16 (POST?)" do it; end
|
924
|
-
# describe "#o16 (PUT?)" do it; end
|
925
|
-
|
926
|
-
describe "#o18 (Multiple representations?)" do
|
927
|
-
let(:resource) do
|
928
|
-
resource_with do
|
929
|
-
attr_writer :exist, :multiple
|
930
|
-
def delete_resource
|
931
|
-
response.body = "Response content."
|
932
|
-
true
|
933
|
-
end
|
934
|
-
def delete_completed?; true; end
|
935
|
-
def allowed_methods; %{GET HEAD PUT POST DELETE}; end
|
936
|
-
def resource_exists?; @exist; end
|
937
|
-
def allow_missing_post?; true; end
|
938
|
-
def content_types_accepted; [[request.content_type, :accept_all]]; end
|
939
|
-
def multiple_choices?; @multiple; end
|
940
|
-
def process_post
|
941
|
-
response.body = "Response content."
|
942
|
-
true
|
943
|
-
end
|
944
|
-
def accept_all
|
945
|
-
response.body = "Response content."
|
946
|
-
true
|
947
|
-
end
|
948
|
-
end
|
949
|
-
end
|
950
|
-
|
951
|
-
[["GET", true],["HEAD", true],["PUT", true],["PUT", false],["POST",true],["POST",false],
|
952
|
-
["DELETE", true]].each do |m, e|
|
953
|
-
context "when the method is #{m} and the resource #{e ? 'exists' : 'does not exist' }" do
|
954
|
-
let(:method){ m }
|
955
|
-
let(:body) { %W{PUT POST}.include?(m) ? "request body" : "" }
|
956
|
-
let(:headers) { %W{PUT POST}.include?(m) ? Webmachine::Headers['content-type' => 'text/plain'] : Webmachine::Headers.new }
|
957
|
-
before { resource.exist = e }
|
958
|
-
it "should reply with 200 if there are not multiple representations" do
|
959
|
-
resource.multiple = false
|
960
|
-
subject.run
|
961
|
-
puts response.error if response.code == 500
|
962
|
-
response.code.should == 200
|
963
|
-
end
|
964
|
-
it "should reply with 300 if there are multiple representations" do
|
965
|
-
resource.multiple = true
|
966
|
-
subject.run
|
967
|
-
puts response.error if response.code == 500
|
968
|
-
response.code.should == 300
|
969
|
-
end
|
970
|
-
end
|
971
|
-
end
|
972
|
-
end
|
973
|
-
|
974
|
-
describe "#o20 (Response has entity?)" do
|
975
|
-
let(:resource) do
|
976
|
-
resource_with do
|
977
|
-
attr_writer :exist, :body
|
978
|
-
def delete_resource; true; end
|
979
|
-
def delete_completed?; true; end
|
980
|
-
def allowed_methods; %{GET PUT POST DELETE}; end
|
981
|
-
def resource_exists?; @exist; end
|
982
|
-
def allow_missing_post?; true; end
|
983
|
-
def content_types_accepted; [[request.content_type, :accept_all]]; end
|
984
|
-
def process_post
|
985
|
-
response.body = @body if @body
|
986
|
-
true
|
987
|
-
end
|
988
|
-
def accept_all
|
989
|
-
response.body = @body if @body
|
990
|
-
true
|
991
|
-
end
|
992
|
-
end
|
993
|
-
end
|
994
|
-
let(:method) { @method || "GET" }
|
995
|
-
let(:headers) { %{PUT POST}.include?(method) ? Webmachine::Headers["content-type" => "text/plain"] : Webmachine::Headers.new }
|
996
|
-
let(:body) { %{PUT POST}.include?(method) ? "This is the body." : nil }
|
997
|
-
context "when a response body is present" do
|
998
|
-
before { resource.body = "Hello, world!" }
|
999
|
-
[
|
1000
|
-
["PUT", false],
|
1001
|
-
["POST", false],
|
1002
|
-
["DELETE", true],
|
1003
|
-
["POST", true],
|
1004
|
-
["PUT", true]
|
1005
|
-
].each do |m, e|
|
1006
|
-
it "should not reply with 204 (via exists:#{e}, #{m})" do
|
1007
|
-
@method = m
|
1008
|
-
resource.exist = e
|
1009
|
-
subject.run
|
1010
|
-
response.code.should_not == 204
|
1011
|
-
end
|
1012
|
-
end
|
1013
|
-
end
|
1014
|
-
context "when a response body is not present" do
|
1015
|
-
[
|
1016
|
-
["PUT", false],
|
1017
|
-
["POST", false],
|
1018
|
-
["DELETE", true],
|
1019
|
-
["POST", true],
|
1020
|
-
["PUT", true]
|
1021
|
-
].each do |m, e|
|
1022
|
-
it "should reply with 204 (via exists:#{e}, #{m})" do
|
1023
|
-
@method = m
|
1024
|
-
resource.exist = e
|
1025
|
-
subject.run
|
1026
|
-
response.code.should == 204
|
1027
|
-
response.trace.last.should == :o20
|
1028
|
-
end
|
1029
|
-
end
|
1030
|
-
end
|
1031
|
-
end
|
1032
|
-
end
|