parse_resource 1.7.3 → 1.8.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 (65) hide show
  1. data/.DS_Store +0 -0
  2. data/.travis.yml +1 -1
  3. data/Gemfile +4 -8
  4. data/Gemfile.lock +27 -23
  5. data/README.md +81 -2
  6. data/Rakefile +9 -8
  7. data/VERSION +1 -1
  8. data/fixtures/.DS_Store +0 -0
  9. data/fixtures/vcr_cassettes/.DS_Store +0 -0
  10. data/fixtures/vcr_cassettes/test_all.yml +319 -34
  11. data/fixtures/vcr_cassettes/test_attribute_getters.yml +256 -12
  12. data/fixtures/vcr_cassettes/test_attribute_setters.yml +256 -12
  13. data/fixtures/vcr_cassettes/test_authenticate.yml +260 -32
  14. data/fixtures/vcr_cassettes/test_chained_wheres.yml +320 -35
  15. data/fixtures/vcr_cassettes/test_chunk.yml +1359 -0
  16. data/fixtures/vcr_cassettes/test_count.yml +495 -84
  17. data/fixtures/vcr_cassettes/test_create.yml +154 -12
  18. data/fixtures/vcr_cassettes/test_created_at.yml +256 -12
  19. data/fixtures/vcr_cassettes/test_destroy.yml +364 -32
  20. data/fixtures/vcr_cassettes/test_destroy_all.yml +236 -48
  21. data/fixtures/vcr_cassettes/test_each.yml +488 -56
  22. data/fixtures/vcr_cassettes/test_fetching_closest_10.yml +1509 -0
  23. data/fixtures/vcr_cassettes/test_fetching_closest_by_kilometers.yml +1509 -0
  24. data/fixtures/vcr_cassettes/test_fetching_closest_by_miles.yml +1509 -0
  25. data/fixtures/vcr_cassettes/test_fetching_closest_by_radians.yml +1509 -0
  26. data/fixtures/vcr_cassettes/test_fetching_closest_within_box.yml +489 -0
  27. data/fixtures/vcr_cassettes/test_fetching_geopoint_field.yml +489 -0
  28. data/fixtures/vcr_cassettes/test_find.yml +312 -24
  29. data/fixtures/vcr_cassettes/test_find_all_by.yml +170 -34
  30. data/fixtures/vcr_cassettes/test_find_by.yml +174 -38
  31. data/fixtures/vcr_cassettes/test_first.yml +260 -23
  32. data/fixtures/vcr_cassettes/test_id.yml +256 -12
  33. data/fixtures/vcr_cassettes/test_installation_creation.yml +199 -0
  34. data/fixtures/vcr_cassettes/test_installation_creation_validation_check.yml +297 -0
  35. data/fixtures/vcr_cassettes/test_limit.yml +1138 -179
  36. data/fixtures/vcr_cassettes/test_map.yml +488 -56
  37. data/fixtures/vcr_cassettes/test_order_ascending.yml +395 -0
  38. data/fixtures/vcr_cassettes/test_order_descending.yml +446 -0
  39. data/fixtures/vcr_cassettes/test_save.yml +316 -24
  40. data/fixtures/vcr_cassettes/test_save_all_and_destroy_all.yml +869 -0
  41. data/fixtures/vcr_cassettes/test_saving_geo_point_with_quick_init.yml +395 -0
  42. data/fixtures/vcr_cassettes/test_saving_geopoint_with_coords.yml +395 -0
  43. data/fixtures/vcr_cassettes/test_skip.yml +120 -525
  44. data/fixtures/vcr_cassettes/test_update.yml +316 -24
  45. data/fixtures/vcr_cassettes/test_updated_at.yml +316 -24
  46. data/fixtures/vcr_cassettes/test_username_should_be_unique.yml +311 -21
  47. data/fixtures/vcr_cassettes/test_where.yml +117 -25
  48. data/lib/kaminari_extension.rb +60 -0
  49. data/lib/parse_resource.rb +4 -2
  50. data/lib/parse_resource/base.rb +262 -163
  51. data/lib/parse_resource/client.rb +8 -0
  52. data/lib/parse_resource/parse_error.rb +36 -22
  53. data/lib/parse_resource/query.rb +99 -7
  54. data/lib/parse_resource/query_methods.rb +64 -0
  55. data/lib/parse_resource/types/parse_geopoint.rb +19 -0
  56. data/parse_resource.gemspec +29 -9
  57. data/parse_resource.yml +2 -2
  58. data/test/active_model_lint_test.rb +0 -2
  59. data/test/helper.rb +13 -3
  60. data/test/test_parse_installation.rb +41 -0
  61. data/test/test_parse_resource.rb +108 -20
  62. data/test/test_parse_user.rb +4 -7
  63. data/test/test_query_options.rb +0 -38
  64. data/test/test_types.rb +186 -0
  65. metadata +38 -31
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?where=%7B%7D
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?where=%7B%7D
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,27 +18,24 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Access-Control-Allow-Origin:
22
- - https://parse.com, https://www.parse.com
23
- Access-Control-Request-Method:
24
- - ! '*'
25
21
  Cache-Control:
26
22
  - max-age=0, private, must-revalidate
27
23
  Content-Type:
28
24
  - application/json; charset=utf-8
29
25
  Date:
30
- - Thu, 20 Sep 2012 04:31:39 GMT
26
+ - Wed, 17 Apr 2013 06:26:14 GMT
31
27
  Etag:
32
28
  - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
33
29
  Server:
34
30
  - nginx/1.2.2
35
31
  Set-Cookie:
36
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWNmMzdiNDgyNzNhMDVhMDUxN2MyNTlmYzY1NTRkYjc%3D--6bd9e34c3a6f6dd5d6e1867ec0f6376b6898a7dd;
37
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTUwZGY1NjVmNDFjNTg1MTM3OGE0OTg0N2VkOGE5YmE%3D--bca83379609f9c90d8a5d42c00dd8050edd5e171;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:14 GMT; secure;
34
+ HttpOnly
38
35
  Status:
39
36
  - 200 OK
40
37
  X-Runtime:
41
- - '0.018870'
38
+ - '0.029141'
42
39
  X-Ua-Compatible:
43
40
  - IE=Edge,chrome=1
44
41
  Content-Length:
@@ -49,7 +46,442 @@ http_interactions:
49
46
  encoding: US-ASCII
50
47
  string: ! '{"results":[]}'
51
48
  http_version:
52
- recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
49
+ recorded_at: Wed, 17 Apr 2013 06:26:14 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"name":"bar"}'
56
+ headers:
57
+ Accept:
58
+ - ! '*/*; q=0.5, application/xml'
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ Content-Length:
64
+ - '14'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 201
70
+ message: Created
71
+ headers:
72
+ Cache-Control:
73
+ - no-cache
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 06:26:15 GMT
78
+ Location:
79
+ - https://api.parse.com/1/classes/Author/p9AMMXkR3U
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGQ3NGE3NjlhYjY4MGY1Y2RkMjI2N2VjNDdhNjhmNzE%3D--ff54ef1da0fedf88ec90abb1bc6355f18a0f0669;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:15 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 201 Created
88
+ X-Runtime:
89
+ - '0.036943'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '64'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '{"createdAt":"2013-04-17T06:26:15.117Z","objectId":"p9AMMXkR3U"}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:26:15 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"name":"jab"}'
107
+ headers:
108
+ Accept:
109
+ - ! '*/*; q=0.5, application/xml'
110
+ Accept-Encoding:
111
+ - gzip, deflate
112
+ Content-Type:
113
+ - application/json
114
+ Content-Length:
115
+ - '14'
116
+ User-Agent:
117
+ - Ruby
118
+ response:
119
+ status:
120
+ code: 201
121
+ message: Created
122
+ headers:
123
+ Cache-Control:
124
+ - no-cache
125
+ Content-Type:
126
+ - application/json; charset=utf-8
127
+ Date:
128
+ - Wed, 17 Apr 2013 06:26:15 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Author/TdkyxpR3tO
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmY4ZGFhM2VkMWNjMGQ0ODY1NjBkZTdjNzhiNjhmY2M%3D--93aecd4c25941b08bc733d415d274b42c3a6d636;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:15 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.031841'
141
+ X-Ua-Compatible:
142
+ - IE=Edge,chrome=1
143
+ Content-Length:
144
+ - '64'
145
+ Connection:
146
+ - keep-alive
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ! '{"createdAt":"2013-04-17T06:26:15.662Z","objectId":"TdkyxpR3tO"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:26:15 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?count=1&where=%7B%7D
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ''
158
+ headers:
159
+ Accept:
160
+ - ! '*/*; q=0.5, application/xml'
161
+ Accept-Encoding:
162
+ - gzip, deflate
163
+ User-Agent:
164
+ - Ruby
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ Cache-Control:
171
+ - max-age=0, private, must-revalidate
172
+ Content-Type:
173
+ - application/json; charset=utf-8
174
+ Date:
175
+ - Wed, 17 Apr 2013 06:26:16 GMT
176
+ Etag:
177
+ - ! '"76ea8b6a10b4fb6ef95d9946ca917537"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTRlZDJlNThlYmQwYTg1MTYxNzFiODRlMjk3M2VkY2M%3D--685c6858f0c4617e0768c9ae0ee7b14c0e105549;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:16 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.039497'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '257'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"name":"bar","createdAt":"2013-04-17T06:26:15.117Z","updatedAt":"2013-04-17T06:26:15.117Z","objectId":"p9AMMXkR3U"},{"name":"jab","createdAt":"2013-04-17T06:26:15.662Z","updatedAt":"2013-04-17T06:26:15.662Z","objectId":"TdkyxpR3tO"}],"count":2}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 06:26:16 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?count=1&where=%7B%22name%22:%22jab%22%7D
202
+ body:
203
+ encoding: US-ASCII
204
+ string: ''
205
+ headers:
206
+ Accept:
207
+ - ! '*/*; q=0.5, application/xml'
208
+ Accept-Encoding:
209
+ - gzip, deflate
210
+ User-Agent:
211
+ - Ruby
212
+ response:
213
+ status:
214
+ code: 200
215
+ message: OK
216
+ headers:
217
+ Cache-Control:
218
+ - max-age=0, private, must-revalidate
219
+ Content-Type:
220
+ - application/json; charset=utf-8
221
+ Date:
222
+ - Wed, 17 Apr 2013 06:26:16 GMT
223
+ Etag:
224
+ - ! '"7725a9714f6e56c1752c51f1fd2e6fc4"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTY2ZGIzZTdiM2EwYzc2YWE1MGIxNjg1YzlhZDA5MWU%3D--e923522bd55b486527e00ed20aa2fea9d9522d6c;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:16 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.035810'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '140'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[{"name":"jab","createdAt":"2013-04-17T06:26:15.662Z","updatedAt":"2013-04-17T06:26:15.662Z","objectId":"TdkyxpR3tO"}],"count":1}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 06:26:16 GMT
246
+ - request:
247
+ method: delete
248
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author/p9AMMXkR3U
249
+ body:
250
+ encoding: US-ASCII
251
+ string: ''
252
+ headers:
253
+ Accept:
254
+ - ! '*/*; q=0.5, application/xml'
255
+ Accept-Encoding:
256
+ - gzip, deflate
257
+ User-Agent:
258
+ - Ruby
259
+ response:
260
+ status:
261
+ code: 200
262
+ message: OK
263
+ headers:
264
+ Cache-Control:
265
+ - max-age=0, private, must-revalidate
266
+ Content-Type:
267
+ - application/json; charset=utf-8
268
+ Date:
269
+ - Wed, 17 Apr 2013 06:26:16 GMT
270
+ Etag:
271
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
272
+ Server:
273
+ - nginx/1.2.2
274
+ Set-Cookie:
275
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTE5MzU0MTQ1ZDJiZDBkYWRhZDJiODc3NjdkZTE3OTQ%3D--a8191a34a5c08011ee2908c95ef8f16364c74e97;
276
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:16 GMT; secure;
277
+ HttpOnly
278
+ Status:
279
+ - 200 OK
280
+ X-Runtime:
281
+ - '0.029869'
282
+ X-Ua-Compatible:
283
+ - IE=Edge,chrome=1
284
+ Content-Length:
285
+ - '2'
286
+ Connection:
287
+ - keep-alive
288
+ body:
289
+ encoding: US-ASCII
290
+ string: ! '{}'
291
+ http_version:
292
+ recorded_at: Wed, 17 Apr 2013 06:26:16 GMT
293
+ - request:
294
+ method: delete
295
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author/TdkyxpR3tO
296
+ body:
297
+ encoding: US-ASCII
298
+ string: ''
299
+ headers:
300
+ Accept:
301
+ - ! '*/*; q=0.5, application/xml'
302
+ Accept-Encoding:
303
+ - gzip, deflate
304
+ User-Agent:
305
+ - Ruby
306
+ response:
307
+ status:
308
+ code: 200
309
+ message: OK
310
+ headers:
311
+ Cache-Control:
312
+ - max-age=0, private, must-revalidate
313
+ Content-Type:
314
+ - application/json; charset=utf-8
315
+ Date:
316
+ - Wed, 17 Apr 2013 06:26:17 GMT
317
+ Etag:
318
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
319
+ Server:
320
+ - nginx/1.2.2
321
+ Set-Cookie:
322
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTRiMmM1OGFjNGZkYWQzYmE5MDRkMzA0NTlmNWY2ZDE%3D--c9a40a79e086e0acd1313ca82d9be297948ccb4a;
323
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:17 GMT; secure;
324
+ HttpOnly
325
+ Status:
326
+ - 200 OK
327
+ X-Runtime:
328
+ - '0.030058'
329
+ X-Ua-Compatible:
330
+ - IE=Edge,chrome=1
331
+ Content-Length:
332
+ - '2'
333
+ Connection:
334
+ - keep-alive
335
+ body:
336
+ encoding: US-ASCII
337
+ string: ! '{}'
338
+ http_version:
339
+ recorded_at: Wed, 17 Apr 2013 06:26:17 GMT
340
+ - request:
341
+ method: get
342
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?count=1&where=%7B%7D
343
+ body:
344
+ encoding: US-ASCII
345
+ string: ''
346
+ headers:
347
+ Accept:
348
+ - ! '*/*; q=0.5, application/xml'
349
+ Accept-Encoding:
350
+ - gzip, deflate
351
+ User-Agent:
352
+ - Ruby
353
+ response:
354
+ status:
355
+ code: 200
356
+ message: OK
357
+ headers:
358
+ Cache-Control:
359
+ - max-age=0, private, must-revalidate
360
+ Content-Type:
361
+ - application/json; charset=utf-8
362
+ Date:
363
+ - Wed, 17 Apr 2013 06:26:17 GMT
364
+ Etag:
365
+ - ! '"8c97ea0119fb2eb809f32e913cb37202"'
366
+ Server:
367
+ - nginx/1.2.2
368
+ Set-Cookie:
369
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2VjMDIyNGNhZGRiODllZDg5YzZkYmU2ZmE1ZjZkOTg%3D--91bfcd9a267059ca63f33edd2d1c0a8ff089edf4;
370
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:17 GMT; secure;
371
+ HttpOnly
372
+ Status:
373
+ - 200 OK
374
+ X-Runtime:
375
+ - '0.031847'
376
+ X-Ua-Compatible:
377
+ - IE=Edge,chrome=1
378
+ Content-Length:
379
+ - '24'
380
+ Connection:
381
+ - keep-alive
382
+ body:
383
+ encoding: US-ASCII
384
+ string: ! '{"results":[],"count":0}'
385
+ http_version:
386
+ recorded_at: Wed, 17 Apr 2013 06:26:17 GMT
387
+ - request:
388
+ method: get
389
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?where=%7B%7D
390
+ body:
391
+ encoding: US-ASCII
392
+ string: ''
393
+ headers:
394
+ Accept:
395
+ - ! '*/*; q=0.5, application/xml'
396
+ Accept-Encoding:
397
+ - gzip, deflate
398
+ User-Agent:
399
+ - Ruby
400
+ response:
401
+ status:
402
+ code: 200
403
+ message: OK
404
+ headers:
405
+ Cache-Control:
406
+ - max-age=0, private, must-revalidate
407
+ Content-Type:
408
+ - application/json; charset=utf-8
409
+ Date:
410
+ - Wed, 17 Apr 2013 20:08:28 GMT
411
+ Etag:
412
+ - ! '"cb4c5da1b445800f2c4816bdcb282aa5"'
413
+ Server:
414
+ - nginx/1.2.2
415
+ Set-Cookie:
416
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDQ3MTg3NmIzNGE1YzQ4MzU5NjA5YTI5NzZkOTQwNTA%3D--3f335669fe6d2d782aa968ce8d7a779579d27e85;
417
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:28 GMT; secure;
418
+ HttpOnly
419
+ Status:
420
+ - 200 OK
421
+ X-Runtime:
422
+ - '0.030661'
423
+ X-Ua-Compatible:
424
+ - IE=Edge,chrome=1
425
+ Content-Length:
426
+ - '247'
427
+ Connection:
428
+ - keep-alive
429
+ body:
430
+ encoding: US-ASCII
431
+ string: ! '{"results":[{"name":"1st","createdAt":"2013-04-17T17:02:24.282Z","updatedAt":"2013-04-17T17:02:24.282Z","objectId":"NzsFJg3Jlc"},{"name":"2nd","createdAt":"2013-04-17T17:02:24.526Z","updatedAt":"2013-04-17T17:02:24.526Z","objectId":"b8MUBJGbML"}]}'
432
+ http_version:
433
+ recorded_at: Wed, 17 Apr 2013 20:08:28 GMT
434
+ - request:
435
+ method: post
436
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
437
+ body:
438
+ encoding: UTF-8
439
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Author/NzsFJg3Jlc"},{"method":"DELETE","path":"/1/classes/Author/b8MUBJGbML"}]}'
440
+ headers:
441
+ Accept:
442
+ - ! '*/*; q=0.5, application/xml'
443
+ Accept-Encoding:
444
+ - gzip, deflate
445
+ Content-Type:
446
+ - application/json
447
+ Content-Length:
448
+ - '130'
449
+ User-Agent:
450
+ - Ruby
451
+ response:
452
+ status:
453
+ code: 200
454
+ message: OK
455
+ headers:
456
+ Cache-Control:
457
+ - max-age=0, private, must-revalidate
458
+ Content-Type:
459
+ - application/json; charset=utf-8
460
+ Date:
461
+ - Wed, 17 Apr 2013 20:08:28 GMT
462
+ Etag:
463
+ - ! '"9f103a4fc959709a4ff9f7cb2a96d647"'
464
+ Server:
465
+ - nginx/1.2.2
466
+ Set-Cookie:
467
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTFhNzFkZWQwZTcwMmIyOTNlYTc2MTI3NWY2NzMzZWY%3D--6836df1ac2bdd41bdaeb7744c1f63158a8c09d09;
468
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:28 GMT; secure;
469
+ HttpOnly
470
+ Status:
471
+ - 200 OK
472
+ X-Runtime:
473
+ - '0.218021'
474
+ X-Ua-Compatible:
475
+ - IE=Edge,chrome=1
476
+ Content-Length:
477
+ - '35'
478
+ Connection:
479
+ - keep-alive
480
+ body:
481
+ encoding: US-ASCII
482
+ string: ! '[{"success":true},{"success":true}]'
483
+ http_version:
484
+ recorded_at: Wed, 17 Apr 2013 20:08:28 GMT
53
485
  - request:
54
486
  method: post
55
487
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
@@ -72,27 +504,24 @@ http_interactions:
72
504
  code: 201
73
505
  message: Created
74
506
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
507
  Cache-Control:
80
508
  - no-cache
81
509
  Content-Type:
82
510
  - application/json; charset=utf-8
83
511
  Date:
84
- - Thu, 20 Sep 2012 04:31:39 GMT
512
+ - Wed, 17 Apr 2013 20:08:28 GMT
85
513
  Location:
86
- - https://api.parse.com/1/classes/Author/C4ti144zgK
514
+ - https://api.parse.com/1/classes/Author/T2evYs7hV6
87
515
  Server:
88
516
  - nginx/1.2.2
89
517
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2IwOTA4MDY3NTk2NGY2MjczMzk2OTZhOTU2NTI0MWU%3D--578b07ab6b45ccfaa2a79c05aadb44b0f9d9dc2e;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
518
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjgxNGJhNWVlZDNlMGZlNWU3OWU2MjgwNTAwMGViNTQ%3D--a71974f5d1ef4b66f1b1daa4a447e8c661e31f6a;
519
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:28 GMT; secure;
520
+ HttpOnly
92
521
  Status:
93
522
  - 201 Created
94
523
  X-Runtime:
95
- - '0.020418'
524
+ - '0.027515'
96
525
  X-Ua-Compatible:
97
526
  - IE=Edge,chrome=1
98
527
  Content-Length:
@@ -101,9 +530,9 @@ http_interactions:
101
530
  - keep-alive
102
531
  body:
103
532
  encoding: US-ASCII
104
- string: ! '{"createdAt":"2012-09-20T04:31:39.585Z","objectId":"C4ti144zgK"}'
533
+ string: ! '{"createdAt":"2013-04-17T20:08:28.869Z","objectId":"T2evYs7hV6"}'
105
534
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
535
+ recorded_at: Wed, 17 Apr 2013 20:08:28 GMT
107
536
  - request:
108
537
  method: post
109
538
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
@@ -126,27 +555,24 @@ http_interactions:
126
555
  code: 201
127
556
  message: Created
128
557
  headers:
129
- Access-Control-Allow-Origin:
130
- - https://parse.com, https://www.parse.com
131
- Access-Control-Request-Method:
132
- - ! '*'
133
558
  Cache-Control:
134
559
  - no-cache
135
560
  Content-Type:
136
561
  - application/json; charset=utf-8
137
562
  Date:
138
- - Thu, 20 Sep 2012 04:31:39 GMT
563
+ - Wed, 17 Apr 2013 20:08:29 GMT
139
564
  Location:
140
- - https://api.parse.com/1/classes/Author/z59Z8Zx8DX
565
+ - https://api.parse.com/1/classes/Author/w6RRpQ5JuT
141
566
  Server:
142
567
  - nginx/1.2.2
143
568
  Set-Cookie:
144
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzgwODI2OTNiMDI3MmY1N2E5ZTA5MzNiYzRhNjM1ZDY%3D--16b4c5528f16d7d991cbc541eaa1c8294560d174;
145
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
569
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2YwYThmZTNjNWFlYTU3MGNhMGQyZjYwZDBiMDMxNTI%3D--3786b0da9fa7fee3c5e708176dc60461b45c821d;
570
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:29 GMT; secure;
571
+ HttpOnly
146
572
  Status:
147
573
  - 201 Created
148
574
  X-Runtime:
149
- - '0.017508'
575
+ - '0.029181'
150
576
  X-Ua-Compatible:
151
577
  - IE=Edge,chrome=1
152
578
  Content-Length:
@@ -155,9 +581,9 @@ http_interactions:
155
581
  - keep-alive
156
582
  body:
157
583
  encoding: US-ASCII
158
- string: ! '{"createdAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}'
584
+ string: ! '{"createdAt":"2013-04-17T20:08:29.005Z","objectId":"w6RRpQ5JuT"}'
159
585
  http_version:
160
- recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
586
+ recorded_at: Wed, 17 Apr 2013 20:08:29 GMT
161
587
  - request:
162
588
  method: get
163
589
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%7D
@@ -176,27 +602,24 @@ http_interactions:
176
602
  code: 200
177
603
  message: OK
178
604
  headers:
179
- Access-Control-Allow-Origin:
180
- - https://parse.com, https://www.parse.com
181
- Access-Control-Request-Method:
182
- - ! '*'
183
605
  Cache-Control:
184
606
  - max-age=0, private, must-revalidate
185
607
  Content-Type:
186
608
  - application/json; charset=utf-8
187
609
  Date:
188
- - Thu, 20 Sep 2012 04:31:39 GMT
610
+ - Wed, 17 Apr 2013 20:08:29 GMT
189
611
  Etag:
190
- - ! '"087d666cef98e5739d2b45c8be6c4bc0"'
612
+ - ! '"4e261f7152342bb8a47b9f3450e25e5a"'
191
613
  Server:
192
614
  - nginx/1.2.2
193
615
  Set-Cookie:
194
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzMzZDJmOTQ2NjViYjA1ZGQ5ZTI2MjFlZjJkNWQxNTk%3D--e3de473c3021250f25cf2e4754fc745768ecb66c;
195
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
616
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzkzMzJmNmMwMWE4MGIwOWI5MWU2OWJlNmNlN2QxYWM%3D--398aa07e189d13463eeb126a0e81ad279954560e;
617
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:29 GMT; secure;
618
+ HttpOnly
196
619
  Status:
197
620
  - 200 OK
198
621
  X-Runtime:
199
- - '0.020040'
622
+ - '0.037946'
200
623
  X-Ua-Compatible:
201
624
  - IE=Edge,chrome=1
202
625
  Content-Length:
@@ -205,9 +628,9 @@ http_interactions:
205
628
  - keep-alive
206
629
  body:
207
630
  encoding: US-ASCII
