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,301 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/users?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:26:50 GMT
27
+ Etag:
28
+ - ! '"e279a89e28c897a040cf1f25d363e913"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzA2YmUwODJkNDQ4OTA2OTM2ZDYwNTg2ZjI2NzAzZDI%3D--50c67d9e123489975dc2e56c1a6f9102d40e286d;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:50 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.044416'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '185'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"username":"fake_person","createdAt":"2013-04-17T07:25:59.738Z","updatedAt":"2013-04-17T07:25:59.738Z","objectId":"fPmB7RD45z","sessionToken":"mly7di8qnis9b6v3tebcy2enc"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 07:26:50 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/users/fPmB7RD45z"}]}'
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
+ - '63'
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:26:50 GMT
78
+ Etag:
79
+ - ! '"b38ebbfb6e6b2ec1f655cf888e3ed892"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDlkMmE0NTJlNzU3NTRkYTgyZDZiZjVlYzYxZGYwZjg%3D--8720826a734c6360af095bb9ef1879aabb476877;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:50 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.157643'
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":null}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 07:26:50 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/users
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"username":"alan","password":"12345"}'
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
+ - '38'
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:26:51 GMT
129
+ Location:
130
+ - https://api.parse.com/1/users/icb6dynUBW
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWYxZjM3MDQxMDI5ZGQ3YWYzNWI0NmU5MzUzNTliMmQ%3D--a5aa5dd254b9d01789967449ba3862419e81d5ad;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:51 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.138384'
141
+ X-Ua-Compatible:
142
+ - IE=Edge,chrome=1
143
+ Content-Length:
144
+ - '107'
145
+ Connection:
146
+ - keep-alive
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ! '{"createdAt":"2013-04-17T07:26:51.578Z","objectId":"icb6dynUBW","sessionToken":"hkl3vx48n7x6l88slivajllp6"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 07:26:51 GMT
152
+ - request:
153
+ method: post
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/users
155
+ body:
156
+ encoding: UTF-8
157
+ string: ! '{"username":"alan","password":"56789"}'
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
+ - '38'
167
+ User-Agent:
168
+ - Ruby
169
+ response:
170
+ status:
171
+ code: 400
172
+ message: Bad Request
173
+ headers:
174
+ Cache-Control:
175
+ - no-cache
176
+ Content-Type:
177
+ - application/json; charset=utf-8
178
+ Date:
179
+ - Wed, 17 Apr 2013 07:26:52 GMT
180
+ Server:
181
+ - nginx/1.2.2
182
+ Set-Cookie:
183
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmE3ZTM4M2VjYTQ4MmZiOWVmOWMwZjAzZTk0Nzg3OGM%3D--b1268c79c86a76cf37d798def2a5a02189f3d9bb;
184
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:52 GMT; secure;
185
+ HttpOnly
186
+ Status:
187
+ - 400 Bad Request
188
+ X-Runtime:
189
+ - '0.034109'
190
+ X-Ua-Compatible:
191
+ - IE=Edge,chrome=1
192
+ Content-Length:
193
+ - '50'
194
+ Connection:
195
+ - keep-alive
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ! '{"code":202,"error":"username alan already taken"}'
199
+ http_version:
200
+ recorded_at: Wed, 17 Apr 2013 07:26:52 GMT
201
+ - request:
202
+ method: get
203
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users?where=%7B%7D
204
+ body:
205
+ encoding: US-ASCII
206
+ string: ''
207
+ headers:
208
+ Accept:
209
+ - ! '*/*; q=0.5, application/xml'
210
+ Accept-Encoding:
211
+ - gzip, deflate
212
+ User-Agent:
213
+ - Ruby
214
+ response:
215
+ status:
216
+ code: 200
217
+ message: OK
218
+ headers:
219
+ Cache-Control:
220
+ - max-age=0, private, must-revalidate
221
+ Content-Type:
222
+ - application/json; charset=utf-8
223
+ Date:
224
+ - Wed, 17 Apr 2013 20:09:20 GMT
225
+ Etag:
226
+ - ! '"cba4628b96e3dc1ef26223ce968f442a"'
227
+ Server:
228
+ - nginx/1.2.2
229
+ Set-Cookie:
230
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDA4Y2FjMmI0NWJjMGQwZGY1ZGM2MmUxZmNjYmE3NzA%3D--822cf89d6607db086fab3f1b2fe6e54c8f10fbe3;
231
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:20 GMT; secure;
232
+ HttpOnly
233
+ Status:
234
+ - 200 OK
235
+ X-Runtime:
236
+ - '0.027284'
237
+ X-Ua-Compatible:
238
+ - IE=Edge,chrome=1
239
+ Content-Length:
240
+ - '185'
241
+ Connection:
242
+ - keep-alive
243
+ body:
244
+ encoding: US-ASCII
245
+ string: ! '{"results":[{"username":"fake_person","createdAt":"2013-04-17T20:09:18.621Z","updatedAt":"2013-04-17T20:09:18.621Z","objectId":"hxFNDTTSqH","sessionToken":"jq9kk11ha0z73azpunsd6r3am"}]}'
246
+ http_version:
247
+ recorded_at: Wed, 17 Apr 2013 20:09:20 GMT
248
+ - request:
249
+ method: post
250
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
251
+ body:
252
+ encoding: UTF-8
253
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/users/hxFNDTTSqH"}]}'
254
+ headers:
255
+ Accept:
256
+ - ! '*/*; q=0.5, application/xml'
257
+ Accept-Encoding:
258
+ - gzip, deflate
259
+ Content-Type:
260
+ - application/json
261
+ Content-Length:
262
+ - '63'
263
+ User-Agent:
264
+ - Ruby
265
+ response:
266
+ status:
267
+ code: 200
268
+ message: OK
269
+ headers:
270
+ Cache-Control:
271
+ - max-age=0, private, must-revalidate
272
+ Content-Type:
273
+ - application/json; charset=utf-8
274
+ Date:
275
+ - Wed, 17 Apr 2013 20:09:20 GMT
276
+ Etag:
277
+ - ! '"b38ebbfb6e6b2ec1f655cf888e3ed892"'
278
+ Server:
279
+ - nginx/1.2.2
280
+ Set-Cookie:
281
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmU5YmNhYjAxZTFjNmVkNjRlOWY5YzNiZGRiNThmODI%3D--00d64eee2b7a73f2aa99aae6b6d00b0ad1e9ce09;
282
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:20 GMT; secure;
283
+ HttpOnly
284
+ Status:
285
+ - 200 OK
286
+ X-Runtime:
287
+ - '0.055967'
288
+ X-Ua-Compatible:
289
+ - IE=Edge,chrome=1
290
+ Content-Length:
291
+ - '18'
292
+ Connection:
293
+ - keep-alive
294
+ body:
295
+ encoding: US-ASCII
296
+ string: ! '[{"success":null}]'
297
+ http_version:
298
+ recorded_at: Wed, 17 Apr 2013 20:09:20 GMT
3
299
  - request:
4
300
  method: post
5
301
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users
@@ -22,27 +318,24 @@ http_interactions:
22
318
  code: 201
23
319
  message: Created
24
320
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
321
  Cache-Control:
30
322
  - no-cache
31
323
  Content-Type:
32
324
  - application/json; charset=utf-8
33
325
  Date:
34
- - Thu, 20 Sep 2012 04:31:54 GMT
326
+ - Wed, 17 Apr 2013 20:09:20 GMT
35
327
  Location:
36
- - https://api.parse.com/1/users/jM7xgj1AAd
328
+ - https://api.parse.com/1/users/ZWMOzXHKvU
37
329
  Server:
38
330
  - nginx/1.2.2
39
331
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2UwYjdjNTRlYzNiMDI4MjU3ZDJmZGIzYTMzNTNmM2U%3D--88ba47ef54acb3b37a15104841ae4759fd63c900;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:54 GMT; HttpOnly
332
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZGJlMzljMWVhNjM1ZDIwZTk3MTAyMDU5ZWZlYmExMzQ%3D--4dc94c2619c518f5e098d2fccdbce83b177ff079;
333
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:20 GMT; secure;
334
+ HttpOnly
42
335
  Status:
43
336
  - 201 Created
44
337
  X-Runtime:
45
- - '0.118062'
338
+ - '0.262811'
46
339
  X-Ua-Compatible:
47
340
  - IE=Edge,chrome=1
48
341
  Content-Length:
@@ -51,9 +344,9 @@ http_interactions:
51
344
  - keep-alive
52
345
  body:
53
346
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:54.750Z","objectId":"jM7xgj1AAd","sessionToken":"g5nayvxbudmlv4usl48zqqu67"}'
347
+ string: ! '{"createdAt":"2013-04-17T20:09:20.633Z","objectId":"ZWMOzXHKvU","sessionToken":"nb1w1kkidkjaa56k9gwfqp60x"}'
55
348
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
349
+ recorded_at: Wed, 17 Apr 2013 20:09:20 GMT
57
350
  - request:
58
351
  method: post
59
352
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users
@@ -76,25 +369,22 @@ http_interactions:
76
369
  code: 400
77
370
  message: Bad Request
78
371
  headers:
79
- Access-Control-Allow-Origin:
80
- - https://parse.com, https://www.parse.com
81
- Access-Control-Request-Method:
82
- - ! '*'
83
372
  Cache-Control:
84
373
  - no-cache
85
374
  Content-Type:
86
375
  - application/json; charset=utf-8
87
376
  Date:
88
- - Thu, 20 Sep 2012 04:31:55 GMT
377
+ - Wed, 17 Apr 2013 20:09:21 GMT
89
378
  Server:
90
379
  - nginx/1.2.2
91
380
  Set-Cookie:
92
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2ZjYjE4ZDQ1MzBhNjZiMzE1YWEzMDdiNTlhZGVlMmM%3D--d80414f600539551ebcea5f599a2cc94d246db8e;
93
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:55 GMT; HttpOnly
381
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGJjNmUxY2RlMWYyMTU0YjNiNWJmYWE0ZjU4Mzg0M2M%3D--53f8030b3432fabc620d6846bec4374e6709aad0;
382
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:21 GMT; secure;
383
+ HttpOnly
94
384
  Status:
95
385
  - 400 Bad Request
96
386
  X-Runtime:
97
- - '0.020062'
387
+ - '0.243358'
98
388
  X-Ua-Compatible:
99
389
  - IE=Edge,chrome=1
100
390
  Content-Length:
@@ -105,5 +395,5 @@ http_interactions:
105
395
  encoding: US-ASCII
106
396
  string: ! '{"code":202,"error":"username alan already taken"}'
107
397
  http_version:
108
- recorded_at: Thu, 20 Sep 2012 04:31:55 GMT
109
- recorded_with: VCR 2.2.4
398
+ recorded_at: Wed, 17 Apr 2013 20:09:21 GMT
399
+ recorded_with: VCR 2.4.0
@@ -1,5 +1,103 @@
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:28:09 GMT
31
+ Location:
32
+ - https://api.parse.com/1/classes/Post/poRcGqVJYK
33
+ Server:
34
+ - nginx/1.2.2
35
+ Set-Cookie:
36
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZmRmM2JhODFkM2Q0MWRjYWRjZDNjN2JmOGNhMzBlZTE%3D--335d4650536e4239fd3f7cdfcd4373c78f00adf8;
37
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:28:09 GMT; secure;
38
+ HttpOnly
39
+ Status:
40
+ - 201 Created
41
+ X-Runtime:
42
+ - '0.028032'
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:28:09.890Z","objectId":"poRcGqVJYK"}'
52
+ http_version:
53
+ recorded_at: Wed, 17 Apr 2013 06:28:09 GMT
54
+ - request:
55
+ method: get
56
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?limit=1&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:28:10 GMT
78
+ Etag:
79
+ - ! '"add57b00e5a3da6204eb70bd1d28a115"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOWEzN2MxNzI4NjcwZTdmYzM3M2I3NWQwYjA0ZjhiNzQ%3D--4cc225c3cd28a24ac63cdb93441aafc3838bae28;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:28:10 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.035783'
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:28:09.890Z","updatedAt":"2013-04-17T06:28:09.890Z","objectId":"poRcGqVJYK"}]}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:28:10 GMT
3
101
  - request:
4
102
  method: post
5
103
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +120,24 @@ http_interactions:
22
120
  code: 201
