reviewed 0.8.0 → 0.9.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.
@@ -794,4 +794,64 @@ http_interactions:
794
794
  string: '{"data":[{"id":"512be2bd42abf1467600021f","created_at":"2013-02-25T22:16:29Z","updated_at":"2013-02-28T06:15:49Z","name":"rfiDCI-940x110.jpg","type":"file","tags":["hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s50x50_rfiDCI-940x110.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s150x150_rfiDCI-940x110.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s200x75_rfiDCI-940x110.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s250x250_rfiDCI-940x110.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s300x150_rfiDCI-940x110.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s300x112_rfiDCI-940x110.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s500x500_rfiDCI-940x110.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s600x400_rfiDCI-940x110.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s600x600_rfiDCI-940x110.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s630x235_rfiDCI-940x110.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x400_rfiDCI-940x110.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x350_rfiDCI-940x110.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x110_rfiDCI-940x110.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/rfiDCI-940x110.jpg"},"caption":"","alt_text":"","data":{"content_type":"image/jpeg","url":"http://reviewed-production.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/rfiDCI-940x110.jpg","file_size":31286},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/512be2bd42abf1467600021f","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/512be2bd42abf1467600021f"}}}]}'
795
795
  http_version:
796
796
  recorded_at: Mon, 09 Sep 2013 19:27:08 GMT
797
+ - request:
798
+ method: get
799
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb9a81bd0286d55504b952/attachments?tags%5B0%5D=old-hero&tags%5B1%5D=hero
800
+ body:
801
+ encoding: US-ASCII
802
+ string: ''
803
+ headers:
804
+ User-Agent:
805
+ - Faraday v0.8.8
806
+ X-Reviewed-Authorization:
807
+ - 38e397252ec670ec441733a95204f141
808
+ Accept-Encoding:
809
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
810
+ Accept:
811
+ - '*/*'
812
+ response:
813
+ status:
814
+ code: 200
815
+ message: OK
816
+ headers:
817
+ Access-Control-Allow-Credentials:
818
+ - 'true'
819
+ Access-Control-Allow-Headers:
820
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
821
+ x-skip-cache, Content-Type
822
+ Access-Control-Allow-Methods:
823
+ - OPTIONS, GET, POST, PUT, DELETE
824
+ Access-Control-Allow-Origin:
825
+ - '*'
826
+ Access-Control-Max-Age:
827
+ - '1000'
828
+ Cache-Control:
829
+ - no-cache, no-store
830
+ Content-Type:
831
+ - application/json; charset=utf-8
832
+ Date:
833
+ - Tue, 10 Sep 2013 15:41:58 GMT
834
+ Status:
835
+ - 200 OK
836
+ Strict-Transport-Security:
837
+ - max-age=31536000
838
+ Vary:
839
+ - Accept-Encoding
840
+ X-Rack-Cache:
841
+ - miss
842
+ X-Request-Id:
843
+ - 8c7d5ddc2da73aca2a15ed7d257621ad
844
+ X-Runtime:
845
+ - '0.166364'
846
+ X-Ua-Compatible:
847
+ - IE=Edge,chrome=1
848
+ Transfer-Encoding:
849
+ - chunked
850
+ Connection:
851
+ - keep-alive
852
+ body:
853
+ encoding: UTF-8
854
+ string: '{"data":[{"id":"512be2bd42abf1467600021f","created_at":"2013-02-25T22:16:29Z","updated_at":"2013-02-28T06:15:49Z","name":"rfiDCI-940x110.jpg","type":"file","tags":["hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s50x50_rfiDCI-940x110.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s150x150_rfiDCI-940x110.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s200x75_rfiDCI-940x110.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s250x250_rfiDCI-940x110.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s300x150_rfiDCI-940x110.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s300x112_rfiDCI-940x110.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s500x500_rfiDCI-940x110.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s600x400_rfiDCI-940x110.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s600x600_rfiDCI-940x110.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s630x235_rfiDCI-940x110.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x400_rfiDCI-940x110.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x350_rfiDCI-940x110.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/s940x110_rfiDCI-940x110.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/rfiDCI-940x110.jpg"},"caption":"","alt_text":"","data":{"content_type":"image/jpeg","url":"http://reviewed-production.s3.amazonaws.com/attachment/492f392eab69240aede3fd2425a9c2326092c763/rfiDCI-940x110.jpg","file_size":31286},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/512be2bd42abf1467600021f","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/512be2bd42abf1467600021f"}}},{"id":"50fb9a84bd0286d55504b972","created_at":"2013-01-20T07:19:32Z","updated_at":"2013-01-20T07:19:32Z","name":"boy2012-dci.jpg","type":"file","tags":["old-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s50x50_boy2012-dci.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s150x150_boy2012-dci.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s200x75_boy2012-dci.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s250x250_boy2012-dci.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s300x150_boy2012-dci.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s300x112_boy2012-dci.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s500x500_boy2012-dci.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s600x400_boy2012-dci.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s600x600_boy2012-dci.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s630x235_boy2012-dci.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s940x400_boy2012-dci.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s940x350_boy2012-dci.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/s940x110_boy2012-dci.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/boy2012-dci.jpg"},"caption":null,"alt_text":null,"data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/86b73c8f926ec76ded8510efde92c567e1c99a4b/boy2012-dci.jpg","file_size":57191,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb9a84bd0286d55504b972","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb9a84bd0286d55504b972"}}}]}'
855
+ http_version:
856
+ recorded_at: Tue, 10 Sep 2013 15:41:58 GMT
797
857
  recorded_with: VCR 2.5.0
