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
@@ -1,5 +1,299 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Spoon?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:17 GMT
27
+ Etag:
28
+ - ! '"6ff8070b2859cf03a95bc1497167e568"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTU2MmYyNWVmYjJiOTM2OWVlYzVjZTM1ZmY0Y2U5NGU%3D--135a33cca96d01d137548baa0810619d6267f659;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:17 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.031648'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '147'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"length":"1234567890created!","createdAt":"2013-04-17T06:26:18.789Z","updatedAt":"2013-04-17T06:26:18.789Z","objectId":"I6O7g4hhX3"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:27:17 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/Spoon/I6O7g4hhX3"}]}'
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 06:27:18 GMT
78
+ Etag:
79
+ - ! '"6abe125b20486fefa07552105cea58f3"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjJlNWMwNjIzNjAwMzQyOWVlNzhiYjIwMWUyN2MwMjM%3D--0169e5e6d6a6e12545bd54648ac5ffd03abac681;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:18 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.035722'
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 06:27:18 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Spoon
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"length":"Welcome"}'
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
+ - '20'
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:19 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Spoon/L64b3pvDdS
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGE0MGU1N2I3NDhmY2U5YTllYWUyNjQ1NTUwYzU0ODA%3D--ff71a5c0de4cdc4353114b1e8917fcb34ef08fe4;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:19 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.307882'
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:19.384Z","objectId":"L64b3pvDdS"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:27:19 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Spoon?limit=1&where=%7B%22objectId%22:%22L64b3pvDdS%22%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:19 GMT
176
+ Etag:
177
+ - ! '"d368f02aef0712d49c3abcae6b38fc08"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODcwYjhlMmUzNTljMzNlOWU3YzM5YmVjZGFhZGU1Y2E%3D--3cab23c9f8c35d5b95e85df60ffd8f96caf11665;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:19 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.036289'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '136'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"length":"Welcome","createdAt":"2013-04-17T06:27:19.384Z","updatedAt":"2013-04-17T06:27:19.384Z","objectId":"L64b3pvDdS"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 06:27:19 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon?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:47 GMT
223
+ Etag:
224
+ - ! '"83cada623071ad929cd583e582b60ded"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGZkM2ZmYzJhNTMxNTg3OWU5NjY2NjNjN2E0NDYyMjc%3D--ce56d9900fbc8a6ca2e41ef49fa374838f3c8bd9;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.049159'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '147'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[{"length":"1234567890created!","createdAt":"2013-04-17T20:08:30.560Z","updatedAt":"2013-04-17T20:08:30.560Z","objectId":"CEjxvhwC5R"}]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 20:08:47 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/Spoon/CEjxvhwC5R"}]}'
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:08:47 GMT
274
+ Etag:
275
+ - ! '"6abe125b20486fefa07552105cea58f3"'
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTMxMTk0YWZhMGYwODBiMDg3NjIwY2FlNmQ3OTMxNjg%3D--3bf020bf1eeba8e282f7dafbe2a99dbd9e64b6a5;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 200 OK
284
+ X-Runtime:
285
+ - '0.038741'
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:08:47 GMT
3
297
  - request:
4
298
  method: post
5
299
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon
@@ -22,27 +316,24 @@ http_interactions:
22
316
  code: 201
23
317
  message: Created
24
318
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
319
  Cache-Control:
30
320
  - no-cache
31
321
  Content-Type:
32
322
  - application/json; charset=utf-8
33
323
  Date:
34
- - Thu, 20 Sep 2012 04:31:44 GMT
324
+ - Wed, 17 Apr 2013 20:08:47 GMT
35
325
  Location:
36
- - https://api.parse.com/1/classes/Spoon/xkJeYEfqMd
326
+ - https://api.parse.com/1/classes/Spoon/ZRnT134MGm
37
327
  Server:
38
328
  - nginx/1.2.2
39
329
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTM5MDNhZDI0NGFlN2YxZTMwNDM2NjJkZjNkYjFmMGE%3D--33984c7aa9a814b64c98ce0137696b136bc39277;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZTIyNGM1ZTAwZWI0ZWE3ZWFhOWI1YWMwZGNmODRmNTk%3D--3a44df3d197acf3c256d7b1e1547502e77e3fc8f;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
332
+ HttpOnly
42
333
  Status:
43
334
  - 201 Created
44
335
  X-Runtime:
45
- - '0.021043'
336
+ - '0.035499'
46
337
  X-Ua-Compatible:
47
338
  - IE=Edge,chrome=1
48
339
  Content-Length:
@@ -51,12 +342,12 @@ http_interactions:
51
342
  - keep-alive
52
343
  body:
53
344
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:44.394Z","objectId":"xkJeYEfqMd"}'
345
+ string: ! '{"createdAt":"2013-04-17T20:08:47.571Z","objectId":"ZRnT134MGm"}'
55
346
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
347
+ recorded_at: Wed, 17 Apr 2013 20:08:47 GMT
57
348
  - request:
58
349
  method: get
59
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon?where=%7B%22objectId%22:%22xkJeYEfqMd%22%7D
350
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon?limit=1&where=%7B%22objectId%22:%22ZRnT134MGm%22%7D
60
351
  body:
61
352
  encoding: US-ASCII
62
353
  string: ''
@@ -72,27 +363,24 @@ http_interactions:
72
363
  code: 200
73
364
  message: OK
74
365
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
366
  Cache-Control:
80
367
  - max-age=0, private, must-revalidate
81
368
  Content-Type:
82
369
  - application/json; charset=utf-8
83
370
  Date:
84
- - Thu, 20 Sep 2012 04:31:44 GMT
371
+ - Wed, 17 Apr 2013 20:08:47 GMT
85
372
  Etag:
86
- - ! '"06287f71cecc6f9c1b7bcad061d0d2e6"'
373
+ - ! '"18c3288f8dedb4e7d10b2ed6f656d0eb"'
87
374
  Server:
88
375
  - nginx/1.2.2
89
376
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2RjNjI0NmEyNzAzNjliYTUxNTYxNGVhMzMxNmU5ZWQ%3D--4ccddf11c1c866981b6ab7f8911da61322ff94bb;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
377
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDNlZjIwOGU4Y2VmZDA0Y2ExMzdmZGU2MWZiNGJhNjU%3D--3ddc59ab19d5b842aca9fa7d3adbbd91ce0689e5;
378
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
379
+ HttpOnly
92
380
  Status:
93
381
  - 200 OK
94
382
  X-Runtime:
95
- - '0.033418'
383
+ - '0.030152'
96
384
  X-Ua-Compatible:
97
385
  - IE=Edge,chrome=1
98
386
  Content-Length:
@@ -101,7 +389,7 @@ http_interactions:
101
389
  - keep-alive
102
390
  body:
103
391
  encoding: US-ASCII
