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.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.rspec +3 -0
- data/GETTING-STARTED.md +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +11 -0
- data/TODO.md +38 -0
- data/lib/rsbe/client.rb +50 -0
- data/lib/rsbe/client/base.rb +140 -0
- data/lib/rsbe/client/collection.rb +84 -0
- data/lib/rsbe/client/connection.rb +24 -0
- data/lib/rsbe/client/method_not_implemented_error.rb +6 -0
- data/lib/rsbe/client/not_found_error.rb +6 -0
- data/lib/rsbe/client/partner.rb +82 -0
- data/lib/rsbe/client/provider.rb +47 -0
- data/lib/rsbe/client/se.rb +97 -0
- data/lib/rsbe/client/search.rb +80 -0
- data/lib/rsbe/client/search_results.rb +41 -0
- data/lib/rsbe/client/unrecognized_resource_error.rb +6 -0
- data/lib/rsbe/client/version.rb +5 -0
- data/lib/rsbe/client/wrong_origin_error.rb +6 -0
- data/rsbe-client.gemspec +30 -0
- data/spec/fixtures/partners/partners_all.json +1 -0
- data/spec/fixtures/partners/partners_none.json +1 -0
- data/spec/rsbe/client/base_spec.rb +10 -0
- data/spec/rsbe/client/collection_spec.rb +186 -0
- data/spec/rsbe/client/connection_spec.rb +20 -0
- data/spec/rsbe/client/partner_spec.rb +185 -0
- data/spec/rsbe/client/provider_spec.rb +122 -0
- data/spec/rsbe/client/se_spec.rb +273 -0
- data/spec/rsbe/client/search_results_spec.rb +140 -0
- data/spec/rsbe/client/search_spec.rb +74 -0
- data/spec/rsbe/client_spec.rb +52 -0
- data/spec/spec_helper.rb +43 -0
- data/spec/vcr_cassettes/client/find_collection.yml +53 -0
- data/spec/vcr_cassettes/client/find_partner.yml +52 -0
- data/spec/vcr_cassettes/client/find_provider.yml +52 -0
- data/spec/vcr_cassettes/client/find_se.yml +53 -0
- data/spec/vcr_cassettes/collection/find-existing.yml +53 -0
- data/spec/vcr_cassettes/collection/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/collection/lazy-eval-dne.yml +285 -0
- data/spec/vcr_cassettes/collection/lazy-eval-exists.yml +53 -0
- data/spec/vcr_cassettes/collection/save-create-known-id.yml +103 -0
- data/spec/vcr_cassettes/collection/save-create-unknown-id.yml +56 -0
- data/spec/vcr_cassettes/collection/save-invalid.yml +143 -0
- data/spec/vcr_cassettes/collection/save-update-valid.yml +99 -0
- data/spec/vcr_cassettes/partner/all.yml +300 -0
- data/spec/vcr_cassettes/partner/dne-with-id.yml +238 -0
- data/spec/vcr_cassettes/partner/find-existing.yml +52 -0
- data/spec/vcr_cassettes/partner/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/partner/lazy-eval-exists.yml +53 -0
- data/spec/vcr_cassettes/partner/save-create-known-id.yml +101 -0
- data/spec/vcr_cassettes/partner/save-create-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/partner/save-invalid.yml +177 -0
- data/spec/vcr_cassettes/partner/save-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/partner/save-update-valid.yml +98 -0
- data/spec/vcr_cassettes/partner/with-collections.yml +203 -0
- data/spec/vcr_cassettes/partner/without-collections.yml +101 -0
- data/spec/vcr_cassettes/provider/all.yml +248 -0
- data/spec/vcr_cassettes/provider/find-existing.yml +52 -0
- data/spec/vcr_cassettes/provider/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/provider/save-create-known-id.yml +101 -0
- data/spec/vcr_cassettes/provider/save-create-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/provider/save-invalid.yml +178 -0
- data/spec/vcr_cassettes/provider/save-update-valid.yml +144 -0
- data/spec/vcr_cassettes/se/find-existing.yml +53 -0
- data/spec/vcr_cassettes/se/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/se/lazy-eval-exists.yml +52 -0
- data/spec/vcr_cassettes/se/save-create-known-id.yml +146 -0
- data/spec/vcr_cassettes/se/save-create-unknown-id.yml +56 -0
- data/spec/vcr_cassettes/se/save-invalid.yml +305 -0
- data/spec/vcr_cassettes/se/save-update-valid.yml +99 -0
- data/spec/vcr_cassettes/se/search-malformed-uuid.yml +54 -0
- data/spec/vcr_cassettes/se/search-with-existing-se.yml +52 -0
- data/spec/vcr_cassettes/se/search-with-missing-se.yml +52 -0
- data/spec/vcr_cassettes/search/search-with-existing-se.yml +52 -0
- data/spec/vcr_cassettes/search_results/no-results.yml +52 -0
- data/spec/vcr_cassettes/search_results/search-by-digi_id.yml +101 -0
- data/spec/vcr_cassettes/search_results/search-by-step.yml +201 -0
- metadata +307 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls/fc7455cf-3b20-494c-9b9e-17cae9e51fa1
|
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: 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
|
+
- '"0b08e939ec30068fe00bd00b48b84822"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- request_method=GET; path=/
|
39
|
+
X-Request-Id:
|
40
|
+
- 4fc961f1-a950-4a82-b48b-b3eb0dafd5a9
|
41
|
+
X-Runtime:
|
42
|
+
- '2.243353'
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
Server:
|
46
|
+
- thin 1.6.2 codename Doc Brown
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":"fc7455cf-3b20-494c-9b9e-17cae9e51fa1","partner_id":"b110731f-86af-4534-8e58-6d219dcb1c52","code":"zaap","name":"Zoinks
|
50
|
+
and Away, Potatoes!","coll_type":"origin","created_at":"2014-11-07T14:50:23.745Z","updated_at":"2014-11-07T14:50:23.745Z","quota":500,"ready_for_content":false,"partner_url":"http://localhost:3000/api/v0/partners/b110731f-86af-4534-8e58-6d219dcb1c52","lock_version":0,"rel_path":null}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sun, 02 Oct 2016 00:50:59 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls/07998216-af0a-4262-b7f9-6a7d9c4aeae4
|
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
|
+
- 095ceb33-a944-4d95-8d07-77fd204cd6b4
|
39
|
+
X-Runtime:
|
40
|
+
- '0.050952'
|
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 Coll with id=07998216-af0a-4262-b7f9-6a7d9c4aeae4"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 07 Nov 2014 14:57:14 GMT
|
50
|
+
- request:
|
51
|
+
method: post
|
52
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"id":"07998216-af0a-4262-b7f9-6a7d9c4aeae4","code":"han","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","coll_type":"origin","quota":123,"name":"Happy
|
56
|
+
Anteaters of Nigeria","rel_path":null}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- Faraday v0.9.0
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- '*/*'
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 201
|
69
|
+
message: Created
|
70
|
+
headers:
|
71
|
+
X-Frame-Options:
|
72
|
+
- SAMEORIGIN
|
73
|
+
X-Xss-Protection:
|
74
|
+
- 1; mode=block
|
75
|
+
X-Content-Type-Options:
|
76
|
+
- nosniff
|
77
|
+
X-Ua-Compatible:
|
78
|
+
- chrome=1
|
79
|
+
Location:
|
80
|
+
- http://localhost:3000/api/v0/colls/07998216-af0a-4262-b7f9-6a7d9c4aeae4
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
X-Meta-Request-Version:
|
84
|
+
- 0.2.9
|
85
|
+
Etag:
|
86
|
+
- '"b6917109e518ae430094d52fa7603004"'
|
87
|
+
Cache-Control:
|
88
|
+
- max-age=0, private, must-revalidate
|
89
|
+
X-Request-Id:
|
90
|
+
- 647fc488-ca00-4817-94bc-d9efe0f6cc9a
|
91
|
+
X-Runtime:
|
92
|
+
- '0.241011'
|
93
|
+
Connection:
|
94
|
+
- close
|
95
|
+
Server:
|
96
|
+
- thin 1.6.2 codename Doc Brown
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"id":"07998216-af0a-4262-b7f9-6a7d9c4aeae4","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"han","name":"Happy
|
100
|
+
Anteaters of Nigeria","rel_path":null,"quota":123,"coll_type":"origin","ready_for_content":false,"lock_version":0,"created_at":"2014-11-07T14:57:14.130Z","updated_at":"2014-11-07T14:57:14.130Z"}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Fri, 07 Nov 2014 14:57:14 GMT
|
103
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"id":null,"code":"luke","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","coll_type":"origin","quota":1024,"name":"Lasers
|
9
|
+
Under Kinetic Ether","rel_path":null}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.9.0
|
13
|
+
Content-Type:
|
14
|
+
- application/json
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- '*/*'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 201
|
22
|
+
message: Created
|
23
|
+
headers:
|
24
|
+
X-Frame-Options:
|
25
|
+
- SAMEORIGIN
|
26
|
+
X-Xss-Protection:
|
27
|
+
- 1; mode=block
|
28
|
+
X-Content-Type-Options:
|
29
|
+
- nosniff
|
30
|
+
X-Ua-Compatible:
|
31
|
+
- chrome=1
|
32
|
+
Location:
|
33
|
+
- http://localhost:3000/api/v0/colls/8cdab8d4-6eb7-4ef3-9e53-93efb987cbaa
|
34
|
+
Content-Type:
|
35
|
+
- application/json; charset=utf-8
|
36
|
+
X-Meta-Request-Version:
|
37
|
+
- 0.2.9
|
38
|
+
Etag:
|
39
|
+
- '"da5808f983ced7b09ba92b3f989dcea4"'
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Request-Id:
|
43
|
+
- becff9bb-79b9-4a55-8ec5-3e15916b12b4
|
44
|
+
X-Runtime:
|
45
|
+
- '0.215941'
|
46
|
+
Connection:
|
47
|
+
- close
|
48
|
+
Server:
|
49
|
+
- thin 1.6.2 codename Doc Brown
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"8cdab8d4-6eb7-4ef3-9e53-93efb987cbaa","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"luke","name":"Lasers
|
53
|
+
Under Kinetic Ether","rel_path":null,"quota":1024,"coll_type":"origin","ready_for_content":false,"lock_version":0,"created_at":"2014-11-07T14:57:13.784Z","updated_at":"2014-11-07T14:57:13.784Z"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Fri, 07 Nov 2014 14:57:13 GMT
|
56
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,143 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"id":null,"code":null,"partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","coll_type":"banana
|
9
|
+
frappe","quota":null,"name":null,"rel_path":null}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.9.0
|
13
|
+
Content-Type:
|
14
|
+
- application/json
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- '*/*'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 422
|
22
|
+
message: ''
|
23
|
+
headers:
|
24
|
+
Content-Type:
|
25
|
+
- text/plain; charset=utf-8
|
26
|
+
X-Request-Id:
|
27
|
+
- d178c9ea-f873-436d-a5c7-33ea8f5960a7
|
28
|
+
X-Runtime:
|
29
|
+
- '0.146126'
|
30
|
+
Connection:
|
31
|
+
- close
|
32
|
+
Server:
|
33
|
+
- thin 1.6.2 codename Doc Brown
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: "ActiveRecord::RecordInvalid at /api/v0/colls\n============================================\n\n>
|
37
|
+
Validation failed: Code can't be blank, Code invalid character in code, Coll
|
38
|
+
type is not included in the list, Quota can't be blank, Quota is not a number\n\napp/controllers/api/v0/colls_controller.rb,
|
39
|
+
line 23\n---------------------------------------------------\n\n``` ruby\n
|
40
|
+
\ 18 end\n 19 \n 20 # POST /api/v<N>/partners/:partner_id/colls\n
|
41
|
+
\ 21 # POST /api/v<N>/colls\n 22 def create\n> 23 @coll
|
42
|
+
= @partner.colls.create!(coll_params)\n 24 respond_with @coll,
|
43
|
+
location: api_v0_coll_url(@coll)\n 25 end\n 26 \n 27 #
|
44
|
+
PATCH/PUT /api/v<N>/colls/1\n 28 def update\n```\n\nApp backtrace\n-------------\n\n
|
45
|
+
- app/controllers/api/v0/colls_controller.rb:23:in `create'\n\nFull backtrace\n--------------\n\n
|
46
|
+
- activerecord (4.0.11) lib/active_record/validations.rb:57:in `save!'\n -
|
47
|
+
activerecord (4.0.11) lib/active_record/attribute_methods/dirty.rb:41:in `save!'\n
|
48
|
+
- activerecord (4.0.11) lib/active_record/transactions.rb:275:in `block in
|
49
|
+
save!'\n - activerecord (4.0.11) lib/active_record/transactions.rb:330:in
|
50
|
+
`block in with_transaction_returning_status'\n - activerecord (4.0.11) lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
|
51
|
+
`transaction'\n - activerecord (4.0.11) lib/active_record/transactions.rb:209:in
|
52
|
+
`transaction'\n - activerecord (4.0.11) lib/active_record/transactions.rb:327:in
|
53
|
+
`with_transaction_returning_status'\n - activerecord (4.0.11) lib/active_record/transactions.rb:275:in
|
54
|
+
`save!'\n - activerecord (4.0.11) lib/active_record/associations/has_many_association.rb:38:in
|
55
|
+
`insert_record'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:463:in
|
56
|
+
`block (2 levels) in _create_record'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:367:in
|
57
|
+
`add_to_target'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:461:in
|
58
|
+
`block in _create_record'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:152:in
|
59
|
+
`block in transaction'\n - activerecord (4.0.11) lib/active_record/connection_adapters/abstract/database_statements.rb:203:in
|
60
|
+
`block in transaction'\n - activerecord (4.0.11) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
61
|
+
`within_new_transaction'\n - activerecord (4.0.11) lib/active_record/connection_adapters/abstract/database_statements.rb:203:in
|
62
|
+
`transaction'\n - activerecord (4.0.11) lib/active_record/transactions.rb:209:in
|
63
|
+
`transaction'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:151:in
|
64
|
+
`transaction'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:460:in
|
65
|
+
`_create_record'\n - activerecord (4.0.11) lib/active_record/associations/collection_association.rb:125:in
|
66
|
+
`create!'\n - activerecord (4.0.11) lib/active_record/associations/collection_proxy.rb:276:in
|
67
|
+
`create!'\n - app/controllers/api/v0/colls_controller.rb:23:in `create'\n
|
68
|
+
- actionpack (4.0.11) lib/action_controller/metal/implicit_render.rb:4:in
|
69
|
+
`send_action'\n - actionpack (4.0.11) lib/abstract_controller/base.rb:189:in
|
70
|
+
`process_action'\n - actionpack (4.0.11) lib/action_controller/metal/rendering.rb:10:in
|
71
|
+
`process_action'\n - actionpack (4.0.11) lib/abstract_controller/callbacks.rb:18:in
|
72
|
+
`block in process_action'\n - activesupport (4.0.11) lib/active_support/callbacks.rb:453:in
|
73
|
+
`_run__2458793115659532425__process_action__callbacks'\n - activesupport (4.0.11)
|
74
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\n - actionpack (4.0.11)
|
75
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\n - actionpack
|
76
|
+
(4.0.11) lib/action_controller/metal/rescue.rb:29:in `process_action'\n -
|
77
|
+
actionpack (4.0.11) lib/action_controller/metal/instrumentation.rb:31:in `block
|
78
|
+
in process_action'\n - activesupport (4.0.11) lib/active_support/notifications.rb:159:in
|
79
|
+
`block in instrument'\n - activesupport (4.0.11) lib/active_support/notifications/instrumenter.rb:20:in
|
80
|
+
`instrument'\n - activesupport (4.0.11) lib/active_support/notifications.rb:159:in
|
81
|
+
`instrument'\n - actionpack (4.0.11) lib/action_controller/metal/instrumentation.rb:30:in
|
82
|
+
`process_action'\n - actionpack (4.0.11) lib/action_controller/metal/params_wrapper.rb:250:in
|
83
|
+
`process_action'\n - activerecord (4.0.11) lib/active_record/railties/controller_runtime.rb:18:in
|
84
|
+
`process_action'\n - actionpack (4.0.11) lib/abstract_controller/base.rb:136:in
|
85
|
+
`process'\n - actionpack (4.0.11) lib/abstract_controller/rendering.rb:44:in
|
86
|
+
`process'\n - actionpack (4.0.11) lib/action_controller/metal.rb:195:in `dispatch'\n
|
87
|
+
- actionpack (4.0.11) lib/action_controller/metal/rack_delegation.rb:13:in
|
88
|
+
`dispatch'\n - actionpack (4.0.11) lib/action_controller/metal.rb:231:in `block
|
89
|
+
in action'\n - actionpack (4.0.11) lib/action_dispatch/routing/route_set.rb:82:in
|
90
|
+
`dispatch'\n - actionpack (4.0.11) lib/action_dispatch/routing/route_set.rb:50:in
|
91
|
+
`call'\n - actionpack (4.0.11) lib/action_dispatch/journey/router.rb:71:in
|
92
|
+
`block in call'\n - actionpack (4.0.11) lib/action_dispatch/journey/router.rb:59:in
|
93
|
+
`call'\n - actionpack (4.0.11) lib/action_dispatch/routing/route_set.rb:676:in
|
94
|
+
`call'\n - meta_request (0.2.9) lib/meta_request/middlewares/app_request_handler.rb:13:in
|
95
|
+
`call'\n - rack-contrib (1.1.0) lib/rack/contrib/response_headers.rb:17:in
|
96
|
+
`call'\n - meta_request (0.2.9) lib/meta_request/middlewares/headers.rb:16:in
|
97
|
+
`call'\n - meta_request (0.2.9) lib/meta_request/middlewares/meta_request_handler.rb:13:in
|
98
|
+
`call'\n - rack (1.5.2) lib/rack/etag.rb:23:in `call'\n - rack (1.5.2) lib/rack/conditionalget.rb:35:in
|
99
|
+
`call'\n - rack (1.5.2) lib/rack/head.rb:11:in `call'\n - actionpack (4.0.11)
|
100
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\n - actionpack
|
101
|
+
(4.0.11) lib/action_dispatch/middleware/flash.rb:241:in `call'\n - rack (1.5.2)
|
102
|
+
lib/rack/session/abstract/id.rb:225:in `context'\n - rack (1.5.2) lib/rack/session/abstract/id.rb:220:in
|
103
|
+
`call'\n - actionpack (4.0.11) lib/action_dispatch/middleware/cookies.rb:486:in
|
104
|
+
`call'\n - activerecord (4.0.11) lib/active_record/query_cache.rb:36:in `call'\n
|
105
|
+
- activerecord (4.0.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in
|
106
|
+
`call'\n - activerecord (4.0.11) lib/active_record/migration.rb:373:in `call'\n
|
107
|
+
- actionpack (4.0.11) lib/action_dispatch/middleware/callbacks.rb:29:in `block
|
108
|
+
in call'\n - activesupport (4.0.11) lib/active_support/callbacks.rb:373:in
|
109
|
+
`_run__1676798219391769666__call__callbacks'\n - activesupport (4.0.11) lib/active_support/callbacks.rb:80:in
|
110
|
+
`run_callbacks'\n - actionpack (4.0.11) lib/action_dispatch/middleware/callbacks.rb:27:in
|
111
|
+
`call'\n - actionpack (4.0.11) lib/action_dispatch/middleware/reloader.rb:64:in
|
112
|
+
`call'\n - actionpack (4.0.11) lib/action_dispatch/middleware/remote_ip.rb:76:in
|
113
|
+
`call'\n - better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\n
|
114
|
+
- better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\n
|
115
|
+
- better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'\n - actionpack
|
116
|
+
(4.0.11) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\n
|
117
|
+
- actionpack (4.0.11) lib/action_dispatch/middleware/show_exceptions.rb:30:in
|
118
|
+
`call'\n - railties (4.0.11) lib/rails/rack/logger.rb:38:in `call_app'\n -
|
119
|
+
railties (4.0.11) lib/rails/rack/logger.rb:20:in `block in call'\n - activesupport
|
120
|
+
(4.0.11) lib/active_support/tagged_logging.rb:68:in `block in tagged'\n -
|
121
|
+
activesupport (4.0.11) lib/active_support/tagged_logging.rb:26:in `tagged'\n
|
122
|
+
- activesupport (4.0.11) lib/active_support/tagged_logging.rb:68:in `tagged'\n
|
123
|
+
- railties (4.0.11) lib/rails/rack/logger.rb:20:in `call'\n - actionpack (4.0.11)
|
124
|
+
lib/action_dispatch/middleware/request_id.rb:21:in `call'\n - rack (1.5.2)
|
125
|
+
lib/rack/methodoverride.rb:21:in `call'\n - rack (1.5.2) lib/rack/runtime.rb:17:in
|
126
|
+
`call'\n - activesupport (4.0.11) lib/active_support/cache/strategy/local_cache.rb:83:in
|
127
|
+
`call'\n - rack (1.5.2) lib/rack/lock.rb:17:in `call'\n - actionpack (4.0.11)
|
128
|
+
lib/action_dispatch/middleware/static.rb:84:in `call'\n - rack (1.5.2) lib/rack/sendfile.rb:112:in
|
129
|
+
`call'\n - railties (4.0.11) lib/rails/engine.rb:511:in `call'\n - railties
|
130
|
+
(4.0.11) lib/rails/application.rb:97:in `call'\n - rack (1.5.2) lib/rack/content_length.rb:14:in
|
131
|
+
`call'\n - thin (1.6.2) lib/thin/connection.rb:86:in `block in pre_process'\n
|
132
|
+
- thin (1.6.2) lib/thin/connection.rb:84:in `pre_process'\n - thin (1.6.2)
|
133
|
+
lib/thin/connection.rb:53:in `process'\n - thin (1.6.2) lib/thin/connection.rb:39:in
|
134
|
+
`receive_data'\n - eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'\n
|
135
|
+
- thin (1.6.2) lib/thin/backends/base.rb:73:in `start'\n - thin (1.6.2) lib/thin/server.rb:162:in
|
136
|
+
`start'\n - rack (1.5.2) lib/rack/handler/thin.rb:16:in `run'\n - rack (1.5.2)
|
137
|
+
lib/rack/server.rb:264:in `start'\n - railties (4.0.11) lib/rails/commands/server.rb:84:in
|
138
|
+
`start'\n - railties (4.0.11) lib/rails/commands.rb:76:in `block in <top (required)>'\n
|
139
|
+
- railties (4.0.11) lib/rails/commands.rb:71:in `<top (required)>'\n - bin/rails:4:in
|
140
|
+
`<main>'\n\n"
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 07 Nov 2014 14:57:14 GMT
|
143
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls/07998216-af0a-4262-b7f9-6a7d9c4aeae4
|
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: 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
|
+
- '"1eb07a8f6247b3d30522b013eb9888b5"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- request_method=GET; path=/
|
39
|
+
X-Request-Id:
|
40
|
+
- 676bbfb8-a963-426f-b1c4-68d501194b1e
|
41
|
+
X-Runtime:
|
42
|
+
- '0.107300'
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
Server:
|
46
|
+
- thin 1.6.2 codename Doc Brown
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":"07998216-af0a-4262-b7f9-6a7d9c4aeae4","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"han","name":"Happy
|
50
|
+
Anteaters of Nigeria","coll_type":"origin","created_at":"2014-11-07T14:57:14.130Z","updated_at":"2014-11-07T14:57:14.130Z","quota":123,"ready_for_content":false,"partner_url":"http://localhost:3000/api/v0/partners/5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","lock_version":0,"rel_path":null}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Fri, 07 Nov 2014 14:57:14 GMT
|
53
|
+
- request:
|
54
|
+
method: put
|
55
|
+
uri: http://foo:bar@localhost:3000/api/v0/colls/07998216-af0a-4262-b7f9-6a7d9c4aeae4
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":"07998216-af0a-4262-b7f9-6a7d9c4aeae4","code":"leia","partner_id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","coll_type":"origin","quota":123,"name":"Last
|
59
|
+
Emu In Australia","rel_path":null,"created_at":"2014-11-07T14:57:14.130Z","updated_at":"2014-11-07T14:57:14.130Z","lock_version":0}'
|
60
|
+
headers:
|
61
|
+
User-Agent:
|
62
|
+
- Faraday v0.9.0
|
63
|
+
Content-Type:
|
64
|
+
- application/json
|
65
|
+
Accept-Encoding:
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
+
Accept:
|
68
|
+
- '*/*'
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 204
|
72
|
+
message: No Content
|
73
|
+
headers:
|
74
|
+
X-Frame-Options:
|
75
|
+
- SAMEORIGIN
|
76
|
+
X-Xss-Protection:
|
77
|
+
- 1; mode=block
|
78
|
+
X-Content-Type-Options:
|
79
|
+
- nosniff
|
80
|
+
X-Ua-Compatible:
|
81
|
+
- chrome=1
|
82
|
+
X-Meta-Request-Version:
|
83
|
+
- 0.2.9
|
84
|
+
Cache-Control:
|
85
|
+
- no-cache
|
86
|
+
X-Request-Id:
|
87
|
+
- 7ce395f6-cb3f-46c5-9a71-9be055ccf124
|
88
|
+
X-Runtime:
|
89
|
+
- '0.190450'
|
90
|
+
Connection:
|
91
|
+
- close
|
92
|
+
Server:
|
93
|
+
- thin 1.6.2 codename Doc Brown
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: ''
|
97
|
+
http_version:
|
98
|
+
recorded_at: Fri, 07 Nov 2014 14:57:14 GMT
|
99
|
+
recorded_with: VCR 2.9.3
|