@@ -130,4 +130,124 @@ http_interactions:
130
130
  string: '{"data":[]}'
131
131
  http_version:
132
132
  recorded_at: Mon, 29 Jul 2013 21:25:04 GMT
133
- recorded_with: VCR 2.4.0
133
+ - request:
134
+ method: get
135
+ uri: https://the-guide-staging.herokuapp.com/api/v1/products/50fa307696ab5860160c7a7e/attachments?tags%5B0%5D=vanity
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.8
142
+ X-Reviewed-Authorization:
143
+ - 38e397252ec670ec441733a95204f141
144
+ Accept-Encoding:
145
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
146
+ Accept:
147
+ - '*/*'
148
+ response:
149
+ status:
150
+ code: 200
151
+ message: OK
152
+ headers:
153
+ Access-Control-Allow-Credentials:
154
+ - 'true'
155
+ Access-Control-Allow-Headers:
156
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
157
+ x-skip-cache, Content-Type
158
+ Access-Control-Allow-Methods:
159
+ - OPTIONS, GET, POST, PUT, DELETE
160
+ Access-Control-Allow-Origin:
161
+ - '*'
162
+ Access-Control-Max-Age:
163
+ - '1000'
164
+ Cache-Control:
165
+ - no-cache, no-store
166
+ Content-Type:
167
+ - application/json; charset=utf-8
168
+ Date:
169
+ - Tue, 10 Sep 2013 15:43:08 GMT
170
+ Status:
171
+ - 200 OK
172
+ Strict-Transport-Security:
173
+ - max-age=31536000
174
+ Vary:
175
+ - Accept-Encoding
176
+ X-Rack-Cache:
177
+ - miss
178
+ X-Request-Id:
179
+ - e4ced837799b34e500915d2c8c7078e6
180
+ X-Runtime:
181
+ - '0.018589'
182
+ X-Ua-Compatible:
183
+ - IE=Edge,chrome=1
184
+ Transfer-Encoding:
185
+ - chunked
186
+ Connection:
187
+ - keep-alive
188
+ body:
189
+ encoding: UTF-8
190
+ string: '{"data":[{"id":"50fca08abd02862d77009628","created_at":"2013-01-21T01:57:30Z","updated_at":"2013-01-21T01:57:30Z","name":"Minden-360MD-vanity.jpg","type":"file","tags":["vanity"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s50x50_Minden-360MD-vanity.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s150x150_Minden-360MD-vanity.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s200x75_Minden-360MD-vanity.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s250x250_Minden-360MD-vanity.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s300x150_Minden-360MD-vanity.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s300x112_Minden-360MD-vanity.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s500x500_Minden-360MD-vanity.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s600x400_Minden-360MD-vanity.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s600x600_Minden-360MD-vanity.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s630x235_Minden-360MD-vanity.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x400_Minden-360MD-vanity.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x350_Minden-360MD-vanity.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x110_Minden-360MD-vanity.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/Minden-360MD-vanity.jpg"},"caption":null,"alt_text":null,"data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/Minden-360MD-vanity.jpg","file_size":29538,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fca08abd02862d77009628","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fca08abd02862d77009628"}}}]}'
191
+ http_version:
192
+ recorded_at: Tue, 10 Sep 2013 15:43:09 GMT
193
+ - request:
194
+ method: get
195
+ uri: https://the-guide-staging.herokuapp.com/api/v1/products/50fa307696ab5860160c7a7e/attachments?tags%5B0%5D=doesnotcompute
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ''
199
+ headers:
200
+ User-Agent:
201
+ - Faraday v0.8.8
202
+ X-Reviewed-Authorization:
203
+ - 38e397252ec670ec441733a95204f141
204
+ Accept-Encoding:
205
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
206
+ Accept:
207
+ - '*/*'
208
+ response:
209
+ status:
210
+ code: 200
211
+ message: OK
212
+ headers:
213
+ Access-Control-Allow-Credentials:
214
+ - 'true'
215
+ Access-Control-Allow-Headers:
216
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
217
+ x-skip-cache, Content-Type
218
+ Access-Control-Allow-Methods:
219
+ - OPTIONS, GET, POST, PUT, DELETE
220
+ Access-Control-Allow-Origin:
221
+ - '*'
222
+ Access-Control-Max-Age:
223
+ - '1000'
224
+ Cache-Control:
225
+ - no-cache, no-store
226
+ Content-Type:
227
+ - application/json; charset=utf-8
228
+ Date:
229
+ - Tue, 10 Sep 2013 16:02:07 GMT
230
+ Status:
231
+ - 200 OK
232
+ Strict-Transport-Security:
233
+ - max-age=31536000
234
+ Vary:
235
+ - Accept-Encoding
236
+ X-Rack-Cache:
237
+ - miss
238
+ X-Request-Id:
239
+ - 56be4cd79a0b6bb0c81d2ee3db3f02e7
240
+ X-Runtime:
241
+ - '0.158133'
242
+ X-Ua-Compatible:
243
+ - IE=Edge,chrome=1
244
+ Transfer-Encoding:
245
+ - chunked
246
+ Connection:
247
+ - keep-alive
248
+ body:
249
+ encoding: UTF-8
250
+ string: '{"data":[]}'
251
+ http_version:
252
+ recorded_at: Tue, 10 Sep 2013 16:02:09 GMT
253
+ recorded_with: VCR 2.5.0
@@ -130,4 +130,124 @@ http_interactions:
130
130
  string: '{"data":[]}'
