reviewed 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/faraday/api_key.rb +3 -1
- data/lib/faraday/errors.rb +14 -0
- data/lib/reviewed/client.rb +2 -0
- data/lib/reviewed/product.rb +1 -0
- data/lib/reviewed/version.rb +1 -1
- data/lib/reviewed.rb +3 -1
- data/spec/article_spec.rb +2 -2
- data/spec/client_spec.rb +1 -1
- data/spec/faraday/api_key_spec.rb +26 -21
- data/spec/faraday/errors_spec.rb +40 -0
- data/spec/fixtures/vcr/article/find_page.yml +149 -127
- data/spec/fixtures/vcr/article/grill.yml +558 -448
- data/spec/fixtures/vcr/article/products.yml +2205 -434
- data/spec/fixtures/vcr/client/perform/no_params.yml +282 -238
- data/spec/fixtures/vcr/client/perform/params.yml +73 -60
- data/spec/fixtures/vcr/collection/products.yml +393 -375
- data/spec/fixtures/vcr/product/attachments.yml +68 -46
- data/spec/fixtures/vcr/product/manufacturer_specs.yml +65 -46
- data/spec/fixtures/vcr/request/collection.yml +282 -238
- data/spec/fixtures/vcr/request/object.yml +518 -7083
- data/spec/fixtures/vcr/request/where/collection.yml +624 -579
- data/spec/request_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -3
- metadata +5 -6
- data/spec/fixtures/vcr/request/perform/no_params.yml +0 -290
- data/spec/fixtures/vcr/request/perform/params.yml +0 -112
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://the-guide-staging.herokuapp.com/api/v1/products/minden-master-ii
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,15 +21,6 @@ http_interactions:
|
|
21
21
|
message: !binary |-
|
22
22
|
T0s=
|
23
23
|
headers:
|
24
|
-
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
25
|
-
- !binary |-
|
26
|
-
Kg==
|
27
|
-
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
|
28
|
-
- !binary |-
|
29
|
-
T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
|
30
|
-
!binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
|
31
|
-
- !binary |-
|
32
|
-
MTAwMA==
|
33
24
|
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctQ3JlZGVudGlhbHM=":
|
34
25
|
- !binary |-
|
35
26
|
dHJ1ZQ==
|
@@ -37,62 +28,93 @@ http_interactions:
|
|
37
28
|
- !binary |-
|
38
29
|
eC1wYWdpbmF0aW9uLCB4LXJlcXVlc3RlZC13aXRoLCB4LXJlcXVlc3RlZC1i
|
39
30
|
eSwgeC1yZXZpZXdlZC1hdXRob3JpemF0aW9uLCBDb250ZW50LVR5cGU=
|
31
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
|
32
|
+
- !binary |-
|
33
|
+
T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
|
34
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
35
|
+
- !binary |-
|
36
|
+
Kg==
|
37
|
+
!binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
|
38
|
+
- !binary |-
|
39
|
+
MTAwMA==
|
40
40
|
!binary "Q2FjaGUtQ29udHJvbA==":
|
41
41
|
- !binary |-
|
42
42
|
bm8tY2FjaGUsIG5vLXN0b3Jl
|
43
|
-
!binary "
|
43
|
+
!binary "Q29udGVudC1FbmNvZGluZw==":
|
44
44
|
- !binary |-
|
45
|
-
|
45
|
+
Z3ppcA==
|
46
46
|
!binary "Q29udGVudC1UeXBl":
|
47
47
|
- !binary |-
|
48
48
|
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
49
|
+
!binary "RGF0ZQ==":
|
50
|
+
- !binary |-
|
51
|
+
VHVlLCAwNCBEZWMgMjAxMiAyMDowNDowOSBHTVQ=
|
52
|
+
!binary "RXRhZw==":
|
53
|
+
- !binary |-
|
54
|
+
ImUwYWEwMjFlMjFkZGRiZDZkOGNlY2VjNzFlOWNmNTY0Ig==
|
55
|
+
!binary "TGFzdC1Nb2RpZmllZA==":
|
56
|
+
- !binary |-
|
57
|
+
U3VuLCAwMiBEZWMgMjAxMiAwMjozNjoyNCBHTVQ=
|
58
|
+
!binary "U2VydmVy":
|
59
|
+
- !binary |-
|
60
|
+
dGhpbiAxLjUuMCBjb2RlbmFtZSBLbmlmZQ==
|
61
|
+
!binary "U3RyaWN0LVRyYW5zcG9ydC1TZWN1cml0eQ==":
|
62
|
+
- !binary |-
|
63
|
+
bWF4LWFnZT0zMTUzNjAwMA==
|
49
64
|
!binary "VmFyeQ==":
|
50
65
|
- !binary |-
|
51
66
|
QWNjZXB0LUVuY29kaW5n
|
52
|
-
!binary "
|
53
|
-
- !binary |-
|
54
|
-
Z3ppcA==
|
55
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
67
|
+
!binary "WC1SYWNrLUNhY2hl":
|
56
68
|
- !binary |-
|
57
|
-
|
58
|
-
!binary "
|
69
|
+
bWlzcw==
|
70
|
+
!binary "WC1SYXRlLUxpbWl0":
|
59
71
|
- !binary |-
|
60
|
-
|
72
|
+
OTk4ODI=
|
61
73
|
!binary "WC1SZXF1ZXN0LUlk":
|
62
74
|
- !binary |-
|
63
|
-
|
75
|
+
MzA3N2FkYjE3ODc0MzZkZDAxZWVjMDU4OTNiNjRkYmI=
|
64
76
|
!binary "WC1SdW50aW1l":
|
65
77
|
- !binary |-
|
66
|
-
|
67
|
-
!binary "
|
78
|
+
MC4wMDE2ODY=
|
79
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
80
|
- !binary |-
|
69
|
-
|
70
|
-
!binary "
|
81
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
82
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
71
83
|
- !binary |-
|
72
|
-
|
84
|
+
Y2h1bmtlZA==
|
85
|
+
!binary "Q29ubmVjdGlvbg==":
|
86
|
+
- !binary |-
|
87
|
+
a2VlcC1hbGl2ZQ==
|
73
88
|
body:
|
74
89
|
encoding: ASCII-8BIT
|
75
90
|
string: !binary |-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
91
|
+
H4sIAKi+ulAAA8SY3W/bNhDA/xVBTx3mD1KyLEsvA9aunYGmC9K8bEEhUCTt
|
92
|
+
sJNEgaTy0SD/+46SHMl2bGNIovohDskz73e8I+/IB1cwN3YDlAZhyHBEo9T3
|
93
|
+
5iGb0wjzlLkjlypODGcJMSDnIeyNUTDGwaWHY+zFOPgHZKqS7chYMe8SebE/
|
94
|
+
j72ZlSlIzmH0TBSMF84Z0YYrZ7mEEZ1VaxjJ65FxXo+MhYCRxNyX9kd/ypzH
|
95
|
+
8SclskzDN9EwZoe0G1+550qWpODut5FbKskqahJFjChgzqLKspGrSPFv3Xxw
|
96
|
+
jTQk6/c3/z+O3Fyr0o1nYTRBI5coI2jGE8FqDbA60cJHszliPGQpwxhh7NHQ
|
97
|
+
qrzlqRamLxoEq9WqESXU9xB8KKrpqjQT+jqRRX8lF5c4iv1ZjNCvCMHfejnp
|
98
|
+
hrFUgvJkrUiacpXUvgIBVaXQnzy5bo5wuKXRTzmIpWAh60shuiXlLdjTZHZ1
|
99
|
+
Ts23HwoYj73FJXAHOPYPhcKeTBsKMIodcKZTO9a5aDjAZq5yobWQhbZUoBS4
|
100
|
+
jKr4hmDTanRtWoxro+R903x8fHKN9UvPtme9c8o2jI/a5scIZPph3sTqsljJ
|
101
|
+
CZW5/a2CuHPXdbfouqlktfjF8tUMh0jLSVGtCDWVgqDRJac7axCSiDdr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e9nvBFAAA
|
96
118
|
http_version:
|
97
|
-
recorded_at:
|
119
|
+
recorded_at: Tue, 04 Dec 2012 20:04:18 GMT
|
98
120
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://the-guide-staging.herokuapp.com/api/v1/products/minden-master-ii
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,15 +21,6 @@ http_interactions:
|
|
21
21
|
message: !binary |-
|
22
22
|
T0s=
|
23
23
|
headers:
|
24
|
-
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
25
|
-
- !binary |-
|
26
|
-
Kg==
|
27
|
-
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
|
28
|
-
- !binary |-
|
29
|
-
T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
|
30
|
-
!binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
|
31
|
-
- !binary |-
|
32
|
-
MTAwMA==
|
33
24
|
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctQ3JlZGVudGlhbHM=":
|
34
25
|
- !binary |-
|
35
26
|
dHJ1ZQ==
|
@@ -37,62 +28,90 @@ http_interactions:
|
|
37
28
|
- !binary |-
|
38
29
|
eC1wYWdpbmF0aW9uLCB4LXJlcXVlc3RlZC13aXRoLCB4LXJlcXVlc3RlZC1i
|
39
30
|
eSwgeC1yZXZpZXdlZC1hdXRob3JpemF0aW9uLCBDb250ZW50LVR5cGU=
|
31
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
|
32
|
+
- !binary |-
|
33
|
+
T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
|
34
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
35
|
+
- !binary |-
|
36
|
+
Kg==
|
37
|
+
!binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
|
38
|
+
- !binary |-
|
39
|
+
MTAwMA==
|
40
40
|
!binary "Q2FjaGUtQ29udHJvbA==":
|
41
41
|
- !binary |-
|
42
42
|
bm8tY2FjaGUsIG5vLXN0b3Jl
|
43
|
-
!binary "
|
43
|
+
!binary "Q29udGVudC1FbmNvZGluZw==":
|
44
44
|
- !binary |-
|
45
|
-
|
45
|
+
Z3ppcA==
|
46
46
|
!binary "Q29udGVudC1UeXBl":
|
47
47
|
- !binary |-
|
48
48
|
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
49
|
+
!binary "RGF0ZQ==":
|
50
|
+
- !binary |-
|
51
|
+
VHVlLCAwNCBEZWMgMjAxMiAyMDowNDoxMCBHTVQ=
|
52
|
+
!binary "TGFzdC1Nb2RpZmllZA==":
|
53
|
+
- !binary |-
|
54
|
+
U3VuLCAwMiBEZWMgMjAxMiAwMjozNjoyNCBHTVQ=
|
55
|
+
!binary "U2VydmVy":
|
56
|
+
- !binary |-
|
57
|
+
dGhpbiAxLjUuMCBjb2RlbmFtZSBLbmlmZQ==
|
58
|
+
!binary "U3RyaWN0LVRyYW5zcG9ydC1TZWN1cml0eQ==":
|
59
|
+
- !binary |-
|
60
|
+
bWF4LWFnZT0zMTUzNjAwMA==
|
49
61
|
!binary "VmFyeQ==":
|
50
62
|
- !binary |-
|
51
63
|
QWNjZXB0LUVuY29kaW5n
|
52
|
-
!binary "
|
64
|
+
!binary "WC1SYWNrLUNhY2hl":
|
53
65
|
- !binary |-
|
54
|
-
|
55
|
-
!binary "
|
56
|
-
- !binary |-
|
57
|
-
SUU9RWRnZQ==
|
58
|
-
!binary "RXRhZw==":
|
66
|
+
bWlzcw==
|
67
|
+
!binary "WC1SYXRlLUxpbWl0":
|
59
68
|
- !binary |-
|
60
|
-
|
69
|
+
OTk4ODA=
|
61
70
|
!binary "WC1SZXF1ZXN0LUlk":
|
62
71
|
- !binary |-
|
63
|
-
|
72
|
+
NTJlMDAwN2FlMDY4NzczMTM4OTYzZGU0ZGVkM2IzNzM=
|
64
73
|
!binary "WC1SdW50aW1l":
|
65
74
|
- !binary |-
|
66
|
-
|
67
|
-
!binary "
|
75
|
+
MC4xNTc0MjM=
|
76
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
77
|
- !binary |-
|
69
|
-
|
70
|
-
!binary "
|
78
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
79
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
71
80
|
- !binary |-
|
72
|
-
|
81
|
+
Y2h1bmtlZA==
|
82
|
+
!binary "Q29ubmVjdGlvbg==":
|
83
|
+
- !binary |-
|
84
|
+
a2VlcC1hbGl2ZQ==
|
73
85
|
body:
|
74
86
|
encoding: ASCII-8BIT
|
75
87
|
string: !binary |-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
88
|
+
H4sIAKi+ulAAA8SY3W/bNhDA/xVBTx3mD1KyLEsvA9aunYGmC9K8bEEhUCTt
|
89
|
+
sJNEgaTy0SD/+46SHMl2bGNIovohDskz73e8I+/IB1cwN3YDlAZhyHBEo9T3
|
90
|
+
5iGb0wjzlLkjlypODGcJMSDnIeyNUTDGwaWHY+zFOPgHZKqS7chYMe8SebE/
|
91
|
+
j72ZlSlIzmH0TBSMF84Z0YYrZ7mEEZ1VaxjJ65FxXo+MhYCRxNyX9kd/ypzH
|
92
|
+
8SclskzDN9EwZoe0G1+550qWpODut5FbKskqahJFjChgzqLKspGrSPFv3Xxw
|
93
|
+
jTQk6/c3/z+O3Fyr0o1nYTRBI5coI2jGE8FqDbA60cJHsz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hUhh00ZjchhfY5DAA0O1Oo9heSDiDYzV6jyG5SMgx96gWK3O
|
110
|
+
Y1gBsm4eOrJqncew4O50NxsYq9V5DCuaDY/V6jyF5Q8c8q3OU1hwdx8cC3Qe
|
111
|
+
wZJtvhkS6xAN3JopqdPVprInmWkq/rYNeYbYBNDcZy2w/qnEozpfJVr8gNzl
|
112
|
+
RYG/sJfqwsDkm5wMCXnNp99LXtv3apfs+pq882zy7APLsRc0HHvh8wl8X2Yr
|
113
|
+
ge++m22eGBovZXItk177tZ5UFLlNNJXKPqo8QFtTkgF1v8vW83WpHLtV8dTo
|
114
|
+
+n/bTP46TP8JAAAA//8DADoe9nvBFAAA
|
96
115
|
http_version:
|
97
|
-
recorded_at:
|
116
|
+
recorded_at: Tue, 04 Dec 2012 20:04:19 GMT
|
98
117
|
recorded_with: VCR 2.3.0
|