rsbe-client 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rspec +3 -0
  4. data/GETTING-STARTED.md +17 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +73 -0
  8. data/Rakefile +11 -0
  9. data/TODO.md +38 -0
  10. data/lib/rsbe/client.rb +50 -0
  11. data/lib/rsbe/client/base.rb +140 -0
  12. data/lib/rsbe/client/collection.rb +84 -0
  13. data/lib/rsbe/client/connection.rb +24 -0
  14. data/lib/rsbe/client/method_not_implemented_error.rb +6 -0
  15. data/lib/rsbe/client/not_found_error.rb +6 -0
  16. data/lib/rsbe/client/partner.rb +82 -0
  17. data/lib/rsbe/client/provider.rb +47 -0
  18. data/lib/rsbe/client/se.rb +97 -0
  19. data/lib/rsbe/client/search.rb +80 -0
  20. data/lib/rsbe/client/search_results.rb +41 -0
  21. data/lib/rsbe/client/unrecognized_resource_error.rb +6 -0
  22. data/lib/rsbe/client/version.rb +5 -0
  23. data/lib/rsbe/client/wrong_origin_error.rb +6 -0
  24. data/rsbe-client.gemspec +30 -0
  25. data/spec/fixtures/partners/partners_all.json +1 -0
  26. data/spec/fixtures/partners/partners_none.json +1 -0
  27. data/spec/rsbe/client/base_spec.rb +10 -0
  28. data/spec/rsbe/client/collection_spec.rb +186 -0
  29. data/spec/rsbe/client/connection_spec.rb +20 -0
  30. data/spec/rsbe/client/partner_spec.rb +185 -0
  31. data/spec/rsbe/client/provider_spec.rb +122 -0
  32. data/spec/rsbe/client/se_spec.rb +273 -0
  33. data/spec/rsbe/client/search_results_spec.rb +140 -0
  34. data/spec/rsbe/client/search_spec.rb +74 -0
  35. data/spec/rsbe/client_spec.rb +52 -0
  36. data/spec/spec_helper.rb +43 -0
  37. data/spec/vcr_cassettes/client/find_collection.yml +53 -0
  38. data/spec/vcr_cassettes/client/find_partner.yml +52 -0
  39. data/spec/vcr_cassettes/client/find_provider.yml +52 -0
  40. data/spec/vcr_cassettes/client/find_se.yml +53 -0
  41. data/spec/vcr_cassettes/collection/find-existing.yml +53 -0
  42. data/spec/vcr_cassettes/collection/find-non_existent.yml +50 -0
  43. data/spec/vcr_cassettes/collection/lazy-eval-dne.yml +285 -0
  44. data/spec/vcr_cassettes/collection/lazy-eval-exists.yml +53 -0
  45. data/spec/vcr_cassettes/collection/save-create-known-id.yml +103 -0
  46. data/spec/vcr_cassettes/collection/save-create-unknown-id.yml +56 -0
  47. data/spec/vcr_cassettes/collection/save-invalid.yml +143 -0
  48. data/spec/vcr_cassettes/collection/save-update-valid.yml +99 -0
  49. data/spec/vcr_cassettes/partner/all.yml +300 -0
  50. data/spec/vcr_cassettes/partner/dne-with-id.yml +238 -0
  51. data/spec/vcr_cassettes/partner/find-existing.yml +52 -0
  52. data/spec/vcr_cassettes/partner/find-non_existent.yml +50 -0
  53. data/spec/vcr_cassettes/partner/lazy-eval-exists.yml +53 -0
  54. data/spec/vcr_cassettes/partner/save-create-known-id.yml +101 -0
  55. data/spec/vcr_cassettes/partner/save-create-unknown-id.yml +54 -0
  56. data/spec/vcr_cassettes/partner/save-invalid.yml +177 -0
  57. data/spec/vcr_cassettes/partner/save-unknown-id.yml +54 -0
  58. data/spec/vcr_cassettes/partner/save-update-valid.yml +98 -0
  59. data/spec/vcr_cassettes/partner/with-collections.yml +203 -0
  60. data/spec/vcr_cassettes/partner/without-collections.yml +101 -0
  61. data/spec/vcr_cassettes/provider/all.yml +248 -0
  62. data/spec/vcr_cassettes/provider/find-existing.yml +52 -0
  63. data/spec/vcr_cassettes/provider/find-non_existent.yml +50 -0
  64. data/spec/vcr_cassettes/provider/save-create-known-id.yml +101 -0
  65. data/spec/vcr_cassettes/provider/save-create-unknown-id.yml +54 -0
  66. data/spec/vcr_cassettes/provider/save-invalid.yml +178 -0
  67. data/spec/vcr_cassettes/provider/save-update-valid.yml +144 -0
  68. data/spec/vcr_cassettes/se/find-existing.yml +53 -0
  69. data/spec/vcr_cassettes/se/find-non_existent.yml +50 -0
  70. data/spec/vcr_cassettes/se/lazy-eval-exists.yml +52 -0
  71. data/spec/vcr_cassettes/se/save-create-known-id.yml +146 -0
  72. data/spec/vcr_cassettes/se/save-create-unknown-id.yml +56 -0
  73. data/spec/vcr_cassettes/se/save-invalid.yml +305 -0
  74. data/spec/vcr_cassettes/se/save-update-valid.yml +99 -0
  75. data/spec/vcr_cassettes/se/search-malformed-uuid.yml +54 -0
  76. data/spec/vcr_cassettes/se/search-with-existing-se.yml +52 -0
  77. data/spec/vcr_cassettes/se/search-with-missing-se.yml +52 -0
  78. data/spec/vcr_cassettes/search/search-with-existing-se.yml +52 -0
  79. data/spec/vcr_cassettes/search_results/no-results.yml +52 -0
  80. data/spec/vcr_cassettes/search_results/search-by-digi_id.yml +101 -0
  81. data/spec/vcr_cassettes/search_results/search-by-step.yml +201 -0
  82. metadata +307 -0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://foo:bar@localhost:3000/api/v0/providers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":null,"name":"Antony"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ X-Ua-Compatible:
30
+ - chrome=1
31
+ Location:
32
+ - http://localhost:3000/api/v0/providers/3db5e9e4-67ac-4d23-beae-da7f0100b9bd
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ X-Meta-Request-Version:
36
+ - 0.2.9
37
+ Etag:
38
+ - '"7abbe2a6d503d3aa602dd4e12cb956b7"'
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - a74049d1-2ab8-410c-909c-a040a5c94385
43
+ X-Runtime:
44
+ - '0.306866'
45
+ Connection:
46
+ - close
47
+ Server:
48
+ - thin 1.6.2 codename Doc Brown
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"id":"3db5e9e4-67ac-4d23-beae-da7f0100b9bd","name":"Antony","lock_version":0,"created_at":"2015-08-10T03:11:16.530Z","updated_at":"2015-08-10T03:11:16.530Z"}'
52
+ http_version:
53
+ recorded_at: Mon, 10 Aug 2015 03:11:16 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,178 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/providers/abc123
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 400
19
+ message: Bad Request
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Cache-Control:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - request_method=GET; path=/
37
+ X-Request-Id:
38
+ - 9ef2fc7a-461b-4719-9451-93d8d40c49d1
39
+ X-Runtime:
40
+ - '0.699467'
41
+ Connection:
42
+ - close
43
+ Server:
44
+ - thin 1.6.2 codename Doc Brown
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"error":"ERROR: invalid input syntax for uuid: \"abc123\""}'
48
+ http_version:
49
+ recorded_at: Mon, 10 Aug 2015 03:28:22 GMT
50
+ - request:
51
+ method: post
52
+ uri: http://foo:bar@localhost:3000/api/v0/providers
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"id":"abc123","name":""}'
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.9.0
59
+ Content-Type:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - '*/*'
65
+ response:
66
+ status:
67
+ code: 422
68
+ message: ''
69
+ headers:
70
+ Content-Type:
71
+ - text/plain; charset=utf-8
72
+ X-Request-Id:
73
+ - 7617bbd7-5b15-4733-8405-dbbde5e06e25
74
+ X-Runtime:
75
+ - '0.707468'
76
+ Connection:
77
+ - close
78
+ Server:
79
+ - thin 1.6.2 codename Doc Brown
80
+ body:
81
+ encoding: UTF-8
82
+ string: "ActiveRecord::RecordInvalid at /api/v0/providers\n================================================\n\n>
83
+ Validation failed: Name can't be blank\n\napp/controllers/api/v0/providers_controller.rb,
84
+ line 21\n-------------------------------------------------------\n\n``` ruby\n
85
+ \ 16 respond_with @provider\n 17 end\n 18 \n 19
86
+ \ # POST /api/v<N>/providers\n 20 def create\n> 21 @provider
87
+ = Provider.create!(provider_params)\n 22 respond_with @provider,
88
+ location: api_v0_provider_url(@provider)\n 23 end\n 24 \n 25
89
+ \ # PATCH/PUT /api/v<N>/providers/1\n 26 def update\n```\n\nApp
90
+ backtrace\n-------------\n\n - app/controllers/api/v0/providers_controller.rb:21:in
91
+ `create'\n\nFull backtrace\n--------------\n\n - activerecord (4.0.13) lib/active_record/validations.rb:57:in
92
+ `save!'\n - activerecord (4.0.13) lib/active_record/attribute_methods/dirty.rb:41:in
93
+ `save!'\n - activerecord (4.0.13) lib/active_record/transactions.rb:275:in
94
+ `block in save!'\n - activerecord (4.0.13) lib/active_record/transactions.rb:330:in
95
+ `block in with_transaction_returning_status'\n - activerecord (4.0.13) lib/active_record/connection_adapters/abstract/database_statements.rb:203:in
96
+ `block in transaction'\n - activerecord (4.0.13) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
97
+ `within_new_transaction'\n - activerecord (4.0.13) lib/active_record/connection_adapters/abstract/database_statements.rb:203:in
98
+ `transaction'\n - activerecord (4.0.13) lib/active_record/transactions.rb:209:in
99
+ `transaction'\n - activerecord (4.0.13) lib/active_record/transactions.rb:327:in
100
+ `with_transaction_returning_status'\n - activerecord (4.0.13) lib/active_record/transactions.rb:275:in
101
+ `save!'\n - activerecord (4.0.13) lib/active_record/validations.rb:41:in `create!'\n
102
+ - app/controllers/api/v0/providers_controller.rb:21:in `create'\n - actionpack
103
+ (4.0.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\n
104
+ - actionpack (4.0.13) lib/abstract_controller/base.rb:189:in `process_action'\n
105
+ - actionpack (4.0.13) lib/action_controller/metal/rendering.rb:10:in `process_action'\n
106
+ - actionpack (4.0.13) lib/abstract_controller/callbacks.rb:18:in `block in
107
+ process_action'\n - activesupport (4.0.13) lib/active_support/callbacks.rb:443:in
108
+ `_run__1877947515793801965__process_action__callbacks'\n - activesupport (4.0.13)
109
+ lib/active_support/callbacks.rb:80:in `run_callbacks'\n - actionpack (4.0.13)
110
+ lib/abstract_controller/callbacks.rb:17:in `process_action'\n - actionpack
111
+ (4.0.13) lib/action_controller/metal/rescue.rb:29:in `process_action'\n -
112
+ actionpack (4.0.13) lib/action_controller/metal/instrumentation.rb:31:in `block
113
+ in process_action'\n - activesupport (4.0.13) lib/active_support/notifications.rb:159:in
114
+ `block in instrument'\n - activesupport (4.0.13) lib/active_support/notifications/instrumenter.rb:20:in
115
+ `instrument'\n - activesupport (4.0.13) lib/active_support/notifications.rb:159:in
116
+ `instrument'\n - actionpack (4.0.13) lib/action_controller/metal/instrumentation.rb:30:in
117
+ `process_action'\n - actionpack (4.0.13) lib/action_controller/metal/params_wrapper.rb:250:in
118
+ `process_action'\n - activerecord (4.0.13) lib/active_record/railties/controller_runtime.rb:18:in
119
+ `process_action'\n - actionpack (4.0.13) lib/abstract_controller/base.rb:136:in
120
+ `process'\n - actionpack (4.0.13) lib/abstract_controller/rendering.rb:44:in
121
+ `process'\n - actionpack (4.0.13) lib/action_controller/metal.rb:195:in `dispatch'\n
122
+ - actionpack (4.0.13) lib/action_controller/metal/rack_delegation.rb:13:in
123
+ `dispatch'\n - actionpack (4.0.13) lib/action_controller/metal.rb:231:in `block
124
+ in action'\n - actionpack (4.0.13) lib/action_dispatch/routing/route_set.rb:82:in
125
+ `dispatch'\n - actionpack (4.0.13) lib/action_dispatch/routing/route_set.rb:50:in
126
+ `call'\n - actionpack (4.0.13) lib/action_dispatch/journey/router.rb:71:in
127
+ `block in call'\n - actionpack (4.0.13) lib/action_dispatch/journey/router.rb:59:in
128
+ `call'\n - actionpack (4.0.13) lib/action_dispatch/routing/route_set.rb:676:in
129
+ `call'\n - meta_request (0.2.9) lib/meta_request/middlewares/app_request_handler.rb:13:in
130
+ `call'\n - rack-contrib (1.1.0) lib/rack/contrib/response_headers.rb:17:in
131
+ `call'\n - meta_request (0.2.9) lib/meta_request/middlewares/headers.rb:16:in
132
+ `call'\n - meta_request (0.2.9) lib/meta_request/middlewares/meta_request_handler.rb:13:in
133
+ `call'\n - rack (1.5.5) lib/rack/etag.rb:23:in `call'\n - rack (1.5.5) lib/rack/conditionalget.rb:35:in
134
+ `call'\n - rack (1.5.5) lib/rack/head.rb:11:in `call'\n - actionpack (4.0.13)
135
+ lib/action_dispatch/middleware/params_parser.rb:27:in `call'\n - actionpack
136
+ (4.0.13) lib/action_dispatch/middleware/flash.rb:241:in `call'\n - rack (1.5.5)
137
+ lib/rack/session/abstract/id.rb:225:in `context'\n - rack (1.5.5) lib/rack/session/abstract/id.rb:220:in
138
+ `call'\n - actionpack (4.0.13) lib/action_dispatch/middleware/cookies.rb:486:in
139
+ `call'\n - activerecord (4.0.13) lib/active_record/query_cache.rb:36:in `call'\n
140
+ - activerecord (4.0.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in
141
+ `call'\n - activerecord (4.0.13) lib/active_record/migration.rb:373:in `call'\n
142
+ - actionpack (4.0.13) lib/action_dispatch/middleware/callbacks.rb:29:in `block
143
+ in call'\n - activesupport (4.0.13) lib/active_support/callbacks.rb:373:in
144
+ `_run__881885409242114789__call__callbacks'\n - activesupport (4.0.13) lib/active_support/callbacks.rb:80:in
145
+ `run_callbacks'\n - actionpack (4.0.13) lib/action_dispatch/middleware/callbacks.rb:27:in
146
+ `call'\n - actionpack (4.0.13) lib/action_dispatch/middleware/reloader.rb:64:in
147
+ `call'\n - actionpack (4.0.13) lib/action_dispatch/middleware/remote_ip.rb:76:in
148
+ `call'\n - better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\n
149
+ - better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\n
150
+ - better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'\n - actionpack
151
+ (4.0.13) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\n
152
+ - actionpack (4.0.13) lib/action_dispatch/middleware/show_exceptions.rb:30:in
153
+ `call'\n - railties (4.0.13) lib/rails/rack/logger.rb:38:in `call_app'\n -
154
+ railties (4.0.13) lib/rails/rack/logger.rb:20:in `block in call'\n - activesupport
155
+ (4.0.13) lib/active_support/tagged_logging.rb:68:in `block in tagged'\n -
156
+ activesupport (4.0.13) lib/active_support/tagged_logging.rb:26:in `tagged'\n
157
+ - activesupport (4.0.13) lib/active_support/tagged_logging.rb:68:in `tagged'\n
158
+ - railties (4.0.13) lib/rails/rack/logger.rb:20:in `call'\n - actionpack (4.0.13)
159
+ lib/action_dispatch/middleware/request_id.rb:21:in `call'\n - rack (1.5.5)
160
+ lib/rack/methodoverride.rb:21:in `call'\n - rack (1.5.5) lib/rack/runtime.rb:17:in
161
+ `call'\n - activesupport (4.0.13) lib/active_support/cache/strategy/local_cache.rb:83:in
162
+ `call'\n - rack (1.5.5) lib/rack/lock.rb:17:in `call'\n - actionpack (4.0.13)
163
+ lib/action_dispatch/middleware/static.rb:84:in `call'\n - rack (1.5.5) lib/rack/sendfile.rb:112:in
164
+ `call'\n - railties (4.0.13) lib/rails/engine.rb:511:in `call'\n - railties
165
+ (4.0.13) lib/rails/application.rb:97:in `call'\n - rack (1.5.5) lib/rack/content_length.rb:14:in
166
+ `call'\n - thin (1.6.2) lib/thin/connection.rb:86:in `block in pre_process'\n
167
+ - thin (1.6.2) lib/thin/connection.rb:84:in `pre_process'\n - thin (1.6.2)
168
+ lib/thin/connection.rb:53:in `process'\n - thin (1.6.2) lib/thin/connection.rb:39:in
169
+ `receive_data'\n - eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'\n
170
+ - thin (1.6.2) lib/thin/backends/base.rb:73:in `start'\n - thin (1.6.2) lib/thin/server.rb:162:in
171
+ `start'\n - rack (1.5.5) lib/rack/handler/thin.rb:16:in `run'\n - rack (1.5.5)
172
+ lib/rack/server.rb:264:in `start'\n - railties (4.0.13) lib/rails/commands/server.rb:84:in
173
+ `start'\n - railties (4.0.13) lib/rails/commands.rb:76:in `block in <top (required)>'\n
174
+ - railties (4.0.13) lib/rails/commands.rb:71:in `<top (required)>'\n - bin/rails:4:in
175
+ `<main>'\n\n"
176
+ http_version:
177
+ recorded_at: Mon, 10 Aug 2015 03:28:23 GMT
178
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,144 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/providers/b051f936-835c-4abb-9034-efa7508db4bf
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Cache-Control:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - request_method=GET; path=/
37
+ X-Request-Id:
38
+ - 427dbfbc-aaaa-444f-ba2b-1d73ebc25ae8
39
+ X-Runtime:
40
+ - '0.085907'
41
+ Connection:
42
+ - close
43
+ Server:
44
+ - thin 1.6.2 codename Doc Brown
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"error":"Couldn''t find Provider with id=b051f936-835c-4abb-9034-efa7508db4bf"}'
48
+ http_version:
49
+ recorded_at: Mon, 10 Aug 2015 03:46:40 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://foo:bar@localhost:3000/api/v0/providers/51213be7-c8de-4e06-8cc2-06bfc82cdd68
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.9.0
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ X-Frame-Options:
69
+ - SAMEORIGIN
70
+ X-Xss-Protection:
71
+ - 1; mode=block
72
+ X-Content-Type-Options:
73
+ - nosniff
74
+ X-Ua-Compatible:
75
+ - chrome=1
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ X-Meta-Request-Version:
79
+ - 0.2.9
80
+ Etag:
81
+ - '"01c37e8fe013434c76baf2384ec5ac21"'
82
+ Cache-Control:
83
+ - max-age=0, private, must-revalidate
84
+ Set-Cookie:
85
+ - request_method=GET; path=/
86
+ X-Request-Id:
87
+ - cdde4bf4-57dd-4b62-a983-c6d63d059436
88
+ X-Runtime:
89
+ - '0.112389'
90
+ Connection:
91
+ - close
92
+ Server:
93
+ - thin 1.6.2 codename Doc Brown
94
+ body:
95
+ encoding: UTF-8
96
+ string: '{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","name":"Octavius","created_at":"2015-08-10T03:13:55.010Z","updated_at":"2015-08-10T03:13:55.010Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
97
+ http_version:
98
+ recorded_at: Mon, 10 Aug 2015 04:01:58 GMT
99
+ - request:
100
+ method: put
101
+ uri: http://foo:bar@localhost:3000/api/v0/providers/51213be7-c8de-4e06-8cc2-06bfc82cdd68
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","name":"Calpurnia","created_at":"2015-08-10T03:13:55.010Z","updated_at":"2015-08-10T03:13:55.010Z","lock_version":0}'
105
+ headers:
106
+ User-Agent:
107
+ - Faraday v0.9.0
108
+ Content-Type:
109
+ - application/json
110
+ Accept-Encoding:
111
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
+ Accept:
113
+ - '*/*'
114
+ response:
115
+ status:
116
+ code: 204
117
+ message: No Content
118
+ headers:
119
+ X-Frame-Options:
120
+ - SAMEORIGIN
121
+ X-Xss-Protection:
122
+ - 1; mode=block
123
+ X-Content-Type-Options:
124
+ - nosniff
125
+ X-Ua-Compatible:
126
+ - chrome=1
127
+ X-Meta-Request-Version:
128
+ - 0.2.9
129
+ Cache-Control:
130
+ - no-cache
131
+ X-Request-Id:
132
+ - 105d945d-c71f-45c9-ad69-5d46f5248051
133
+ X-Runtime:
134
+ - '0.189192'
135
+ Connection:
136
+ - close
137
+ Server:
138
+ - thin 1.6.2 codename Doc Brown
139
+ body:
140
+ encoding: UTF-8
141
+ string: ''
142
+ http_version:
143
+ recorded_at: Mon, 10 Aug 2015 04:01:58 GMT
144
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/ses/acf51ef2-8bf3-4f05-9042-0bfcb6860560
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Etag:
34
+ - '"76aab5ff206987e4ad005fdaa5112b11"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ Set-Cookie:
38
+ - request_method=GET; path=/
39
+ X-Request-Id:
40
+ - 5f866634-be8e-4de3-8994-57c09eceb274
41
+ X-Runtime:
42
+ - '0.011727'
43
+ Connection:
44
+ - close
45
+ Server:
46
+ - thin 1.6.2 codename Doc Brown
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"acf51ef2-8bf3-4f05-9042-0bfcb6860560","coll_id":"ea85c776-a79b-4603-b307-d6760a400281","digi_id":"foo_quux_cuid01234","do_type":"audio","phase":"digitization","step":"qc","status":"active","notes":"these
50
+ are some AWESOME notes!","label":"v 1 pt. 2","created_at":"2016-11-30T18:52:03.913Z","updated_at":"2016-12-08T16:37:59.854Z","coll_url":"http://localhost:3000/api/v0/colls/ea85c776-a79b-4603-b307-d6760a400281","lock_version":3}'
51
+ http_version:
52
+ recorded_at: Thu, 08 Dec 2016 16:42:57 GMT
53
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/ses/443d3d42-1084-4045-b618-f4358d6e8b12
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Cache-Control:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - request_method=GET; path=/
37
+ X-Request-Id:
38
+ - 542bbbcf-2871-462f-beff-8dc57b15d764
39
+ X-Runtime:
40
+ - '0.005561'
41
+ Connection:
42
+ - close
43
+ Server:
44
+ - thin 1.6.2 codename Doc Brown
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"error":"Couldn''t find Se with id=443d3d42-1084-4045-b618-f4358d6e8b12"}'
48
+ http_version:
49
+ recorded_at: Thu, 08 Dec 2016 19:57:20 GMT
50
+ recorded_with: VCR 2.9.3