131
131
  http_version:
132
132
  recorded_at: Mon, 29 Jul 2013 21:25:03 GMT
133
- recorded_with: VCR 2.4.0
133
+ - request:
134
+ method: get
135
+ uri: https://the-guide-staging.herokuapp.com/api/v1/products/50fa307696ab5860160c7a7e/attachments?tags%5B0%5D=vanity
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.8
142
+ X-Reviewed-Authorization:
143
+ - 38e397252ec670ec441733a95204f141
144
+ Accept-Encoding:
145
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
146
+ Accept:
147
+ - '*/*'
148
+ response:
149
+ status:
150
+ code: 200
151
+ message: OK
152
+ headers:
153
+ Access-Control-Allow-Credentials:
154
+ - 'true'
155
+ Access-Control-Allow-Headers:
156
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
157
+ x-skip-cache, Content-Type
158
+ Access-Control-Allow-Methods:
159
+ - OPTIONS, GET, POST, PUT, DELETE
160
+ Access-Control-Allow-Origin:
161
+ - '*'
162
+ Access-Control-Max-Age:
163
+ - '1000'
164
+ Cache-Control:
165
+ - no-cache, no-store
166
+ Content-Type:
167
+ - application/json; charset=utf-8
168
+ Date:
169
+ - Tue, 10 Sep 2013 15:43:08 GMT
170
+ Status:
171
+ - 200 OK
172
+ Strict-Transport-Security:
173
+ - max-age=31536000
174
+ Vary:
175
+ - Accept-Encoding
176
+ X-Rack-Cache:
177
+ - miss
178
+ X-Request-Id:
179
+ - c52bb2847886777163bb972ca992f59e
180
+ X-Runtime:
181
+ - '0.078723'
182
+ X-Ua-Compatible:
183
+ - IE=Edge,chrome=1
184
+ Transfer-Encoding:
185
+ - chunked
186
+ Connection:
187
+ - keep-alive
188
+ body:
189
+ encoding: UTF-8
190
+ string: '{"data":[{"id":"50fca08abd02862d77009628","created_at":"2013-01-21T01:57:30Z","updated_at":"2013-01-21T01:57:30Z","name":"Minden-360MD-vanity.jpg","type":"file","tags":["vanity"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s50x50_Minden-360MD-vanity.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s150x150_Minden-360MD-vanity.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s200x75_Minden-360MD-vanity.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s250x250_Minden-360MD-vanity.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s300x150_Minden-360MD-vanity.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s300x112_Minden-360MD-vanity.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s500x500_Minden-360MD-vanity.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s600x400_Minden-360MD-vanity.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s600x600_Minden-360MD-vanity.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s630x235_Minden-360MD-vanity.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x400_Minden-360MD-vanity.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x350_Minden-360MD-vanity.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/s940x110_Minden-360MD-vanity.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/Minden-360MD-vanity.jpg"},"caption":null,"alt_text":null,"data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/3b2dd14de6c1b9abfafa0df5e479b547ef7c7bbd/Minden-360MD-vanity.jpg","file_size":29538,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fca08abd02862d77009628","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fca08abd02862d77009628"}}}]}'
191
+ http_version:
192
+ recorded_at: Tue, 10 Sep 2013 15:43:09 GMT
193
+ - request:
194
+ method: get
195
+ uri: https://the-guide-staging.herokuapp.com/api/v1/products/50fa307696ab5860160c7a7e/attachments?tags%5B0%5D=gallery
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ''
199
+ headers:
200
+ User-Agent:
201
+ - Faraday v0.8.8
202
+ X-Reviewed-Authorization:
203
+ - 38e397252ec670ec441733a95204f141
204
+ Accept-Encoding:
205
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
206
+ Accept:
207
+ - '*/*'
208
+ response:
209
+ status:
210
+ code: 200
211
+ message: OK
212
+ headers:
213
+ Access-Control-Allow-Credentials:
214
+ - 'true'
215
+ Access-Control-Allow-Headers:
216
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
217
+ x-skip-cache, Content-Type
218
+ Access-Control-Allow-Methods:
219
+ - OPTIONS, GET, POST, PUT, DELETE
220
+ Access-Control-Allow-Origin:
221
+ - '*'
222
+ Access-Control-Max-Age:
223
+ - '1000'
224
+ Cache-Control:
225
+ - no-cache, no-store
226
+ Content-Type:
227
+ - application/json; charset=utf-8
228
+ Date:
229
+ - Tue, 10 Sep 2013 16:02:07 GMT
230
+ Status:
231
+ - 200 OK
232
+ Strict-Transport-Security:
233
+ - max-age=31536000
234
+ Vary:
235
+ - Accept-Encoding
236
+ X-Rack-Cache:
237
+ - miss
238
+ X-Request-Id:
239
+ - d86a1c5384d94033625198db34c048b4
240
+ X-Runtime:
241
+ - '0.043245'
242
+ X-Ua-Compatible:
243
+ - IE=Edge,chrome=1
244
+ Transfer-Encoding:
245
+ - chunked
246
+ Connection:
247
+ - keep-alive
248
+ body:
249
+ encoding: UTF-8
250
+ string: '{"data":[]}'
251
+ http_version:
252
+ recorded_at: Tue, 10 Sep 2013 16:02:08 GMT
253
+ recorded_with: VCR 2.5.0
data/spec/product_spec.rb CHANGED
@@ -20,24 +20,24 @@ describe Reviewed::Product do
20
20
  end
