parse_resource 1.7.3 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
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/Place?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:23:04 GMT
27
+ Etag:
28
+ - ! '"a357b6b962e2f8b4ef654ef983aa90fb"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTY4NmFmZDVlMmZlMDc5MTY3YjE0NTZmZDQ5NzFhYWI%3D--61567382c3972c0cd8a050a0c75e11dfed8fbc8e;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:04 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.129132'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '210'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:23:02.849Z","updatedAt":"2013-04-17T07:23:02.849Z","objectId":"xmklpmPT1N"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 07:23:04 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Place/xmklpmPT1N"}]}'
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
+ - '71'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 07:23:05 GMT
78
+ Etag:
79
+ - ! '"6abe125b20486fefa07552105cea58f3"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOWZkZjFmODEzMTNhNTNlYzI5NWQ1YWE5NzBmYWY5ZDk%3D--f794cb4ddce4c6a89c3fd3a1835509f2c6dadece;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:05 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.080586'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '18'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '[{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 07:23:05 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}'
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
+ - '94'
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:23:05 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Place/agQfLrJ8zm
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZTkxNDI5N2U4NjY0ZjEwNzM3ZGU5ZGUxMzUwODUyNjk%3D--b4219905390ccd5c7f3274714f905b683a512906;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:05 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.147532'
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:23:05.839Z","objectId":"agQfLrJ8zm"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 07:23:06 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?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 07:23:06 GMT
176
+ Etag:
177
+ - ! '"43c330b2644a4d0cf6311171bd2a1e64"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOWE2N2U3OGY4Njg3YjRiMjU4ZDZkYjkzMTVjNWExZDk%3D--2cfe5440423eb5ba2f1bc2313223b95de62c6c1c;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:06 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.034799'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '220'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:23:05.839Z","updatedAt":"2013-04-17T07:23:05.839Z","objectId":"agQfLrJ8zm"}],"count":1}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 07:23:06 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?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:09:07 GMT
223
+ Etag:
224
+ - ! '"9f64f7430dcb2843a1850800b99a50d8"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjNhMzc5OGVjZDc2ZTYyNjg0OTZhYjU4OGM2ZmNhNmY%3D--b1bcdddfb15778bdec5f9437558daae4f37062a7;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:07 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.134216'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '210'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:08:46.781Z","updatedAt":"2013-04-17T20:08:46.781Z","objectId":"8pKQeN93Ox"}]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 20:09:07 GMT
246
+ - request:
247
+ method: post
248
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
249
+ body:
250
+ encoding: UTF-8
251
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Place/8pKQeN93Ox"}]}'
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
+ - '71'
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:09:07 GMT
274
+ Etag:
275
+ - ! '"6abe125b20486fefa07552105cea58f3"'
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzgxZDAwNjQwZDhiYzQ0N2RkMjBlNWFiOGUzNWJmZWE%3D--854f8a4fb9cb9a0f5e3f4dee23fa7c24682cfaa5;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:07 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 200 OK
284
+ X-Runtime:
285
+ - '0.029545'
286
+ X-Ua-Compatible:
287
+ - IE=Edge,chrome=1
288
+ Content-Length:
289
+ - '18'
290
+ Connection:
291
+ - keep-alive
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '[{"success":true}]'
295
+ http_version:
296
+ recorded_at: Wed, 17 Apr 2013 20:09:07 GMT
297
+ - request:
298
+ method: post
299
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place
300
+ body:
301
+ encoding: UTF-8
302
+ string: ! '{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}'
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
+ - '94'
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:09:07 GMT
325
+ Location:
326
+ - https://api.parse.com/1/classes/Place/XBxOm5JO6u
327
+ Server:
328
+ - nginx/1.2.2
329
+ Set-Cookie:
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2I0MTU5ZDE2M2FkMzgyODU2NWIzMzk1YzhmNDdjNzc%3D--10850a0171484dc7a4e691d620095e13bc39d23f;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:07 GMT; secure;
332
+ HttpOnly
333
+ Status:
334
+ - 201 Created
335
+ X-Runtime:
336
+ - '0.029293'
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:09:07.941Z","objectId":"XBxOm5JO6u"}'
346
+ http_version:
347
+ recorded_at: Wed, 17 Apr 2013 20:09:07 GMT
348
+ - request:
349
+ method: get
350
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?count=1&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:09:08 GMT
372
+ Etag:
373
+ - ! '"07b051ee91c2fa762f7ac7c3a02bb659"'
374
+ Server:
375
+ - nginx/1.2.2
376
+ Set-Cookie:
377
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOGU1YjY0YWRmYWZiYjIzZDkzYTkxNGFhYjU2M2FkOTU%3D--d9efe8ba6952251c2a55580ec4ac4cfcccf8bd15;
378
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:08 GMT; secure;
379
+ HttpOnly
380
+ Status:
381
+ - 200 OK
382
+ X-Runtime:
383
+ - '0.030096'
384
+ X-Ua-Compatible:
385
+ - IE=Edge,chrome=1
386
+ Content-Length:
387
+ - '220'
388
+ Connection:
389
+ - keep-alive
390
+ body:
391
+ encoding: US-ASCII
392
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:09:07.941Z","updatedAt":"2013-04-17T20:09:07.941Z","objectId":"XBxOm5JO6u"}],"count":1}'
393
+ http_version:
394
+ recorded_at: Wed, 17 Apr 2013 20:09:08 GMT
395
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,395 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?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:23:06 GMT
27
+ Etag:
28
+ - ! '"269e71970558b36f586e00556bd9f3d8"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGFjZjIyMzhkYjY2MjBjMTRkYTQ3YTJlMWYyNDYxYWU%3D--038b3fcd29d8c42fe645a9e979003ee54b947374;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:06 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.035498'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '210'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:23:05.839Z","updatedAt":"2013-04-17T07:23:05.839Z","objectId":"agQfLrJ8zm"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 07:23:06 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Place/agQfLrJ8zm"}]}'
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
+ - '71'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 07:23:07 GMT
78
+ Etag:
79
+ - ! '"6abe125b20486fefa07552105cea58f3"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2JlNjM0YTgzZDAyNWE3MDgxZmFlMGQ1NWU4NTdmYTE%3D--a00f26cc149ab7a4fbe10e9b4c8643eab5690873;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:07 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.036932'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '18'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '[{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 07:23:07 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"name":"Office","location":{"__type":"GeoPoint","latitude":0.0,"longitude":0.0}}'
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
+ - '81'
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:23:08 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Place/rxPI7ISCsT
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTIyY2Y0NDU1MjgzNGUwMDcwNThmN2JlMDI3MDZlODE%3D--3abe80a1474bff6f17c7e0c77e2d1fb48de75074;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:08 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.041372'
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:23:08.036Z","objectId":"rxPI7ISCsT"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 07:23:08 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?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 07:23:08 GMT
176
+ Etag:
177
+ - ! '"967501478a42a27c8021dc207f2534ee"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDU0MzMwZWI3N2VhYTVhMjI1YTFjY2EwYjYwMjYxM2E%3D--39d6482a3c6073e2051c6811f24f123f3cd2e9c6;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:08 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.029981'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '207'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"name":"Office","location":{"__type":"GeoPoint","latitude":0.0,"longitude":0.0},"createdAt":"2013-04-17T07:23:08.036Z","updatedAt":"2013-04-17T07:23:08.036Z","objectId":"rxPI7ISCsT"}],"count":1}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 07:23:08 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?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:09:08 GMT
223
+ Etag:
224
+ - ! '"d408e9f9587f5abbe9bc5bc3b8716509"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2U5ZmE0YzhkNTQ3Y2U3NmFmNTRiOWEzZTQ4ZWNhMzY%3D--d84cc174f7fd1f63e34277cb0f54b40081ad96e6;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:08 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.029969'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '210'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:09:07.941Z","updatedAt":"2013-04-17T20:09:07.941Z","objectId":"XBxOm5JO6u"}]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 20:09:08 GMT
246
+ - request:
247
+ method: post
248
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
249
+ body:
250
+ encoding: UTF-8
251
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Place/XBxOm5JO6u"}]}'
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
+ - '71'
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:09:08 GMT
274
+ Etag:
275
+ - ! '"6abe125b20486fefa07552105cea58f3"'
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTJlYTc2ZWI0YzE5MWIxMzE0ZDU1ZTc5MWU0MjY3NmE%3D--e574aaaa2432e3e6c75ed4d5fdbcbe2b6d25ef09;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:08 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 200 OK
284
+ X-Runtime:
285
+ - '0.031080'
286
+ X-Ua-Compatible:
287
+ - IE=Edge,chrome=1
288
+ Content-Length:
289
+ - '18'
290
+ Connection:
291
+ - keep-alive
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '[{"success":true}]'
295
+ http_version:
296
+ recorded_at: Wed, 17 Apr 2013 20:09:08 GMT
297
+ - request:
298
+ method: post
299
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place
300
+ body:
301
+ encoding: UTF-8
302
+ string: ! '{"name":"Office","location":{"__type":"GeoPoint","latitude":0.0,"longitude":0.0}}'
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
+ - '81'
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:09:08 GMT
325
+ Location:
326
+ - https://api.parse.com/1/classes/Place/G26dUXJMTG
327
+ Server:
328
+ - nginx/1.2.2
329
+ Set-Cookie:
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGZhMWIzZjE1ZGI3MzQ2N2M2OTIzMTU3MDRhNzliMDA%3D--39ca96004fedc63638c0bebadae0db4022ab3904;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:08 GMT; secure;
332
+ HttpOnly
333
+ Status:
334
+ - 201 Created
335
+ X-Runtime:
336
+ - '0.035189'
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:09:08.445Z","objectId":"G26dUXJMTG"}'
346
+ http_version:
347
+ recorded_at: Wed, 17 Apr 2013 20:09:08 GMT
348
+ - request:
349
+ method: get
350
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?count=1&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:09:08 GMT
372
+ Etag:
373
+ - ! '"5701be74bc674cb57c9a33966956384e"'
374
+ Server:
375
+ - nginx/1.2.2
376
+ Set-Cookie:
377
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTI1ZjViNGQ3ZDk5OWI1MmJkNjFkNzlkNjIwODA5NTE%3D--1fcc36713be881dd02978016b916ea1e438ac891;
378
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:08 GMT; secure;
379
+ HttpOnly
380
+ Status:
381
+ - 200 OK
382
+ X-Runtime:
383
+ - '0.032976'
384
+ X-Ua-Compatible:
385
+ - IE=Edge,chrome=1
386
+ Content-Length:
387
+ - '207'
388
+ Connection:
389
+ - keep-alive
390
+ body:
391
+ encoding: US-ASCII
392
+ string: ! '{"results":[{"name":"Office","location":{"__type":"GeoPoint","latitude":0.0,"longitude":0.0},"createdAt":"2013-04-17T20:09:08.445Z","updatedAt":"2013-04-17T20:09:08.445Z","objectId":"G26dUXJMTG"}],"count":1}'
393
+ http_version:
394
+ recorded_at: Wed, 17 Apr 2013 20:09:08 GMT
395
+ recorded_with: VCR 2.4.0