208
- string: ! '{"results":[{"name":"bar","createdAt":"2012-09-20T04:31:39.585Z","updatedAt":"2012-09-20T04:31:39.585Z","objectId":"C4ti144zgK"},{"name":"jab","createdAt":"2012-09-20T04:31:39.798Z","updatedAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}],"count":2}'
631
+ string: ! '{"results":[{"name":"bar","createdAt":"2013-04-17T20:08:28.869Z","updatedAt":"2013-04-17T20:08:28.869Z","objectId":"T2evYs7hV6"},{"name":"jab","createdAt":"2013-04-17T20:08:29.005Z","updatedAt":"2013-04-17T20:08:29.005Z","objectId":"w6RRpQ5JuT"}],"count":2}'
209
632
  http_version:
210
- recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
633
+ recorded_at: Wed, 17 Apr 2013 20:08:29 GMT
211
634
  - request:
212
635
  method: get
213
636
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%22name%22:%22jab%22%7D
@@ -226,27 +649,24 @@ http_interactions:
226
649
  code: 200
227
650
  message: OK
228
651
  headers:
229
- Access-Control-Allow-Origin:
230
- - https://parse.com, https://www.parse.com
231
- Access-Control-Request-Method:
232
- - ! '*'
233
652
  Cache-Control:
234
653
  - max-age=0, private, must-revalidate
235
654
  Content-Type:
236
655
  - application/json; charset=utf-8
237
656
  Date:
238
- - Thu, 20 Sep 2012 04:31:40 GMT
657
+ - Wed, 17 Apr 2013 20:08:29 GMT
239
658
  Etag:
240
- - ! '"183c77737ed3100aec277c288cd89a4d"'
659
+ - ! '"5d50c17b7712f725fba9b6a873fc0c1b"'
241
660
  Server:
242
661
  - nginx/1.2.2
243
662
  Set-Cookie:
244
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDFlNzEyN2ZiZDJiMmVlNmQwNTVjZWQwNjUzNmQ4N2U%3D--b5b35a48bf39bf4ae97721fc440b315970c5053e;
245
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
663
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjAwZjU5NDQ0MDc2NTUwZmRiZjQ0ZDI4YTdhZDNkNTA%3D--45b1d9c893243cb99fcb77c1854ee1d63e800629;
664
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:29 GMT; secure;
665
+ HttpOnly
246
666
  Status:
247
667
  - 200 OK
248
668
  X-Runtime:
249
- - '0.035050'
669
+ - '0.036964'
250
670
  X-Ua-Compatible:
251
671
  - IE=Edge,chrome=1
252
672
  Content-Length:
@@ -255,12 +675,12 @@ http_interactions:
255
675
  - keep-alive
256
676
  body:
257
677
  encoding: US-ASCII
258
- string: ! '{"results":[{"name":"jab","createdAt":"2012-09-20T04:31:39.798Z","updatedAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}],"count":1}'
678
+ string: ! '{"results":[{"name":"jab","createdAt":"2013-04-17T20:08:29.005Z","updatedAt":"2013-04-17T20:08:29.005Z","objectId":"w6RRpQ5JuT"}],"count":1}'
259
679
  http_version:
260
- recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
680
+ recorded_at: Wed, 17 Apr 2013 20:08:29 GMT
261
681
  - request:
262
682
  method: delete
263
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/C4ti144zgK
683
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/T2evYs7hV6
264
684
  body:
265
685
  encoding: US-ASCII
266
686
  string: ''
@@ -276,27 +696,24 @@ http_interactions:
276
696
  code: 200
277
697
  message: OK
278
698
  headers:
279
- Access-Control-Allow-Origin:
280
- - https://parse.com, https://www.parse.com
281
- Access-Control-Request-Method:
282
- - ! '*'
283
699
  Cache-Control:
284
700
  - max-age=0, private, must-revalidate
285
701
  Content-Type:
286
702
  - application/json; charset=utf-8
287
703
  Date:
288
- - Thu, 20 Sep 2012 04:31:40 GMT
704
+ - Wed, 17 Apr 2013 20:08:29 GMT
289
705
  Etag:
290
706
  - ! '"99914b932bd37a50b983c5e7c90ae93b"'
291
707
  Server:
292
708
  - nginx/1.2.2
293
709
  Set-Cookie:
294
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMGQ5NjMxNTQ2MWZhOGEzMWJlNzA5M2ZiMzEyMGU0Mzk%3D--8776a4197f90bbacaee006ac17778524c2ab9e44;
295
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
710
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWFlMDA1N2FkYjRhZDMyYzhlNGU0Nzg1NWRkZjI1OWE%3D--24f187a459f05b55d37178129460076c6f7d6cba;
711
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:29 GMT; secure;
712
+ HttpOnly
296
713
  Status:
297
714
  - 200 OK
298
715
  X-Runtime:
299
- - '0.017867'
716
+ - '0.588344'
300
717
  X-Ua-Compatible:
301
718
  - IE=Edge,chrome=1
302
719
  Content-Length:
@@ -307,10 +724,10 @@ http_interactions:
307
724
  encoding: US-ASCII
308
725
  string: ! '{}'
309
726
  http_version:
310
- recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
727
+ recorded_at: Wed, 17 Apr 2013 20:08:29 GMT
311
728
  - request:
312
729
  method: delete
313
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/z59Z8Zx8DX
730
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/w6RRpQ5JuT
314
731
  body:
315
732
  encoding: US-ASCII
316
733
  string: ''
@@ -326,27 +743,24 @@ http_interactions:
326
743
  code: 200
327
744
  message: OK
328
745
  headers:
329
- Access-Control-Allow-Origin:
330
- - https://parse.com, https://www.parse.com
331
- Access-Control-Request-Method:
332
- - ! '*'
333
746
  Cache-Control:
334
747
  - max-age=0, private, must-revalidate
335
748
  Content-Type:
336
749
  - application/json; charset=utf-8
337
750
  Date:
338
- - Thu, 20 Sep 2012 04:31:40 GMT
751
+ - Wed, 17 Apr 2013 20:08:30 GMT
339
752
  Etag:
340
753
  - ! '"99914b932bd37a50b983c5e7c90ae93b"'
341
754
  Server:
342
755
  - nginx/1.2.2
343
756
  Set-Cookie:
344
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTBjZTA5ZDQ0OGRiYTdiYjFlN2JmOGM2NmQ2M2JmYTM%3D--c1358e349986eabab3a594c39dbd6ab0296e3848;
345
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
757
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWY1YjFhMmZlYzI1Njc2ZDJmYTE1NzJjNjFiZGMzZWU%3D--31ba2e15ee031e6174221306ab798346ff59273b;
758
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
759
+ HttpOnly
346
760
  Status:
347
761
  - 200 OK
348
762
  X-Runtime:
349
- - '0.034690'
763
+ - '0.092029'
350
764
  X-Ua-Compatible:
351
765
  - IE=Edge,chrome=1
352
766
  Content-Length:
@@ -357,7 +771,7 @@ http_interactions:
357
771
  encoding: US-ASCII
358
772
  string: ! '{}'
359
773
  http_version:
360
- recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
774
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
361
775
  - request:
362
776
  method: get
363
777
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%7D
@@ -376,27 +790,24 @@ http_interactions:
376
790
  code: 200
377
791
  message: OK
378
792
  headers:
379
- Access-Control-Allow-Origin:
380
- - https://parse.com, https://www.parse.com
381
- Access-Control-Request-Method:
382
- - ! '*'
383
793
  Cache-Control:
384
794
  - max-age=0, private, must-revalidate
385
795
  Content-Type:
386
796
  - application/json; charset=utf-8
387
797
  Date:
388
- - Thu, 20 Sep 2012 04:31:40 GMT
798
+ - Wed, 17 Apr 2013 20:08:30 GMT
389
799
  Etag:
390
800
  - ! '"8c97ea0119fb2eb809f32e913cb37202"'
391
801
  Server:
392
802
  - nginx/1.2.2
393
803
  Set-Cookie:
394
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2I1YzgxNWM2MmQwYzYyNDAxMjhkMjcyNjU3MDMzYjA%3D--fbceb363fbed8a1dceb2a147ac92f8619f85b969;
395
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
804
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzBmZjg3MzAwNWU3NGQyY2Q0MTI3ZWI1MzViNDkzMGE%3D--9f6b0360e30afce6dc8fdd86cecc7a26aa672f26;
805
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
806
+ HttpOnly
396
807
  Status:
397
808
  - 200 OK
398
809
  X-Runtime:
399
- - '0.044170'
810
+ - '0.071717'
400
811
  X-Ua-Compatible:
401
812
  - IE=Edge,chrome=1
402
813
  Content-Length:
@@ -407,5 +818,5 @@ http_interactions:
407
818
  encoding: US-ASCII
408
819
  string: ! '{"results":[],"count":0}'
409
820
  http_version:
410
- recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
411
- recorded_with: VCR 2.2.4
821
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
822
+ recorded_with: VCR 2.4.0