21
21
 
22
22
  it 'returns attachments of the correct class' do
23
- @product.attachments(:gallery).each do |attachment|
23
+ @product.attachments(tags: 'gallery').each do |attachment|
24
24
  attachment.should be_an_instance_of(Reviewed::Attachment)
25
25
  end
26
26
  end
27
27
 
28
28
  it 'returns attachments by tag' do
29
- @product.attachments(:vanity).length.should == 1
29
+ @product.attachments(tags: 'vanity').length.should == 1
30
30
  end
31
31
 
32
32
  it 'matches attachments by tag properly' do
33
- attachments = @product.attachments('vanity')
33
+ attachments = @product.attachments(tags: 'vanity')
34
34
  attachments.each do |attachment|
35
35
  attachment.tags.join(',').should match(/vanity/i)
36
36
  end
37
37
  end
38
38
 
39
39
  it 'does not have any matching attachments' do
40
- attachments = @product.attachments('doesnotcompute')
40
+ attachments = @product.attachments(tags: 'doesnotcompute')
41
41
  attachments.length.should == 0
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-09 00:00:00.000000000 Z
12
+ date: 2013-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -269,6 +269,8 @@ files:
269
269
  - spec/fixtures/vcr/Reviewed_Article/associations/related_articles/has_many_related_articles.yml
