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
@@ -0,0 +1,395 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?where=%7B%7D
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Wed, 17 Apr 2013 07:20:17 GMT
27
+ Etag:
28
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzIyYjcwOTgxNjQzYThiM2E1ZDczYmVkNTliNDJkMjk%3D--39471f6eca82a742f1b40f632a5cda622ff964ef;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:20:17 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.027843'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '14'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 07:20:17 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":"1st"}'
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 07:20:18 GMT
78
+ Location:
79
+ - https://api.parse.com/1/classes/Author/SbiSSRw5X4
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYzI2Nzc0NGZkY2RkZWNlYWVmMzgxYjI4OTY1Mzg5NzI%3D--b5baf20efa6509d1048cc6aee76035c0308d0e70;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:20:18 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 201 Created
88
+ X-Runtime:
89
+ - '0.171564'
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-17T07:20:18.410Z","objectId":"SbiSSRw5X4"}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 07:20:18 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":"2nd"}'
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 07:20:19 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Author/gFO08ufXbK
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODAxNmYyZTU1ZmMzZTA4N2UwMmE1MGZjYjRkOTQyZDE%3D--0accc85c25ae29d22d54c822c0fd60c9ba92a3d7;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:20:19 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.034573'
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-17T07:20:19.093Z","objectId":"gFO08ufXbK"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 07:20:19 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Author?order=name&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 07:20:19 GMT
176
+ Etag:
177
+ - ! '"30fd2e0779974277dad0381720243a3b"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZDRlZTNmZWI3ODBmMGEwYTA5YTkwMDNmYTBiMjBiNmU%3D--239b5e35823f3e6f1d62e31b297b91bb810962bf;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:20:19 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.065682'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '247'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"name":"1st","createdAt":"2013-04-17T07:20:18.410Z","updatedAt":"2013-04-17T07:20:18.410Z","objectId":"SbiSSRw5X4"},{"name":"2nd","createdAt":"2013-04-17T07:20:19.093Z","updatedAt":"2013-04-17T07:20:19.093Z","objectId":"gFO08ufXbK"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 07:20:19 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?where=%7B%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 20:08:54 GMT
223
+ Etag:
224
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWExYzcxYzJmYWQzODg0NDdkOTVlMDM5YWE1ZjY0Nzg%3D--3d0a9a3e7a2699df64669e5dfbd30f329ea5f0f3;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.030307'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '14'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
246
+ - request:
247
+ method: post
248
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
249
+ body:
250
+ encoding: UTF-8
251
+ string: ! '{"name":"1st"}'
252
+ headers:
253
+ Accept:
254
+ - ! '*/*; q=0.5, application/xml'
255
+ Accept-Encoding:
256
+ - gzip, deflate
257
+ Content-Type:
258
+ - application/json
259
+ Content-Length:
260
+ - '14'
261
+ User-Agent:
262
+ - Ruby
263
+ response:
264
+ status:
265
+ code: 201
266
+ message: Created
267
+ headers:
268
+ Cache-Control:
269
+ - no-cache
270
+ Content-Type:
271
+ - application/json; charset=utf-8
272
+ Date:
273
+ - Wed, 17 Apr 2013 20:08:54 GMT
274
+ Location:
275
+ - https://api.parse.com/1/classes/Author/63aFeYpqqY
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOGJkNTcwZTViMGE0NmViMDlmZTU2OWFiZjNiMjQxMTE%3D--e740dea9e467c8b45980f35276ec1923658e619c;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 201 Created
284
+ X-Runtime:
285
+ - '0.081670'
286
+ X-Ua-Compatible:
287
+ - IE=Edge,chrome=1
288
+ Content-Length:
289
+ - '64'
290
+ Connection:
291
+ - keep-alive
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '{"createdAt":"2013-04-17T20:08:54.746Z","objectId":"63aFeYpqqY"}'
295
+ http_version:
296
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
297
+ - request:
298
+ method: post
299
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
300
+ body:
301
+ encoding: UTF-8
302
+ string: ! '{"name":"2nd"}'
303
+ headers:
304
+ Accept:
305
+ - ! '*/*; q=0.5, application/xml'
306
+ Accept-Encoding:
307
+ - gzip, deflate
308
+ Content-Type:
309
+ - application/json
310
+ Content-Length:
311
+ - '14'
312
+ User-Agent:
313
+ - Ruby
314
+ response:
315
+ status:
316
+ code: 201
317
+ message: Created
318
+ headers:
319
+ Cache-Control:
320
+ - no-cache
321
+ Content-Type:
322
+ - application/json; charset=utf-8
323
+ Date:
324
+ - Wed, 17 Apr 2013 20:08:54 GMT
325
+ Location:
326
+ - https://api.parse.com/1/classes/Author/CbhyEKtWkm
327
+ Server:
328
+ - nginx/1.2.2
329
+ Set-Cookie:
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmRjMzVmMzI3MTVlNDc2ODMxNTcyNDhjZmVkODM3M2E%3D--2dfd5012e030531eb7f759cf02b5b42f0fdd90ed;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
332
+ HttpOnly
333
+ Status:
334
+ - 201 Created
335
+ X-Runtime:
336
+ - '0.029718'
337
+ X-Ua-Compatible:
338
+ - IE=Edge,chrome=1
339
+ Content-Length:
340
+ - '64'
341
+ Connection:
342
+ - keep-alive
343
+ body:
344
+ encoding: US-ASCII
345
+ string: ! '{"createdAt":"2013-04-17T20:08:54.892Z","objectId":"CbhyEKtWkm"}'
346
+ http_version:
347
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
348
+ - request:
349
+ method: get
350
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?order=name&where=%7B%7D
351
+ body:
352
+ encoding: US-ASCII
353
+ string: ''
354
+ headers:
355
+ Accept:
356
+ - ! '*/*; q=0.5, application/xml'
357
+ Accept-Encoding:
358
+ - gzip, deflate
359
+ User-Agent:
360
+ - Ruby
361
+ response:
362
+ status:
363
+ code: 200
364
+ message: OK
365
+ headers:
366
+ Cache-Control:
367
+ - max-age=0, private, must-revalidate
368
+ Content-Type:
369
+ - application/json; charset=utf-8
370
+ Date:
371
+ - Wed, 17 Apr 2013 20:08:55 GMT
372
+ Etag:
373
+ - ! '"ebfacdb76b20814565f0a473ad2e5cc5"'
374
+ Server:
375
+ - nginx/1.2.2
376
+ Set-Cookie:
377
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWI5MmUwYzU4YTg3OTA3OTNiZjYxNGFiNGUwOGQ3NmQ%3D--91f5266b2738399a8403deb83382a0fe2884001b;
378
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:55 GMT; secure;
379
+ HttpOnly
380
+ Status:
381
+ - 200 OK
382
+ X-Runtime:
383
+ - '0.079891'
384
+ X-Ua-Compatible:
385
+ - IE=Edge,chrome=1
386
+ Content-Length:
387
+ - '247'
388
+ Connection:
389
+ - keep-alive
390
+ body:
391
+ encoding: US-ASCII
392
+ string: ! '{"results":[{"name":"1st","createdAt":"2013-04-17T20:08:54.746Z","updatedAt":"2013-04-17T20:08:54.746Z","objectId":"63aFeYpqqY"},{"name":"2nd","createdAt":"2013-04-17T20:08:54.892Z","updatedAt":"2013-04-17T20:08:54.892Z","objectId":"CbhyEKtWkm"}]}'
393
+ http_version:
394
+ recorded_at: Wed, 17 Apr 2013 20:08:55 GMT
395
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,446 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Event
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"name":"1st"}'
9
+ headers:
10
+ Accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '14'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Wed, 17 Apr 2013 06:27:44 GMT
31
+ Location:
32
+ - https://api.parse.com/1/classes/Event/zUCY2Aal1a
33
+ Server:
34
+ - nginx/1.2.2
35
+ Set-Cookie:
36
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmZlMjYzYWExYmQ2MjM4Y2Q0NjlhMGRiZWE0MTYyMTk%3D--c9e66100e513cd86d3eefa839dbf9ca32fa86550;
37
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:44 GMT; secure;
38
+ HttpOnly
39
+ Status:
40
+ - 201 Created
41
+ X-Runtime:
42
+ - '0.033740'
43
+ X-Ua-Compatible:
44
+ - IE=Edge,chrome=1
45
+ Content-Length:
46
+ - '64'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! '{"createdAt":"2013-04-17T06:27:44.290Z","objectId":"zUCY2Aal1a"}'
52
+ http_version:
53
+ recorded_at: Wed, 17 Apr 2013 06:27:44 GMT
54
+ - request:
55
+ method: post
56
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Event
57
+ body:
58
+ encoding: UTF-8
59
+ string: ! '{"name":"2nd"}'
60
+ headers:
61
+ Accept:
62
+ - ! '*/*; q=0.5, application/xml'
63
+ Accept-Encoding:
64
+ - gzip, deflate
65
+ Content-Type:
66
+ - application/json
67
+ Content-Length:
68
+ - '14'
69
+ User-Agent:
70
+ - Ruby
71
+ response:
72
+ status:
73
+ code: 201
74
+ message: Created
75
+ headers:
76
+ Cache-Control:
77
+ - no-cache
78
+ Content-Type:
79
+ - application/json; charset=utf-8
80
+ Date:
81
+ - Wed, 17 Apr 2013 06:27:44 GMT
82
+ Location:
83
+ - https://api.parse.com/1/classes/Event/XFG4NncXHM
84
+ Server:
85
+ - nginx/1.2.2
86
+ Set-Cookie:
87
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWUzYjE3ZWU0NmNlNjUwM2M4MTE5ZmVmMDFkMTA4ODQ%3D--e6fef7ba6c11de39c4e24a410010a8c5b53ce08c;
88
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:44 GMT; secure;
89
+ HttpOnly
90
+ Status:
91
+ - 201 Created
92
+ X-Runtime:
93
+ - '0.032094'
94
+ X-Ua-Compatible:
95
+ - IE=Edge,chrome=1
96
+ Content-Length:
97
+ - '64'
98
+ Connection:
99
+ - keep-alive
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"createdAt":"2013-04-17T06:27:44.836Z","objectId":"XFG4NncXHM"}'
103
+ http_version:
104
+ recorded_at: Wed, 17 Apr 2013 06:27:44 GMT
105
+ - request:
106
+ method: get
107
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Event?order=-name&where=%7B%7D
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ Accept:
113
+ - ! '*/*; q=0.5, application/xml'
114
+ Accept-Encoding:
115
+ - gzip, deflate
116
+ User-Agent:
117
+ - Ruby
118
+ response:
119
+ status:
120
+ code: 200
121
+ message: OK
122
+ headers:
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ Content-Type:
126
+ - application/json; charset=utf-8
127
+ Date:
128
+ - Wed, 17 Apr 2013 06:27:45 GMT
129
+ Etag:
130
+ - ! '"bbd79339fa90ffe78a854fc8afbf95e8"'
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTA4YmI2MTVjNjg5MmNlYjU0MmExYzIxY2U0ODQ5Y2U%3D--48312fd89dc5881c9c785a1f8f7c1aca80ff4e6e;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:45 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 200 OK
139
+ X-Runtime:
140
+ - '0.033810'
141
+ X-Ua-Compatible:
142
+ - IE=Edge,chrome=1
143
+ Content-Length:
144
+ - '247'
145
+ Connection:
146
+ - keep-alive
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ! '{"results":[{"name":"2nd","createdAt":"2013-04-17T06:27:44.836Z","updatedAt":"2013-04-17T06:27:44.836Z","objectId":"XFG4NncXHM"},{"name":"1st","createdAt":"2013-04-17T06:27:44.290Z","updatedAt":"2013-04-17T06:27:44.290Z","objectId":"zUCY2Aal1a"}]}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:27:45 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Event?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:27:45 GMT
176
+ Etag:
177
+ - ! '"32e3ddd2b68361e77fc15e4c1bf518b9"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjM2M2MyMTRlNzg0ZDQ1YTNjZjc0NWEyYjVmYzU2OWM%3D--2610f63cac5310fd9990316e589b1be52ea2b7a4;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:45 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.065128'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '247'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"name":"1st","createdAt":"2013-04-17T06:27:44.290Z","updatedAt":"2013-04-17T06:27:44.290Z","objectId":"zUCY2Aal1a"},{"name":"2nd","createdAt":"2013-04-17T06:27:44.836Z","updatedAt":"2013-04-17T06:27:44.836Z","objectId":"XFG4NncXHM"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 06:27:45 GMT
199
+ - request:
200
+ method: post
201
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
202
+ body:
203
+ encoding: UTF-8
204
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Event/zUCY2Aal1a"},{"method":"DELETE","path":"/1/classes/Event/XFG4NncXHM"}]}'
205
+ headers:
206
+ Accept:
207
+ - ! '*/*; q=0.5, application/xml'
208
+ Accept-Encoding:
209
+ - gzip, deflate
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '128'
214
+ User-Agent:
215
+ - Ruby
216
+ response:
217
+ status:
218
+ code: 200
219
+ message: OK
220
+ headers:
221
+ Cache-Control:
222
+ - max-age=0, private, must-revalidate
223
+ Content-Type:
224
+ - application/json; charset=utf-8
225
+ Date:
226
+ - Wed, 17 Apr 2013 06:27:46 GMT
227
+ Etag:
228
+ - ! '"9f103a4fc959709a4ff9f7cb2a96d647"'
229
+ Server:
230
+ - nginx/1.2.2
231
+ Set-Cookie:
232
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWUwYzM2YjNmODI2ZjhhNGM3MjQ2NTgzYmIxNThmMTU%3D--2fa4a1df74dbefd2f80a8545953e1b270b837179;
233
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:46 GMT; secure;
234
+ HttpOnly
235
+ Status:
236
+ - 200 OK
237
+ X-Runtime:
238
+ - '0.053619'
239
+ X-Ua-Compatible:
240
+ - IE=Edge,chrome=1
241
+ Content-Length:
242
+ - '35'
243
+ Connection:
244
+ - keep-alive
245
+ body:
246
+ encoding: US-ASCII
247
+ string: ! '[{"success":true},{"success":true}]'
248
+ http_version:
249
+ recorded_at: Wed, 17 Apr 2013 06:27:46 GMT
250
+ - request:
251
+ method: get
252
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Event?where=%7B%7D
253
+ body:
254
+ encoding: US-ASCII
255
+ string: ''
256
+ headers:
257
+ Accept:
258
+ - ! '*/*; q=0.5, application/xml'
259
+ Accept-Encoding:
260
+ - gzip, deflate
261
+ User-Agent:
262
+ - Ruby
263
+ response:
264
+ status:
265
+ code: 200
266
+ message: OK
267
+ headers:
268
+ Cache-Control:
269
+ - max-age=0, private, must-revalidate
270
+ Content-Type:
271
+ - application/json; charset=utf-8
272
+ Date:
273
+ - Wed, 17 Apr 2013 20:08:55 GMT
274
+ Etag:
275
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTM0NzI1ODgxMGRhYTczZjFhNzc3NWNhMTQ5NTFkZDA%3D--efbdbcedf329077effa1d3de554effcb6f345cb0;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:55 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 200 OK
284
+ X-Runtime:
285
+ - '0.030365'
286
+ X-Ua-Compatible:
287
+ - IE=Edge,chrome=1
288
+ Content-Length:
289
+ - '14'
290
+ Connection:
291
+ - keep-alive
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '{"results":[]}'
295
+ http_version:
296
+ recorded_at: Wed, 17 Apr 2013 20:08:55 GMT
297
+ - request:
298
+ method: post
299
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Event
300
+ body:
301
+ encoding: UTF-8
302
+ string: ! '{"name":"1st"}'
303
+ headers:
304
+ Accept:
305
+ - ! '*/*; q=0.5, application/xml'
306
+ Accept-Encoding:
307
+ - gzip, deflate
308
+ Content-Type:
309
+ - application/json
310
+ Content-Length:
311
+ - '14'
312
+ User-Agent:
313
+ - Ruby
314
+ response:
315
+ status:
316
+ code: 201
317
+ message: Created
318
+ headers:
319
+ Cache-Control:
320
+ - no-cache
321
+ Content-Type:
322
+ - application/json; charset=utf-8
323
+ Date:
324
+ - Wed, 17 Apr 2013 20:08:55 GMT
325
+ Location:
326
+ - https://api.parse.com/1/classes/Event/0lCo1V1IBf
327
+ Server:
328
+ - nginx/1.2.2
329
+ Set-Cookie:
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2I4ZGY3N2VhZTU2ZWRjZGQxZWQwYzg4ZWY4NDRkMWY%3D--da068e3ce02ccfa83ba21ab4cfde297d1017ec1c;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:55 GMT; secure;
332
+ HttpOnly
333
+ Status:
334
+ - 201 Created
335
+ X-Runtime:
336
+ - '0.031592'
337
+ X-Ua-Compatible:
338
+ - IE=Edge,chrome=1
339
+ Content-Length:
340
+ - '64'
341
+ Connection:
342
+ - keep-alive
343
+ body:
344
+ encoding: US-ASCII
345
+ string: ! '{"createdAt":"2013-04-17T20:08:55.383Z","objectId":"0lCo1V1IBf"}'
346
+ http_version:
347
+ recorded_at: Wed, 17 Apr 2013 20:08:55 GMT
348
+ - request:
349
+ method: post
350
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Event
351
+ body:
352
+ encoding: UTF-8
353
+ string: ! '{"name":"2nd"}'
354
+ headers:
355
+ Accept:
356
+ - ! '*/*; q=0.5, application/xml'
357
+ Accept-Encoding:
358
+ - gzip, deflate
359
+ Content-Type:
360
+ - application/json
361
+ Content-Length:
362
+ - '14'
363
+ User-Agent:
364
+ - Ruby
365
+ response:
366
+ status:
367
+ code: 201
368
+ message: Created
369
+ headers:
370
+ Cache-Control:
371
+ - no-cache
372
+ Content-Type:
373
+ - application/json; charset=utf-8
374
+ Date:
375
+ - Wed, 17 Apr 2013 20:08:55 GMT
376
+ Location:
377
+ - https://api.parse.com/1/classes/Event/VYlY9TiWS0
378
+ Server:
379
+ - nginx/1.2.2
380
+ Set-Cookie:
381
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTcyZWIxNzkzMzMxNWJhZGM1ZGY3YzdlNTIzNmQ1NWI%3D--bf8c6e30387873e5464aa27eed33d09114142a47;
382
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:55 GMT; secure;
383
+ HttpOnly
384
+ Status:
385
+ - 201 Created
386
+ X-Runtime:
387
+ - '0.042776'
388
+ X-Ua-Compatible:
389
+ - IE=Edge,chrome=1
390
+ Content-Length:
391
+ - '64'
392
+ Connection:
393
+ - keep-alive
394
+ body:
395
+ encoding: US-ASCII
396
+ string: ! '{"createdAt":"2013-04-17T20:08:55.524Z","objectId":"VYlY9TiWS0"}'
397
+ http_version:
398
+ recorded_at: Wed, 17 Apr 2013 20:08:55 GMT
399
+ - request:
400
+ method: get
401
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Event?order=-name&where=%7B%7D
402
+ body:
403
+ encoding: US-ASCII
404
+ string: ''
405
+ headers:
406
+ Accept:
407
+ - ! '*/*; q=0.5, application/xml'
408
+ Accept-Encoding:
409
+ - gzip, deflate
410
+ User-Agent:
411
+ - Ruby
412
+ response:
413
+ status:
414
+ code: 200
415
+ message: OK
416
+ headers:
417
+ Cache-Control:
418
+ - max-age=0, private, must-revalidate
419
+ Content-Type:
420
+ - application/json; charset=utf-8
421
+ Date:
422
+ - Wed, 17 Apr 2013 20:08:55 GMT
423
+ Etag:
424
+ - ! '"8f4261727173981694f60424aed4a603"'
425
+ Server:
426
+ - nginx/1.2.2
427
+ Set-Cookie:
428
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZGE0ZDVmMDE5YTgxMGQzMDYzZDUyNGY4ZWQ0NzYzOTE%3D--d45b5cf50513a4b0a81ebf9713580c048fac90a4;
429
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:55 GMT; secure;
430
+ HttpOnly
431
+ Status:
432
+ - 200 OK
433
+ X-Runtime:
434
+ - '0.082831'
435
+ X-Ua-Compatible:
436
+ - IE=Edge,chrome=1
437
+ Content-Length:
438
+ - '247'
439
+ Connection:
440
+ - keep-alive
441
+ body:
442
+ encoding: US-ASCII
443
+ string: ! '{"results":[{"name":"2nd","createdAt":"2013-04-17T20:08:55.524Z","updatedAt":"2013-04-17T20:08:55.524Z","objectId":"VYlY9TiWS0"},{"name":"1st","createdAt":"2013-04-17T20:08:55.383Z","updatedAt":"2013-04-17T20:08:55.383Z","objectId":"0lCo1V1IBf"}]}'
444
+ http_version:
445
+ recorded_at: Wed, 17 Apr 2013 20:08:55 GMT
446
+ recorded_with: VCR 2.4.0