104
- string: ! '{"results":[{"length":"Welcome","createdAt":"2012-09-20T04:31:44.394Z","updatedAt":"2012-09-20T04:31:44.394Z","objectId":"xkJeYEfqMd"}]}'
392
+ string: ! '{"results":[{"length":"Welcome","createdAt":"2013-04-17T20:08:47.571Z","updatedAt":"2013-04-17T20:08:47.571Z","objectId":"ZRnT134MGm"}]}'
105
393
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
107
- recorded_with: VCR 2.2.4
394
+ recorded_at: Wed, 17 Apr 2013 20:08:47 GMT
395
+ recorded_with: VCR 2.4.0
@@ -1,5 +1,150 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"title":"Welcome111"}'
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
+ - '22'
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:20 GMT
31
+ Location:
32
+ - https://api.parse.com/1/classes/Post/fXAyeJ7wuR
33
+ Server:
34
+ - nginx/1.2.2
35
+ Set-Cookie:
36
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZmIyOTVmZDZlNTc5Nzc1ZDQ2MjZkN2U4MTBhZWIyZjY%3D--e52c347128773c52aae5fc8df5e3fc29cf359a74;
37
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:20 GMT; secure;
38
+ HttpOnly
39
+ Status:
40
+ - 201 Created
41
+ X-Runtime:
42
+ - '0.038582'
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:20.364Z","objectId":"fXAyeJ7wuR"}'
52
+ http_version:
53
+ recorded_at: Wed, 17 Apr 2013 06:27:20 GMT
54
+ - request:
55
+ method: get
56
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ Accept:
62
+ - ! '*/*; q=0.5, application/xml'
63
+ Accept-Encoding:
64
+ - gzip, deflate
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:20 GMT
78
+ Etag:
79
+ - ! '"28bbe9b1ddb0da04be2760359817afb9"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjA4OThmYzVmNGVhMDIzOTcwNmFlM2JhZjJiZjE5OWU%3D--8c8a536f911abfa8f26d2a739350c17e1c492f7b;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:20 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.173961'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '138'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T06:27:20.364Z","updatedAt":"2013-04-17T06:27:20.364Z","objectId":"fXAyeJ7wuR"}]}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:27:20 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
104
+ body:
105
+ encoding: US-ASCII
106
+ string: ''
107
+ headers:
108
+ Accept:
109
+ - ! '*/*; q=0.5, application/xml'
110
+ Accept-Encoding:
111
+ - gzip, deflate
112
+ User-Agent:
113
+ - Ruby
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ Cache-Control:
120
+ - max-age=0, private, must-revalidate
121
+ Content-Type:
122
+ - application/json; charset=utf-8
123
+ Date:
124
+ - Wed, 17 Apr 2013 06:27:21 GMT
125
+ Etag:
126
+ - ! '"28bbe9b1ddb0da04be2760359817afb9"'
127
+ Server:
128
+ - nginx/1.2.2
129
+ Set-Cookie:
130
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZjY5MjYyMzMzNTlkNWFmMTkwZTBiOGIzYTgwMTZmZTA%3D--b7f8950fe929a7dffe133bbeb34b2800cfc48a13;
131
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:21 GMT; secure;
132
+ HttpOnly
133
+ Status:
134
+ - 200 OK
135
+ X-Runtime:
136
+ - '0.039342'
137
+ X-Ua-Compatible:
138
+ - IE=Edge,chrome=1
139
+ Content-Length:
140
+ - '138'
141
+ Connection:
142
+ - keep-alive
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T06:27:20.364Z","updatedAt":"2013-04-17T06:27:20.364Z","objectId":"fXAyeJ7wuR"}]}'
146
+ http_version:
147
+ recorded_at: Wed, 17 Apr 2013 06:27:21 GMT
3
148
  - request:
4
149
  method: post
5
150
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +167,24 @@ http_interactions:
22
167
  code: 201
23
168
  message: Created
24
169
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
170
  Cache-Control:
30
171
  - no-cache
31
172
  Content-Type:
32
173
  - application/json; charset=utf-8
33
174
  Date:
34
- - Thu, 20 Sep 2012 04:31:44 GMT
175
+ - Wed, 17 Apr 2013 20:08:47 GMT
35
176
  Location:
36
- - https://api.parse.com/1/classes/Post/ZwjYQFBuv6
177
+ - https://api.parse.com/1/classes/Post/P2iBxvGPc2
37
178
  Server:
38
179
  - nginx/1.2.2
39
180
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjgxODI3MWQzNDI3NDQ5MjA4N2NmODEzYTg2YzE2ZTQ%3D--4d8d0d1848d3e6f39f64be4b88ffd141a2623d2e;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWUwZTFjMDlhZjUxZmMxNjMyNmNhY2Q2MjA3NjZiZWQ%3D--07d0a3ce236bf7c8cba2b2a71a8c53fb6e562c1e;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
183
+ HttpOnly
42
184
  Status:
43
185
  - 201 Created
44
186
  X-Runtime:
45
- - '0.016997'
187
+ - '0.025163'
46
188
  X-Ua-Compatible:
47
189
  - IE=Edge,chrome=1
48
190
  Content-Length:
@@ -51,9 +193,9 @@ http_interactions:
51
193
  - keep-alive
52
194
  body:
53
195
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}'
196
+ string: ! '{"createdAt":"2013-04-17T20:08:47.867Z","objectId":"P2iBxvGPc2"}'
55
197
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
198
+ recorded_at: Wed, 17 Apr 2013 20:08:47 GMT
57
199
  - request:
58
200
  method: get
59
201
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
@@ -72,27 +214,24 @@ http_interactions:
72
214
  code: 200
73
215
  message: OK
74
216
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
217
  Cache-Control:
80
218
  - max-age=0, private, must-revalidate
81
219
  Content-Type:
82
220
  - application/json; charset=utf-8
83
221
  Date:
84
- - Thu, 20 Sep 2012 04:31:44 GMT
222
+ - Wed, 17 Apr 2013 20:08:47 GMT
85
223
  Etag:
86
- - ! '"4d7ab37dce0e55c0ac4f389a7bb8d329"'
224
+ - ! '"8316769c7927d1c4b1faf7437c03881b"'
87
225
  Server:
88
226
  - nginx/1.2.2
89
227
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzZiMjMwZWYxNjExNDYwMjY5M2Y1ODNhNzJiNjljMDc%3D--d4e85c6d835e610b9442f6b16c0165eda0037edc;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODc3NzZiNWViYjJiMTI2NmQwODgxZmRkODA3NjBkY2M%3D--0f6e30ceb7ce459fe74fa3d360c41075a386fb0f;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
230
+ HttpOnly
92
231
  Status:
93
232
  - 200 OK
94
233
  X-Runtime:
95
- - '0.017498'
234
+ - '0.030594'
96
235
  X-Ua-Compatible:
97
236
  - IE=Edge,chrome=1
98
237
  Content-Length:
@@ -101,9 +240,9 @@ http_interactions:
101
240
  - keep-alive
102
241
  body:
103
242
  encoding: US-ASCII
104
- string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
243
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T20:08:47.867Z","updatedAt":"2013-04-17T20:08:47.867Z","objectId":"P2iBxvGPc2"}]}'
105
244
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
245
+ recorded_at: Wed, 17 Apr 2013 20:08:47 GMT
107
246
  - request:
108
247
  method: get
109
248
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
@@ -122,27 +261,24 @@ http_interactions:
122
261
  code: 200
123
262
  message: OK
124
263
  headers:
125
- Access-Control-Allow-Origin:
126
- - https://parse.com, https://www.parse.com
127
- Access-Control-Request-Method:
128
- - ! '*'
129
264
  Cache-Control:
130
265
  - max-age=0, private, must-revalidate
131
266
  Content-Type:
132
267
  - application/json; charset=utf-8
133
268
  Date:
134
- - Thu, 20 Sep 2012 04:31:45 GMT
269
+ - Wed, 17 Apr 2013 20:08:48 GMT
135
270
  Etag:
136
- - ! '"4d7ab37dce0e55c0ac4f389a7bb8d329"'
271
+ - ! '"8316769c7927d1c4b1faf7437c03881b"'
137
272
  Server:
138
273
  - nginx/1.2.2
139
274
  Set-Cookie:
140
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYzVmYWYzNmNiMzFhYzA0YmVjZTJiY2VhMDk4OWVhOWY%3D--936695426c77e609d0afcda770009da7cef0265a;
141
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
275
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTc4NzE4MjE2MDk1NjhjOTkzNmExNGI0MGFhYTAxNTk%3D--06b7ce74439dde6f1e4f55804ef5f47eaae92132;
276
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:48 GMT; secure;
277
+ HttpOnly
142
278
  Status:
143
279
  - 200 OK
144
280
  X-Runtime:
145
- - '0.122842'
281
+ - '0.039782'
146
282
  X-Ua-Compatible:
147
283
  - IE=Edge,chrome=1
148
284
  Content-Length:
@@ -151,7 +287,7 @@ http_interactions:
151
287
  - keep-alive
152
288
  body:
153
289
  encoding: US-ASCII
154
- string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
290
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T20:08:47.867Z","updatedAt":"2013-04-17T20:08:47.867Z","objectId":"P2iBxvGPc2"}]}'
155
291
  http_version:
156
- recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
157
- recorded_with: VCR 2.2.4
292
+ recorded_at: Wed, 17 Apr 2013 20:08:48 GMT
293
+ recorded_with: VCR 2.4.0