23
121
  message: Created
24
122
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
123
  Cache-Control:
30
124
  - no-cache
31
125
  Content-Type:
32
126
  - application/json; charset=utf-8
33
127
  Date:
34
- - Thu, 20 Sep 2012 04:31:53 GMT
128
+ - Wed, 17 Apr 2013 20:09:17 GMT
35
129
  Location:
36
- - https://api.parse.com/1/classes/Post/3SLqXuGaJK
130
+ - https://api.parse.com/1/classes/Post/U1BR8Yi2AU
37
131
  Server:
38
132
  - nginx/1.2.2
39
133
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWY4MzM4NGJiMTAyY2YwMzIyNWY0YmMxZTNkZmJmZDQ%3D--875f08a78a4a12afab58b8701e4786106b06d1e1;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:53 GMT; HttpOnly
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjdkZTE0NGI3NzZhYzkwNmFkOGJlNzVlMmNmNzc0MTc%3D--ff872369f74deca0c0c1a6ad475dac6bbf463419;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:17 GMT; secure;
136
+ HttpOnly
42
137
  Status:
43
138
  - 201 Created
44
139
  X-Runtime:
45
- - '0.022916'
140
+ - '0.044139'
46
141
  X-Ua-Compatible:
47
142
  - IE=Edge,chrome=1
48
143
  Content-Length:
@@ -51,12 +146,12 @@ http_interactions:
51
146
  - keep-alive
52
147
  body:
53
148
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:53.382Z","objectId":"3SLqXuGaJK"}'
149
+ string: ! '{"createdAt":"2013-04-17T20:09:17.966Z","objectId":"U1BR8Yi2AU"}'
55
150
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:53 GMT
151
+ recorded_at: Wed, 17 Apr 2013 20:09:17 GMT
57
152
  - request:
58
153
  method: get
59
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
154
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?limit=1&where=%7B%22title%22:%22Welcome111%22%7D
60
155
  body:
61
156
  encoding: US-ASCII
62
157
  string: ''
@@ -72,36 +167,33 @@ http_interactions:
72
167
  code: 200
73
168
  message: OK
74
169
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
170
  Cache-Control:
80
171
  - max-age=0, private, must-revalidate
81
172
  Content-Type:
82
173
  - application/json; charset=utf-8
83
174
  Date:
84
- - Thu, 20 Sep 2012 04:31:53 GMT
175
+ - Wed, 17 Apr 2013 20:09:18 GMT
85
176
  Etag:
86
- - ! '"3b1e9ac0dc83a6d8221e794dbede5d29"'
177
+ - ! '"30e04d4fd8d80c8dee33273c3881f1e0"'
87
178
  Server:
88
179
  - nginx/1.2.2
89
180
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGVhYzJkODZiNjI4Y2JmNzEzMDA3NjAwMWM2NTVlM2M%3D--c97a9b2b51b0abd4c765c0ee6becd547b3cdb629;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:53 GMT; HttpOnly
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGRiMDNjNDg0OTAwNjYzZTNkMTMzNmNhN2ZjMTVmMDg%3D--2369914996fe72fcabca6fb8234755b33523852d;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:18 GMT; secure;
183
+ HttpOnly
92
184
  Status:
93
185
  - 200 OK
94
186
  X-Runtime:
95
- - '0.036114'
187
+ - '0.097653'
96
188
  X-Ua-Compatible:
97
189
  - IE=Edge,chrome=1
98
190
  Content-Length:
99
- - '388'
191
+ - '138'
100
192
  Connection:
101
193
  - keep-alive
102
194
  body:
103
195
  encoding: US-ASCII
104
- string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:45.557Z","updatedAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:53.382Z","updatedAt":"2012-09-20T04:31:53.382Z","objectId":"3SLqXuGaJK"}]}'
196
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T20:09:17.966Z","updatedAt":"2013-04-17T20:09:17.966Z","objectId":"U1BR8Yi2AU"}]}'
105
197
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:53 GMT
107
- recorded_with: VCR 2.2.4
198
+ recorded_at: Wed, 17 Apr 2013 20:09:18 GMT
199
+ recorded_with: VCR 2.4.0