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
@@ -1,5 +1,452 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?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 06:27:37 GMT
27
+ Etag:
28
+ - ! '"c0042eeeb8ab2ecbcb56b39aea4d0839"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWQzOGZkNTc5NjhhYTQ0MjZmMDFlYjgyYWNjMTFmZTc%3D--2fae008896f4112317d411cdd543a98a504b96fd;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:37 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.030763'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '1818'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"title":"foo_0","createdAt":"2013-04-17T06:27:27.876Z","updatedAt":"2013-04-17T06:27:27.876Z","objectId":"4Ons1noX5m"},{"title":"foo_1","createdAt":"2013-04-17T06:27:28.427Z","updatedAt":"2013-04-17T06:27:28.427Z","objectId":"hott7nIPrz"},{"title":"foo_2","createdAt":"2013-04-17T06:27:28.959Z","updatedAt":"2013-04-17T06:27:28.959Z","objectId":"D97g9wu5YA"},{"title":"foo_3","createdAt":"2013-04-17T06:27:29.660Z","updatedAt":"2013-04-17T06:27:29.660Z","objectId":"qCS3Yxhxl3"},{"title":"foo_4","createdAt":"2013-04-17T06:27:30.476Z","updatedAt":"2013-04-17T06:27:30.476Z","objectId":"e4yD9wcLe5"},{"title":"foo_5","createdAt":"2013-04-17T06:27:31.015Z","updatedAt":"2013-04-17T06:27:31.015Z","objectId":"u4kys4tF0x"},{"title":"foo_6","createdAt":"2013-04-17T06:27:31.563Z","updatedAt":"2013-04-17T06:27:31.563Z","objectId":"M0tJ4AdeFb"},{"title":"foo_7","createdAt":"2013-04-17T06:27:32.117Z","updatedAt":"2013-04-17T06:27:32.117Z","objectId":"lbQqymgP1W"},{"title":"foo_8","createdAt":"2013-04-17T06:27:32.677Z","updatedAt":"2013-04-17T06:27:32.677Z","objectId":"0DCOATiQ0A"},{"title":"foo_9","createdAt":"2013-04-17T06:27:33.217Z","updatedAt":"2013-04-17T06:27:33.217Z","objectId":"ALt6uednGV"},{"title":"foo_10","createdAt":"2013-04-17T06:27:33.768Z","updatedAt":"2013-04-17T06:27:33.768Z","objectId":"Rdxi1bvHvQ"},{"title":"foo_11","createdAt":"2013-04-17T06:27:34.323Z","updatedAt":"2013-04-17T06:27:34.323Z","objectId":"4yLsjIHWCU"},{"title":"foo_12","createdAt":"2013-04-17T06:27:34.863Z","updatedAt":"2013-04-17T06:27:34.863Z","objectId":"ZHY6mteg3O"},{"title":"foo_13","createdAt":"2013-04-17T06:27:35.403Z","updatedAt":"2013-04-17T06:27:35.403Z","objectId":"0lIlUNNQgX"},{"title":"foo_14","createdAt":"2013-04-17T06:27:35.943Z","updatedAt":"2013-04-17T06:27:35.943Z","objectId":"flFWACPBtq"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:27:37 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/Post/4Ons1noX5m"},{"method":"DELETE","path":"/1/classes/Post/hott7nIPrz"},{"method":"DELETE","path":"/1/classes/Post/D97g9wu5YA"},{"method":"DELETE","path":"/1/classes/Post/qCS3Yxhxl3"},{"method":"DELETE","path":"/1/classes/Post/e4yD9wcLe5"},{"method":"DELETE","path":"/1/classes/Post/u4kys4tF0x"},{"method":"DELETE","path":"/1/classes/Post/M0tJ4AdeFb"},{"method":"DELETE","path":"/1/classes/Post/lbQqymgP1W"},{"method":"DELETE","path":"/1/classes/Post/0DCOATiQ0A"},{"method":"DELETE","path":"/1/classes/Post/ALt6uednGV"},{"method":"DELETE","path":"/1/classes/Post/Rdxi1bvHvQ"},{"method":"DELETE","path":"/1/classes/Post/4yLsjIHWCU"},{"method":"DELETE","path":"/1/classes/Post/ZHY6mteg3O"},{"method":"DELETE","path":"/1/classes/Post/0lIlUNNQgX"},{"method":"DELETE","path":"/1/classes/Post/flFWACPBtq"}]}'
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
+ - '854'
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 06:27:38 GMT
78
+ Etag:
79
+ - ! '"26089d395af4d07f89e77a78b7a6964f"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjlhYWNjOGI0ZDAwOWZhZjYxMTgzMWM0MGU2YWRhN2E%3D--0c49e9a0376f66120e00a891e47f805a0be0be17;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:38 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.314800'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '256'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:27:38 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"title":"map"}'
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
+ - '15'
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:27:38 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Post/C8PKaGcz07
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTA0YjQ2ZTBiMGVmN2U1OGIyNjcyYTdiZTUzYmQyMTE%3D--29d26e3b446374427920d3345098ab22014e8ebd;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:38 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.029446'
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:27:38.596Z","objectId":"C8PKaGcz07"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:27:38 GMT
152
+ - request:
153
+ method: post
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
155
+ body:
156
+ encoding: UTF-8
157
+ string: ! '{"title":"map"}'
158
+ headers:
159
+ Accept:
160
+ - ! '*/*; q=0.5, application/xml'
161
+ Accept-Encoding:
162
+ - gzip, deflate
163
+ Content-Type:
164
+ - application/json
165
+ Content-Length:
166
+ - '15'
167
+ User-Agent:
168
+ - Ruby
169
+ response:
170
+ status:
171
+ code: 201
172
+ message: Created
173
+ headers:
174
+ Cache-Control:
175
+ - no-cache
176
+ Content-Type:
177
+ - application/json; charset=utf-8
178
+ Date:
179
+ - Wed, 17 Apr 2013 06:27:39 GMT
180
+ Location:
181
+ - https://api.parse.com/1/classes/Post/R40tr8pkps
182
+ Server:
183
+ - nginx/1.2.2
184
+ Set-Cookie:
185
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWM2ZTMyNjJjYjM2MTRkOWYzNDljMmIwZWJkZjM0M2Q%3D--4974c9f284bc8150ee2e5d8734435c2b61393795;
186
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:39 GMT; secure;
187
+ HttpOnly
188
+ Status:
189
+ - 201 Created
190
+ X-Runtime:
191
+ - '0.052799'
192
+ X-Ua-Compatible:
193
+ - IE=Edge,chrome=1
194
+ Content-Length:
195
+ - '64'
196
+ Connection:
197
+ - keep-alive
198
+ body:
199
+ encoding: US-ASCII
200
+ string: ! '{"createdAt":"2013-04-17T06:27:39.174Z","objectId":"R40tr8pkps"}'
201
+ http_version:
202
+ recorded_at: Wed, 17 Apr 2013 06:27:39 GMT
203
+ - request:
204
+ method: post
205
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
206
+ body:
207
+ encoding: UTF-8
208
+ string: ! '{"title":"map"}'
209
+ headers:
210
+ Accept:
211
+ - ! '*/*; q=0.5, application/xml'
212
+ Accept-Encoding:
213
+ - gzip, deflate
214
+ Content-Type:
215
+ - application/json
216
+ Content-Length:
217
+ - '15'
218
+ User-Agent:
219
+ - Ruby
220
+ response:
221
+ status:
222
+ code: 201
223
+ message: Created
224
+ headers:
225
+ Cache-Control:
226
+ - no-cache
227
+ Content-Type:
228
+ - application/json; charset=utf-8
229
+ Date:
230
+ - Wed, 17 Apr 2013 06:27:39 GMT
231
+ Location:
232
+ - https://api.parse.com/1/classes/Post/3NH0ytGMrD
233
+ Server:
234
+ - nginx/1.2.2
235
+ Set-Cookie:
236
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWVhNjc1NDcxNGYyNGE1ZGNlZjllZDM1MzliZGQyYTM%3D--6753adbfe7e7bfc390208e1d6cbf05f4ac6d561b;
237
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:39 GMT; secure;
238
+ HttpOnly
239
+ Status:
240
+ - 201 Created
241
+ X-Runtime:
242
+ - '0.035784'
243
+ X-Ua-Compatible:
244
+ - IE=Edge,chrome=1
245
+ Content-Length:
246
+ - '64'
247
+ Connection:
248
+ - keep-alive
249
+ body:
250
+ encoding: US-ASCII
251
+ string: ! '{"createdAt":"2013-04-17T06:27:39.746Z","objectId":"3NH0ytGMrD"}'
252
+ http_version:
253
+ recorded_at: Wed, 17 Apr 2013 06:27:39 GMT
254
+ - request:
255
+ method: post
256
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
257
+ body:
258
+ encoding: UTF-8
259
+ string: ! '{"title":"map"}'
260
+ headers:
261
+ Accept:
262
+ - ! '*/*; q=0.5, application/xml'
263
+ Accept-Encoding:
264
+ - gzip, deflate
265
+ Content-Type:
266
+ - application/json
267
+ Content-Length:
268
+ - '15'
269
+ User-Agent:
270
+ - Ruby
271
+ response:
272
+ status:
273
+ code: 201
274
+ message: Created
275
+ headers:
276
+ Cache-Control:
277
+ - no-cache
278
+ Content-Type:
279
+ - application/json; charset=utf-8
280
+ Date:
281
+ - Wed, 17 Apr 2013 06:27:40 GMT
282
+ Location:
283
+ - https://api.parse.com/1/classes/Post/YmeELwYNEF
284
+ Server:
285
+ - nginx/1.2.2
286
+ Set-Cookie:
287
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2JmNTA0Yzk5YWVjZjc2YTZmMjg2Yzc4Y2NiZTNhMjE%3D--36faa7e6ae6c1e804c9e11f0dae2eb75aa961506;
288
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:40 GMT; secure;
289
+ HttpOnly
290
+ Status:
291
+ - 201 Created
292
+ X-Runtime:
293
+ - '0.032664'
294
+ X-Ua-Compatible:
295
+ - IE=Edge,chrome=1
296
+ Content-Length:
297
+ - '64'
298
+ Connection:
299
+ - keep-alive
300
+ body:
301
+ encoding: US-ASCII
302
+ string: ! '{"createdAt":"2013-04-17T06:27:40.308Z","objectId":"YmeELwYNEF"}'
303
+ http_version:
304
+ recorded_at: Wed, 17 Apr 2013 06:27:40 GMT
305
+ - request:
306
+ method: get
307
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?where=%7B%22title%22:%22map%22%7D
308
+ body:
309
+ encoding: US-ASCII
310
+ string: ''
311
+ headers:
312
+ Accept:
313
+ - ! '*/*; q=0.5, application/xml'
314
+ Accept-Encoding:
315
+ - gzip, deflate
316
+ User-Agent:
317
+ - Ruby
318
+ response:
319
+ status:
320
+ code: 200
321
+ message: OK
322
+ headers:
323
+ Cache-Control:
324
+ - max-age=0, private, must-revalidate
325
+ Content-Type:
326
+ - application/json; charset=utf-8
327
+ Date:
328
+ - Wed, 17 Apr 2013 06:27:40 GMT
329
+ Etag:
330
+ - ! '"13dbd28417c76fa752590351e7560d0b"'
331
+ Server:
332
+ - nginx/1.2.2
333
+ Set-Cookie:
334
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYzY0ZmY3ZjA2MjNlOGQyOTk5OTM2MzFlZDU4NGFmNDU%3D--e8d7f8a1d6de2f464fce19fc234858cc245a7243;
335
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:40 GMT; secure;
336
+ HttpOnly
337
+ Status:
338
+ - 200 OK
339
+ X-Runtime:
340
+ - '0.029270'
341
+ X-Ua-Compatible:
342
+ - IE=Edge,chrome=1
343
+ Content-Length:
344
+ - '485'
345
+ Connection:
346
+ - keep-alive
347
+ body:
348
+ encoding: US-ASCII
349
+ string: ! '{"results":[{"title":"map","createdAt":"2013-04-17T06:27:38.596Z","updatedAt":"2013-04-17T06:27:38.596Z","objectId":"C8PKaGcz07"},{"title":"map","createdAt":"2013-04-17T06:27:39.174Z","updatedAt":"2013-04-17T06:27:39.174Z","objectId":"R40tr8pkps"},{"title":"map","createdAt":"2013-04-17T06:27:39.746Z","updatedAt":"2013-04-17T06:27:39.746Z","objectId":"3NH0ytGMrD"},{"title":"map","createdAt":"2013-04-17T06:27:40.308Z","updatedAt":"2013-04-17T06:27:40.308Z","objectId":"YmeELwYNEF"}]}'
350
+ http_version:
351
+ recorded_at: Wed, 17 Apr 2013 06:27:40 GMT
352
+ - request:
353
+ method: get
354
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%7D
355
+ body:
356
+ encoding: US-ASCII
357
+ string: ''
358
+ headers:
359
+ Accept:
360
+ - ! '*/*; q=0.5, application/xml'
361
+ Accept-Encoding:
362
+ - gzip, deflate
363
+ User-Agent:
364
+ - Ruby
365
+ response:
366
+ status:
367
+ code: 200
368
+ message: OK
369
+ headers:
370
+ Cache-Control:
371
+ - max-age=0, private, must-revalidate
372
+ Content-Type:
373
+ - application/json; charset=utf-8
374
+ Date:
375
+ - Wed, 17 Apr 2013 20:08:53 GMT
376
+ Etag:
377
+ - ! '"f7b877ea2f480d399e013945cf5b9380"'
378
+ Server:
379
+ - nginx/1.2.2
380
+ Set-Cookie:
381
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzM1NmYzMWUyNjliZGU1NjQ3OTE1OGNjYmE1Y2I0ZGE%3D--b55e5c2010eb39dd0c71dcc0388c41e1cfd14469;
382
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:53 GMT; secure;
383
+ HttpOnly
384
+ Status:
385
+ - 200 OK
386
+ X-Runtime:
387
+ - '0.028476'
388
+ X-Ua-Compatible:
389
+ - IE=Edge,chrome=1
390
+ Content-Length:
391
+ - '1818'
392
+ Connection:
393
+ - keep-alive
394
+ body:
395
+ encoding: US-ASCII
396
+ string: ! '{"results":[{"title":"foo_0","createdAt":"2013-04-17T20:08:50.248Z","updatedAt":"2013-04-17T20:08:50.248Z","objectId":"sL9bcgCpNJ"},{"title":"foo_1","createdAt":"2013-04-17T20:08:50.384Z","updatedAt":"2013-04-17T20:08:50.384Z","objectId":"YgLjJXzZZM"},{"title":"foo_2","createdAt":"2013-04-17T20:08:50.537Z","updatedAt":"2013-04-17T20:08:50.537Z","objectId":"riJxMpU3NU"},{"title":"foo_3","createdAt":"2013-04-17T20:08:50.688Z","updatedAt":"2013-04-17T20:08:50.688Z","objectId":"MoxLVVUJC0"},{"title":"foo_4","createdAt":"2013-04-17T20:08:50.870Z","updatedAt":"2013-04-17T20:08:50.870Z","objectId":"T4p2C8Rsih"},{"title":"foo_5","createdAt":"2013-04-17T20:08:51.009Z","updatedAt":"2013-04-17T20:08:51.009Z","objectId":"naCS3oRhPI"},{"title":"foo_6","createdAt":"2013-04-17T20:08:51.228Z","updatedAt":"2013-04-17T20:08:51.228Z","objectId":"Ro8j5GMziV"},{"title":"foo_7","createdAt":"2013-04-17T20:08:51.375Z","updatedAt":"2013-04-17T20:08:51.375Z","objectId":"JYh0UXxWQA"},{"title":"foo_8","createdAt":"2013-04-17T20:08:51.514Z","updatedAt":"2013-04-17T20:08:51.514Z","objectId":"9nIf2pGY5m"},{"title":"foo_9","createdAt":"2013-04-17T20:08:51.670Z","updatedAt":"2013-04-17T20:08:51.670Z","objectId":"MJgRrl4H9G"},{"title":"foo_10","createdAt":"2013-04-17T20:08:51.811Z","updatedAt":"2013-04-17T20:08:51.811Z","objectId":"uVXze6HGDv"},{"title":"foo_11","createdAt":"2013-04-17T20:08:51.976Z","updatedAt":"2013-04-17T20:08:51.976Z","objectId":"zH533Qv00M"},{"title":"foo_12","createdAt":"2013-04-17T20:08:52.400Z","updatedAt":"2013-04-17T20:08:52.400Z","objectId":"V7WllZFkQo"},{"title":"foo_13","createdAt":"2013-04-17T20:08:52.544Z","updatedAt":"2013-04-17T20:08:52.544Z","objectId":"Pdhq0btWfa"},{"title":"foo_14","createdAt":"2013-04-17T20:08:52.694Z","updatedAt":"2013-04-17T20:08:52.694Z","objectId":"sCugf3NSv7"}]}'
397
+ http_version:
398
+ recorded_at: Wed, 17 Apr 2013 20:08:53 GMT
399
+ - request:
400
+ method: post
401
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
402
+ body:
403
+ encoding: UTF-8
404
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Post/sL9bcgCpNJ"},{"method":"DELETE","path":"/1/classes/Post/YgLjJXzZZM"},{"method":"DELETE","path":"/1/classes/Post/riJxMpU3NU"},{"method":"DELETE","path":"/1/classes/Post/MoxLVVUJC0"},{"method":"DELETE","path":"/1/classes/Post/T4p2C8Rsih"},{"method":"DELETE","path":"/1/classes/Post/naCS3oRhPI"},{"method":"DELETE","path":"/1/classes/Post/Ro8j5GMziV"},{"method":"DELETE","path":"/1/classes/Post/JYh0UXxWQA"},{"method":"DELETE","path":"/1/classes/Post/9nIf2pGY5m"},{"method":"DELETE","path":"/1/classes/Post/MJgRrl4H9G"},{"method":"DELETE","path":"/1/classes/Post/uVXze6HGDv"},{"method":"DELETE","path":"/1/classes/Post/zH533Qv00M"},{"method":"DELETE","path":"/1/classes/Post/V7WllZFkQo"},{"method":"DELETE","path":"/1/classes/Post/Pdhq0btWfa"},{"method":"DELETE","path":"/1/classes/Post/sCugf3NSv7"}]}'
405
+ headers:
406
+ Accept:
407
+ - ! '*/*; q=0.5, application/xml'
408
+ Accept-Encoding:
409
+ - gzip, deflate
410
+ Content-Type:
411
+ - application/json
412
+ Content-Length:
413
+ - '854'
414
+ User-Agent:
415
+ - Ruby
416
+ response:
417
+ status:
418
+ code: 200
419
+ message: OK
420
+ headers:
421
+ Cache-Control:
422
+ - max-age=0, private, must-revalidate
423
+ Content-Type:
424
+ - application/json; charset=utf-8
425
+ Date:
426
+ - Wed, 17 Apr 2013 20:08:53 GMT
427
+ Etag:
428
+ - ! '"26089d395af4d07f89e77a78b7a6964f"'
429
+ Server:
430
+ - nginx/1.2.2
431
+ Set-Cookie:
432
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODhmOWY0YmFkYmE1ZGYwOTg4Mjk2YWY0NWQyZmRiZjU%3D--81fcbcfd0f5eda5ca1c59cc6613d0e2132c1a99a;
433
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:53 GMT; secure;
434
+ HttpOnly
435
+ Status:
436
+ - 200 OK
437
+ X-Runtime:
438
+ - '0.354270'
439
+ X-Ua-Compatible:
440
+ - IE=Edge,chrome=1
441
+ Content-Length:
442
+ - '256'
443
+ Connection:
444
+ - keep-alive
445
+ body:
446
+ encoding: US-ASCII
447
+ string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
448
+ http_version:
449
+ recorded_at: Wed, 17 Apr 2013 20:08:53 GMT
3
450
  - request:
4
451
  method: post
5
452
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +469,24 @@ http_interactions:
22
469
  code: 201
23
470
  message: Created
24
471
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
472
  Cache-Control:
30
473
  - no-cache
31
474
  Content-Type:
32
475
  - application/json; charset=utf-8
33
476
  Date:
34
- - Thu, 20 Sep 2012 04:31:50 GMT
477
+ - Wed, 17 Apr 2013 20:08:53 GMT
35
478
  Location:
36
- - https://api.parse.com/1/classes/Post/wGC0iMhC1q
479
+ - https://api.parse.com/1/classes/Post/SEZh8x9msM
37
480
  Server:
38
481
  - nginx/1.2.2
39
482
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzNhNWMwZmIzNzU4YjBjYTE3OWFiZDJkMmM2OGQ3MWI%3D--3a80dffe6951bc3040ba317b8ba50d398f457aa0;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:50 GMT; HttpOnly
483
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjBmZTM1ZjM3OGRhYmU3Nzc4ZDZlNWY5MWM2NzE4ODM%3D--1d7135fc2c6872325921f45d4b30d18f85767267;
484
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:53 GMT; secure;
485
+ HttpOnly
42
486
  Status:
43
487
  - 201 Created
44
488
  X-Runtime:
45
- - '0.021269'
489
+ - '0.039117'
46
490
  X-Ua-Compatible:
47
491
  - IE=Edge,chrome=1
48
492
  Content-Length:
@@ -51,9 +495,9 @@ http_interactions:
51
495
  - keep-alive
52
496
  body:
53
497
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:50.715Z","objectId":"wGC0iMhC1q"}'
498
+ string: ! '{"createdAt":"2013-04-17T20:08:53.611Z","objectId":"SEZh8x9msM"}'
55
499
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:50 GMT
500
+ recorded_at: Wed, 17 Apr 2013 20:08:53 GMT
57
501
  - request:
58
502
  method: post
59
503
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -76,27 +520,24 @@ http_interactions:
76
520
  code: 201
77
521
  message: Created
78
522
  headers:
79
- Access-Control-Allow-Origin:
80
- - https://parse.com, https://www.parse.com
81
- Access-Control-Request-Method:
82
- - ! '*'
83
523
  Cache-Control:
84
524
  - no-cache
85
525
  Content-Type:
86
526
  - application/json; charset=utf-8
87
527
  Date:
88
- - Thu, 20 Sep 2012 04:31:50 GMT
528
+ - Wed, 17 Apr 2013 20:08:53 GMT
89
529
  Location:
90
- - https://api.parse.com/1/classes/Post/BRe3inSdfc
530
+ - https://api.parse.com/1/classes/Post/tpve3K2Mcq
91
531
  Server:
92
532
  - nginx/1.2.2
93
533
  Set-Cookie:
94
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmNlZmU3MGQ0OWE5ZDg1ZTFlYjcyM2UxNmE5YzMwNmU%3D--7f67a6e22f435a78690f51e5a8df6d4fa1d9b284;
95
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:50 GMT; HttpOnly
534
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTFjN2FiZjg3OGNkY2EwZDc2Y2ZjZDMxMDZjZDBjODU%3D--a1c38d9b2b34623036ce07d69a4d36d65a5f1614;
535
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:53 GMT; secure;
536
+ HttpOnly
96
537
  Status:
97
538
  - 201 Created
98
539
  X-Runtime:
99
- - '0.021096'
540
+ - '0.031617'
100
541
  X-Ua-Compatible:
101
542
  - IE=Edge,chrome=1
102
543
  Content-Length:
@@ -105,9 +546,9 @@ http_interactions:
105
546
  - keep-alive
106
547
  body:
107
548
  encoding: US-ASCII
108
- string: ! '{"createdAt":"2012-09-20T04:31:50.930Z","objectId":"BRe3inSdfc"}'
549
+ string: ! '{"createdAt":"2013-04-17T20:08:53.758Z","objectId":"tpve3K2Mcq"}'
109
550
  http_version:
110
- recorded_at: Thu, 20 Sep 2012 04:31:51 GMT
551
+ recorded_at: Wed, 17 Apr 2013 20:08:53 GMT
111
552
  - request:
112
553
  method: post
113
554
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -130,27 +571,24 @@ http_interactions:
130
571
  code: 201
131
572
  message: Created
132
573
  headers:
133
- Access-Control-Allow-Origin:
134
- - https://parse.com, https://www.parse.com
135
- Access-Control-Request-Method:
136
- - ! '*'
137
574
  Cache-Control:
138
575
  - no-cache
139
576
  Content-Type:
140
577
  - application/json; charset=utf-8
141
578
  Date:
142
- - Thu, 20 Sep 2012 04:31:51 GMT
579
+ - Wed, 17 Apr 2013 20:08:54 GMT
143
580
  Location:
144
- - https://api.parse.com/1/classes/Post/GsgLDzn7qR
581
+ - https://api.parse.com/1/classes/Post/LbVaACGqpQ
145
582
  Server:
146
583
  - nginx/1.2.2
147
584
  Set-Cookie:
148
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmNlMmRjYmY1NjE2OWM4ZDIwNjhjZjEyZjE4M2JmMzg%3D--10a5d611912381762dc8672ac61e7feb4a552ce0;
149
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:51 GMT; HttpOnly
585
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmQyN2UyNTBhNzBkM2QxNDkxZDY0NmRmZmU1ZjYyNjk%3D--643cbd6fdaca69decde713068254b9d19c52d21c;
586
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
587
+ HttpOnly
150
588
  Status:
151
589
  - 201 Created
152
590
  X-Runtime:
153
- - '0.037962'
591
+ - '0.147777'
154
592
  X-Ua-Compatible:
155
593
  - IE=Edge,chrome=1
156
594
  Content-Length:
@@ -159,9 +597,9 @@ http_interactions:
159
597
  - keep-alive
160
598
  body:
161
599
  encoding: US-ASCII
162
- string: ! '{"createdAt":"2012-09-20T04:31:51.191Z","objectId":"GsgLDzn7qR"}'
600
+ string: ! '{"createdAt":"2013-04-17T20:08:53.905Z","objectId":"LbVaACGqpQ"}'
163
601
  http_version:
164
- recorded_at: Thu, 20 Sep 2012 04:31:51 GMT
602
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
165
603
  - request:
166
604
  method: post
167
605
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -184,27 +622,24 @@ http_interactions:
184
622
  code: 201
185
623
  message: Created
186
624
  headers:
187
- Access-Control-Allow-Origin:
188
- - https://parse.com, https://www.parse.com
189
- Access-Control-Request-Method:
190
- - ! '*'
191
625
  Cache-Control:
192
626
  - no-cache
193
627
  Content-Type:
194
628
  - application/json; charset=utf-8
195
629
  Date:
196
- - Thu, 20 Sep 2012 04:31:51 GMT
630
+ - Wed, 17 Apr 2013 20:08:54 GMT
197
631
  Location:
198
- - https://api.parse.com/1/classes/Post/fPtW8fQjWf
632
+ - https://api.parse.com/1/classes/Post/0Qsbroy05s
199
633
  Server:
200
634
  - nginx/1.2.2
201
635
  Set-Cookie:
202
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmUwY2JhNDYxNTY4MWQ1ZGVjMDAxMTY0ODEwYmQ2NTM%3D--cc5e28ffc09d56dcf6546007f6cb1ff1ae43f04d;
203
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:51 GMT; HttpOnly
636
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMGYxMGNkNDY4OTRiOWJmNmE2MmYyNTcxNmQxYzkxNzY%3D--01c1629dccd11efe378cf243085e34ed36b1317d;
637
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
638
+ HttpOnly
204
639
  Status:
205
640
  - 201 Created
206
641
  X-Runtime:
207
- - '0.023611'
642
+ - '0.030809'
208
643
  X-Ua-Compatible:
209
644
  - IE=Edge,chrome=1
210
645
  Content-Length:
@@ -213,9 +648,9 @@ http_interactions:
213
648
  - keep-alive
214
649
  body:
215
650
  encoding: US-ASCII
216
- string: ! '{"createdAt":"2012-09-20T04:31:51.422Z","objectId":"fPtW8fQjWf"}'
651
+ string: ! '{"createdAt":"2013-04-17T20:08:54.208Z","objectId":"0Qsbroy05s"}'
217
652
  http_version:
218
- recorded_at: Thu, 20 Sep 2012 04:31:51 GMT
653
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
219
654
  - request:
220
655
  method: get
221
656
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22map%22%7D
@@ -234,27 +669,24 @@ http_interactions:
234
669
  code: 200
235
670
  message: OK
236
671
  headers:
237
- Access-Control-Allow-Origin:
238
- - https://parse.com, https://www.parse.com
239
- Access-Control-Request-Method:
240
- - ! '*'
241
672
  Cache-Control:
242
673
  - max-age=0, private, must-revalidate
243
674
  Content-Type:
244
675
  - application/json; charset=utf-8
245
676
  Date:
246
- - Thu, 20 Sep 2012 04:31:51 GMT
677
+ - Wed, 17 Apr 2013 20:08:54 GMT
247
678
  Etag:
248
- - ! '"d7d19fd9bbeaeffe791ece40fa57a6c3"'
679
+ - ! '"3b563febdfb4f4f5f3e803eef580e194"'
249
680
  Server:
250
681
  - nginx/1.2.2
251
682
  Set-Cookie:
252
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZGIyNzVmYTUzN2I2MjRkZWI3ZWUyODBmMjU1MjFiYWU%3D--f631102717e48b13015f40ff35754179944472c7;
253
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:51 GMT; HttpOnly
683
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmM5NTJmNWVkMzhmODY4OWE4OTYxZWNlYTE3YmJiNTM%3D--df025b42941dc65cc0f63849d25b59e543996a7c;
684
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:54 GMT; secure;
685
+ HttpOnly
254
686
  Status:
255
687
  - 200 OK
256
688
  X-Runtime:
257
- - '0.028513'
689
+ - '0.031323'
258
690
  X-Ua-Compatible:
259
691
  - IE=Edge,chrome=1
260
692
  Content-Length:
@@ -263,7 +695,7 @@ http_interactions:
263
695
  - keep-alive
264
696
  body:
265
697
  encoding: US-ASCII
266
- string: ! '{"results":[{"title":"map","createdAt":"2012-09-20T04:31:51.422Z","updatedAt":"2012-09-20T04:31:51.422Z","objectId":"fPtW8fQjWf"},{"title":"map","createdAt":"2012-09-20T04:31:50.930Z","updatedAt":"2012-09-20T04:31:50.930Z","objectId":"BRe3inSdfc"},{"title":"map","createdAt":"2012-09-20T04:31:51.191Z","updatedAt":"2012-09-20T04:31:51.191Z","objectId":"GsgLDzn7qR"},{"title":"map","createdAt":"2012-09-20T04:31:50.715Z","updatedAt":"2012-09-20T04:31:50.715Z","objectId":"wGC0iMhC1q"}]}'
698
+ string: ! '{"results":[{"title":"map","createdAt":"2013-04-17T20:08:54.208Z","updatedAt":"2013-04-17T20:08:54.208Z","objectId":"0Qsbroy05s"},{"title":"map","createdAt":"2013-04-17T20:08:53.905Z","updatedAt":"2013-04-17T20:08:53.905Z","objectId":"LbVaACGqpQ"},{"title":"map","createdAt":"2013-04-17T20:08:53.611Z","updatedAt":"2013-04-17T20:08:53.611Z","objectId":"SEZh8x9msM"},{"title":"map","createdAt":"2013-04-17T20:08:53.758Z","updatedAt":"2013-04-17T20:08:53.758Z","objectId":"tpve3K2Mcq"}]}'
267
699
  http_version:
268
- recorded_at: Thu, 20 Sep 2012 04:31:51 GMT
269
- recorded_with: VCR 2.2.4
700
+ recorded_at: Wed, 17 Apr 2013 20:08:54 GMT
701
+ recorded_with: VCR 2.4.0