270
270
  - spec/fixtures/vcr/Reviewed_Article/fetches_when_a_tag_is_not_in_pre-loaded_set.yml
271
271
  - spec/fixtures/vcr/Reviewed_Article/find_page/finds_a_page_with_a_matching_slug.yml
272
+ - spec/fixtures/vcr/Reviewed_Article/merges_local_and_fetched_tags.yml
273
+ - spec/fixtures/vcr/Reviewed_Article/passes_options_to_fetch_attachments_when_no_tags_present.yml
272
274
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_a_product_of_the_correct_class.yml
273
275
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_nil_if_does_not_respond_to_products.yml
274
276
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_the_primary_product.yml
@@ -359,6 +361,8 @@ test_files:
359
361
  - spec/fixtures/vcr/Reviewed_Article/associations/related_articles/has_many_related_articles.yml
360
362
  - spec/fixtures/vcr/Reviewed_Article/fetches_when_a_tag_is_not_in_pre-loaded_set.yml
361
363
  - spec/fixtures/vcr/Reviewed_Article/find_page/finds_a_page_with_a_matching_slug.yml
364
+ - spec/fixtures/vcr/Reviewed_Article/merges_local_and_fetched_tags.yml
365
+ - spec/fixtures/vcr/Reviewed_Article/passes_options_to_fetch_attachments_when_no_tags_present.yml
362
366
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_a_product_of_the_correct_class.yml
363
367
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_nil_if_does_not_respond_to_products.yml
364
368
  - spec/fixtures/vcr/Reviewed_Article/primary_product/returns_the_primary_product.yml