reviewed 0.0.6 → 0.0.7
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.
- data/lib/reviewed/article.rb +10 -8
- data/lib/reviewed/attachment.rb +4 -0
- data/lib/reviewed/base.rb +25 -40
- data/lib/reviewed/client.rb +56 -0
- data/lib/reviewed/collection.rb +16 -19
- data/lib/reviewed/configurable.rb +26 -0
- data/lib/reviewed/embeddable.rb +74 -0
- data/lib/reviewed/page.rb +4 -0
- data/lib/reviewed/product.rb +6 -2
- data/lib/reviewed/utils.rb +25 -0
- data/lib/reviewed/version.rb +1 -1
- data/lib/reviewed.rb +20 -33
- data/reviewed.gemspec +2 -1
- data/spec/article_spec.rb +65 -39
- data/spec/base_spec.rb +39 -74
- data/spec/client_spec.rb +95 -0
- data/spec/collection_spec.rb +5 -6
- data/spec/configurable_spec.rb +44 -0
- data/spec/embeddable_spec.rb +176 -0
- data/spec/fixtures/vcr/article/attachments.yml +464 -457
- data/spec/fixtures/vcr/article/find_page.yml +115 -111
- data/spec/fixtures/vcr/article/products.yml +464 -457
- data/spec/fixtures/vcr/base/article/find.yml +7618 -0
- data/spec/fixtures/vcr/base/where_collection.yml +600 -7626
- data/spec/fixtures/vcr/collection/products.yml +501 -498
- data/spec/fixtures/vcr/product/attachments.yml +94 -68
- data/spec/fixtures/vcr/utils/collection.yml +346 -0
- data/spec/fixtures/vcr/utils/object.yml +7618 -0
- data/spec/fixtures/vcr/utils.yml +7961 -0
- data/spec/product_spec.rb +31 -17
- data/spec/reviewed_spec.rb +19 -0
- data/spec/utils_spec.rb +40 -0
- metadata +45 -22
- data/lib/reviewed/request.rb +0 -23
- data/lib/reviewed/response.rb +0 -12
- data/lib/reviewed/util.rb +0 -16
- data/spec/fixtures/vcr/base/find_error_key.yml +0 -172
- data/spec/fixtures/vcr/base/find_ok.yml +0 -1155
- data/spec/fixtures/vcr/request/authors.yml +0 -133
- data/spec/fixtures/vcr/response/authors.yml +0 -133
- data/spec/request_spec.rb +0 -15
- data/spec/response_spec.rb +0 -26
- data/spec/util_spec.rb +0 -33
@@ -7,12 +7,12 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
10
|
X-Reviewed-Authorization:
|
15
11
|
- '1234567890'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
16
|
User-Agent:
|
17
17
|
- Ruby
|
18
18
|
response:
|
@@ -48,10 +48,10 @@ http_interactions:
|
|
48
48
|
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
49
49
|
!binary "RGF0ZQ==":
|
50
50
|
- !binary |-
|
51
|
-
|
51
|
+
VGh1LCAyMiBOb3YgMjAxMiAwMDowODoxOSBHTVQ=
|
52
52
|
!binary "RXRhZw==":
|
53
53
|
- !binary |-
|
54
|
-
|
54
|
+
ImUwYWEwMjFlMjFkZGRiZDZkOGNlY2VjNzFlOWNmNTY0Ig==
|
55
55
|
!binary "U2VydmVy":
|
56
56
|
- !binary |-
|
57
57
|
dGhpbiAxLjUuMCBjb2RlbmFtZSBLbmlmZQ==
|
@@ -66,13 +66,13 @@ http_interactions:
|
|
66
66
|
bWlzcw==
|
67
67
|
!binary "WC1SYXRlLUxpbWl0":
|
68
68
|
- !binary |-
|
69
|
-
|
69
|
+
OTk5NjM=
|
70
70
|
!binary "WC1SZXF1ZXN0LUlk":
|
71
71
|
- !binary |-
|
72
|
-
|
72
|
+
Y2NiNTE1OGFiMjI5YmMxNjFmN2EzNjBkMzNhZWI4N2E=
|
73
73
|
!binary "WC1SdW50aW1l":
|
74
74
|
- !binary |-
|
75
|
-
|
75
|
+
MC4wMDUxOTA=
|
76
76
|
!binary "WC1VYS1Db21wYXRpYmxl":
|
77
77
|
- !binary |-
|
78
78
|
SUU9RWRnZSxjaHJvbWU9MQ==
|
@@ -85,106 +85,110 @@ http_interactions:
|
|
85
85
|
body:
|
86
86
|
encoding: ASCII-8BIT
|
87
87
|
string: !binary |-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
/
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
88
|
+
H4sIAPNsrVAAA+xdC4/bRpL+Kw3hEO/iRho+REoULreXTNbJAHZmMJYR7MaB
|
89
|
+
0CSbUscUyeVjlNmB//tVdfOp0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tNjmNOz8VxrC/FcbrctTs3x2mLrclxOu6oR47THm+T43RF3B/H
|
183
|
+
aY+4yXG6Iu6P47RH3OQ4XRH3x3G6WHGd43RF3B/HaY+4yXG6Iu6P47RH3OQ4
|
184
|
+
pyDuh+N0Q6yffPL64zjdEFccpyPiHjlOa8QnAP3KHOdLbq35Sn1sGuciOfsv
|
185
|
+
NV4KOZdCzqWQcynkXAo5l0LOpZBzKeT8aQs54rfPL4WcSyHnUsi5FHIuhZxL
|
186
|
+
IedSyLkUcv6vFXLM3d/tvhRyLoWcSyHnUsi5FHIuhZxLIedSyPlzF3J2f7Pz
|
187
|
+
Usi5FHIuhZxLIedSyLkUci6FnEsh509WyHn5P9Y9SnIO/khffUxOcpYxH+7+
|
188
|
+
xcSDPz21YnH4xX54amrZOrWsico029QUy/J0VR9704mjO/BJpRo1tcnUKGjN
|
189
|
+
0T30SGHaYysozHF0/dGV9ugKunIcXX/UpD26gpocR9cfDelidZKGHEfXH+Vo
|
190
|
+
j66gHMfR9Ucv2qMr6EU7dP1QiW7o9Fanoj/a0A0d0oaj6HqkCK3RHQF1lp+v
|
191
|
+
6gtsM8BPxrpyrl+x+v/725v9TPS/AgAAAP//AwDnZ/lynoIAAA==
|
188
192
|
http_version:
|
189
|
-
recorded_at:
|
190
|
-
recorded_with: VCR 2.
|
193
|
+
recorded_at: Thu, 22 Nov 2012 00:08:28 GMT
|
194
|
+
recorded_with: VCR 2.3.0
|