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,242 @@
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:25:58 GMT
27
+ Etag:
28
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGNiYTU5MzEwMzdhNTkyM2Y0NjllY2U3ZjEwYmFlZGI%3D--03a02d50575fd332d474bb4ae77551d63802eb7e;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:25:58 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.027941'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '14'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 07:25:58 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/users
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"username":"fake_person","password":"fake_pass"}'
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
+ - '49'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 201
70
+ message: Created
71
+ headers:
72
+ Cache-Control:
73
+ - no-cache
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 07:25:59 GMT
78
+ Location:
79
+ - https://api.parse.com/1/users/fPmB7RD45z
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzg3NGFhNDg3Y2I4OGRiMTljZDg1ZmVhNzlkNjM5NTc%3D--850c8ac2eb5db9cb16a1213a32d2262e5300b876;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:25:59 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 201 Created
88
+ X-Runtime:
89
+ - '0.132086'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '107'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '{"createdAt":"2013-04-17T07:25:59.738Z","objectId":"fPmB7RD45z","sessionToken":"mly7di8qnis9b6v3tebcy2enc"}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 07:25:59 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/login?password=fake_pass&username=fake_person
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 07:26:00 GMT
125
+ Etag:
126
+ - ! '"0059f4e6f6a95e96d91d1a5fcc867435"'
127
+ Server:
128
+ - nginx/1.2.2
129
+ Set-Cookie:
130
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2Q0ZjVhNDg5YzdmMTJjOGEyMTUxNTNhYTVmMDZmMzE%3D--089c64aa84106435e770f69b5d80ed6c6bf49f8f;
131
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:00 GMT; secure;
132
+ HttpOnly
133
+ Status:
134
+ - 200 OK
135
+ X-Runtime:
136
+ - '0.138008'
137
+ X-Ua-Compatible:
138
+ - IE=Edge,chrome=1
139
+ Content-Length:
140
+ - '171'
141
+ Connection:
142
+ - keep-alive
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ! '{"username":"fake_person","createdAt":"2013-04-17T07:25:59.738Z","updatedAt":"2013-04-17T07:25:59.738Z","objectId":"fPmB7RD45z","sessionToken":"mly7di8qnis9b6v3tebcy2enc"}'
146
+ http_version:
147
+ recorded_at: Wed, 17 Apr 2013 07:26:00 GMT
148
+ - request:
149
+ method: get
150
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/login?password=wrong_pass&username=wrong_username
151
+ body:
152
+ encoding: US-ASCII
153
+ string: ''
154
+ headers:
155
+ Accept:
156
+ - ! '*/*; q=0.5, application/xml'
157
+ Accept-Encoding:
158
+ - gzip, deflate
159
+ User-Agent:
160
+ - Ruby
161
+ response:
162
+ status:
163
+ code: 404
164
+ message: Not Found
165
+ headers:
166
+ Cache-Control:
167
+ - no-cache
168
+ Content-Type:
169
+ - application/json; charset=utf-8
170
+ Date:
171
+ - Wed, 17 Apr 2013 07:26:00 GMT
172
+ Server:
173
+ - nginx/1.2.2
174
+ Set-Cookie:
175
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWU5MmVjMmM3ZjVjYTE3YmNkY2U1OTg1ZTU1MTJiNjg%3D--e35a1de6b21114972aaf6bebb727b5e5b590f9bb;
176
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:26:00 GMT; secure;
177
+ HttpOnly
178
+ Status:
179
+ - 404 Not Found
180
+ X-Runtime:
181
+ - '0.035622'
182
+ X-Ua-Compatible:
183
+ - IE=Edge,chrome=1
184
+ Content-Length:
185
+ - '47'
186
+ Connection:
187
+ - keep-alive
188
+ body:
189
+ encoding: US-ASCII
190
+ string: ! '{"code":101,"error":"invalid login parameters"}'
191
+ http_version:
192
+ recorded_at: Wed, 17 Apr 2013 07:26:00 GMT
193
+ - request:
194
+ method: get
195
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users?where=%7B%7D
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ''
199
+ headers:
200
+ Accept:
201
+ - ! '*/*; q=0.5, application/xml'
202
+ Accept-Encoding:
203
+ - gzip, deflate
204
+ User-Agent:
205
+ - Ruby
206
+ response:
207
+ status:
208
+ code: 200
209
+ message: OK
210
+ headers:
211
+ Cache-Control:
212
+ - max-age=0, private, must-revalidate
213
+ Content-Type:
214
+ - application/json; charset=utf-8
215
+ Date:
216
+ - Wed, 17 Apr 2013 20:09:18 GMT
217
+ Etag:
218
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
219
+ Server:
220
+ - nginx/1.2.2
221
+ Set-Cookie:
222
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmMwYWM3NzFiYWIxNjU1YWZjYzdmNWM2MGM1NmM4OTE%3D--890da287d49d5e04f76081d128d982c3f7b9e93a;
223
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:18 GMT; secure;
224
+ HttpOnly
225
+ Status:
226
+ - 200 OK
227
+ X-Runtime:
228
+ - '0.048259'
229
+ X-Ua-Compatible:
230
+ - IE=Edge,chrome=1
231
+ Content-Length:
232
+ - '14'
233
+ Connection:
234
+ - keep-alive
235
+ body:
236
+ encoding: US-ASCII
237
+ string: ! '{"results":[]}'
238
+ http_version:
239
+ recorded_at: Wed, 17 Apr 2013 20:09:18 GMT
3
240
  - request:
4
241
  method: post
5
242
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users
@@ -22,27 +259,24 @@ http_interactions:
22
259
  code: 201
23
260
  message: Created
24
261
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
262
  Cache-Control:
30
263
  - no-cache
31
264
  Content-Type:
32
265
  - application/json; charset=utf-8
33
266
  Date:
34
- - Thu, 20 Sep 2012 04:31:53 GMT
267
+ - Wed, 17 Apr 2013 20:09:18 GMT
35
268
  Location:
36
- - https://api.parse.com/1/users/oA6BqJskE6
269
+ - https://api.parse.com/1/users/hxFNDTTSqH
37
270
  Server:
38
271
  - nginx/1.2.2
39
272
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTMwY2I4YmFhMDAwM2NmYzM2MzkxMzc1YTY4YmM0Yzg%3D--c932bbdd67e73b52419fbaf7e00a3a4171f25775;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:53 GMT; HttpOnly
273
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjg5ODE4NTBiMmI0YTY0MDg0MTljNTVkOWVlMzlkNDM%3D--eb864136bc6b2c549d69a10b1133dd4ec0fe527c;
274
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:18 GMT; secure;
275
+ HttpOnly
42
276
  Status:
43
277
  - 201 Created
44
278
  X-Runtime:
45
- - '0.178267'
279
+ - '0.158089'
46
280
  X-Ua-Compatible:
47
281
  - IE=Edge,chrome=1
48
282
  Content-Length:
@@ -51,9 +285,9 @@ http_interactions:
51
285
  - keep-alive
52
286
  body:
53
287
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:53.888Z","objectId":"oA6BqJskE6","sessionToken":"69cr2yktcow753usha7xxxnqo"}'
288
+ string: ! '{"createdAt":"2013-04-17T20:09:18.621Z","objectId":"hxFNDTTSqH","sessionToken":"jq9kk11ha0z73azpunsd6r3am"}'
55
289
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
290
+ recorded_at: Wed, 17 Apr 2013 20:09:18 GMT
57
291
  - request:
58
292
  method: get
59
293
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/login?password=fake_pass&username=fake_person
@@ -72,27 +306,24 @@ http_interactions:
72
306
  code: 200
73
307
  message: OK
74
308
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
309
  Cache-Control:
80
310
  - max-age=0, private, must-revalidate
81
311
  Content-Type:
82
312
  - application/json; charset=utf-8
83
313
  Date:
84
- - Thu, 20 Sep 2012 04:31:54 GMT
314
+ - Wed, 17 Apr 2013 20:09:18 GMT
85
315
  Etag:
86
- - ! '"de2816b2fcd20195b49353fd8194a9c6"'
316
+ - ! '"022ce5f5c40b93daafb05472199d2968"'
87
317
  Server:
88
318
  - nginx/1.2.2
89
319
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjZkNDc1Yzc0YWViNDk2M2M5ZTA5N2JkMmY5MjgwYTM%3D--c7ffcf2011fca388e5fcf8ed8b63f3e967a8503e;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:54 GMT; HttpOnly
320
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjk0NTk3M2I4ZTIzMDZlNTMzNjNhYTk0YmJkZmM3YTQ%3D--6b28fdf62f2922004983d7258874354c6ec9f543;
321
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:18 GMT; secure;
322
+ HttpOnly
92
323
  Status:
93
324
  - 200 OK
94
325
  X-Runtime:
95
- - '0.168505'
326
+ - '0.134197'
96
327
  X-Ua-Compatible:
97
328
  - IE=Edge,chrome=1
98
329
  Content-Length:
@@ -101,9 +332,9 @@ http_interactions:
101
332
  - keep-alive
102
333
  body:
103
334
  encoding: US-ASCII
104
- string: ! '{"username":"fake_person","createdAt":"2012-09-20T04:31:53.888Z","updatedAt":"2012-09-20T04:31:53.888Z","objectId":"oA6BqJskE6","sessionToken":"69cr2yktcow753usha7xxxnqo"}'
335
+ string: ! '{"username":"fake_person","createdAt":"2013-04-17T20:09:18.621Z","updatedAt":"2013-04-17T20:09:18.621Z","objectId":"hxFNDTTSqH","sessionToken":"jq9kk11ha0z73azpunsd6r3am"}'
105
336
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
337
+ recorded_at: Wed, 17 Apr 2013 20:09:18 GMT
107
338
  - request:
108
339
  method: get
109
340
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/login?password=wrong_pass&username=wrong_username
@@ -122,25 +353,22 @@ http_interactions:
122
353
  code: 404
123
354
  message: Not Found
124
355
  headers:
125
- Access-Control-Allow-Origin:
126
- - https://parse.com, https://www.parse.com
127
- Access-Control-Request-Method:
128
- - ! '*'
129
356
  Cache-Control:
130
357
  - no-cache
131
358
  Content-Type:
132
359
  - application/json; charset=utf-8
133
360
  Date:
134
- - Thu, 20 Sep 2012 04:31:54 GMT
361
+ - Wed, 17 Apr 2013 20:09:18 GMT
135
362
  Server:
136
363
  - nginx/1.2.2
137
364
  Set-Cookie:
138
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOGU5YTU1YzdmZjMxNmEyOGFjZmU5YzM5YmZjZDExNzg%3D--4ce3c84dd6398a1799e83fb88b6a27cc585ecb24;
139
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:54 GMT; HttpOnly
365
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTdjYTkyZDJmYjcyNWI5NjA5MmFmYTE5NTMyZjAyZTQ%3D--32fa7eeea587e375e6111e99bd79ad5f4630c81c;
366
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:18 GMT; secure;
367
+ HttpOnly
140
368
  Status:
141
369
  - 404 Not Found
142
370
  X-Runtime:
143
- - '0.026655'
371
+ - '0.037919'
144
372
  X-Ua-Compatible:
145
373
  - IE=Edge,chrome=1
146
374
  Content-Length:
@@ -151,5 +379,5 @@ http_interactions:
151
379
  encoding: US-ASCII
152
380
  string: ! '{"code":101,"error":"invalid login parameters"}'
153
381
  http_version:
154
- recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
155
- recorded_with: VCR 2.2.4
382
+ recorded_at: Wed, 17 Apr 2013 20:09:18 GMT
383
+ recorded_with: VCR 2.4.0
@@ -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/Straw?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:26:09 GMT
27
+ Etag:
28
+ - ! '"71f73ea61e22dbf713a1d4f9bffbd1f3"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGYzNGY0ZGIwMjMwOGM3Y2Y5ZThjZDZkMzljNjFkZWM%3D--bf5877036f98540a894e6ad2ddad822c854d24d2;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:09 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.200891'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '307'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"title":"chained_wheres","body":"testing","createdAt":"2013-04-17T04:02:37.281Z","updatedAt":"2013-04-17T04:02:37.281Z","objectId":"U5QSF4GjH6"},{"title":"chained_wheres","body":"testing_2","createdAt":"2013-04-17T04:02:37.828Z","updatedAt":"2013-04-17T04:02:37.828Z","objectId":"FCQKpz79hk"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:26:09 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/Straw/U5QSF4GjH6"},{"method":"DELETE","path":"/1/classes/Straw/FCQKpz79hk"}]}'
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
+ - '128'
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:26:09 GMT
78
+ Etag:
79
+ - ! '"9f103a4fc959709a4ff9f7cb2a96d647"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzUyNzE2N2NmYzE0YzE5Njg1ZGY3YjQ3YWQwMzdhNDk%3D--911445b36b8abdaf36c5330e7f0f3970fe4cccf9;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:09 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.049108'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '35'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '[{"success":true},{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:26:09 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Straw
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"title":"chained_wheres","body":"testing"}'
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
+ - '43'
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:26:10 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Straw/aRS7yIGrzI
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWMyN2U4ZGVhMGRkNTNkZGMxZWUzNTEwZThiZWQ0NTI%3D--6c2d602eb0a9840b56f34c899ee95712a7744e8b;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:10 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.031579'
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:26:10.345Z","objectId":"aRS7yIGrzI"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:26:10 GMT
152
+ - request:
153
+ method: post
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Straw
155
+ body:
156
+ encoding: UTF-8
157
+ string: ! '{"title":"chained_wheres","body":"testing_2"}'
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
+ - '45'
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:26:10 GMT
180
+ Location:
181
+ - https://api.parse.com/1/classes/Straw/B6RPk5RGNg
182
+ Server:
183
+ - nginx/1.2.2
184
+ Set-Cookie:
185
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNThjODM1OTQxMjBhZjk1YjgzOTQxY2VjOGY1N2QxNTA%3D--4c664862c48bdeaaece59f6479173f634f033d3e;
186
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:10 GMT; secure;
187
+ HttpOnly
188
+ Status:
189
+ - 201 Created
190
+ X-Runtime:
191
+ - '0.034686'
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:26:10.892Z","objectId":"B6RPk5RGNg"}'
201
+ http_version:
202
+ recorded_at: Wed, 17 Apr 2013 06:26:10 GMT
203
+ - request:
204
+ method: get
205
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Straw?limit=1&where=%7B%22title%22:%22chained_wheres%22,%22body%22:%22testing%22%7D
206
+ body:
207
+ encoding: US-ASCII
208
+ string: ''
209
+ headers:
210
+ Accept:
211
+ - ! '*/*; q=0.5, application/xml'
212
+ Accept-Encoding:
213
+ - gzip, deflate
214
+ User-Agent:
215
+ - Ruby
216
+ response:
217
+ status:
218
+ code: 200
219
+ message: OK
220
+ headers:
221
+ Cache-Control:
222
+ - max-age=0, private, must-revalidate
223
+ Content-Type:
224
+ - application/json; charset=utf-8
225
+ Date:
226
+ - Wed, 17 Apr 2013 06:26:11 GMT
227
+ Etag:
228
+ - ! '"f5a525dbb05f39f4b1bb3a8da11f831a"'
229
+ Server:
230
+ - nginx/1.2.2
231
+ Set-Cookie:
232
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZmE1ZmE3ZTlmMzYyNGYyMzM0NDViZGQxNDFhY2QzNTc%3D--93e1ab2c2ed86715872ae19bca1d481dac0c8f23;
233
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:11 GMT; secure;
234
+ HttpOnly
235
+ Status:
236
+ - 200 OK
237
+ X-Runtime:
238
+ - '0.031619'
239
+ X-Ua-Compatible:
240
+ - IE=Edge,chrome=1
241
+ Content-Length:
242
+ - '159'
243
+ Connection:
244
+ - keep-alive
245
+ body:
246
+ encoding: US-ASCII
247
+ string: ! '{"results":[{"title":"chained_wheres","body":"testing","createdAt":"2013-04-17T06:26:10.345Z","updatedAt":"2013-04-17T06:26:10.345Z","objectId":"aRS7yIGrzI"}]}'
248
+ http_version:
249
+ recorded_at: Wed, 17 Apr 2013 06:26:11 GMT
250
+ - request:
251
+ method: get
252
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw?where=%7B%7D
253
+ body:
254
+ encoding: US-ASCII
255
+ string: ''
256
+ headers:
257
+ Accept:
258
+ - ! '*/*; q=0.5, application/xml'
259
+ Accept-Encoding:
260
+ - gzip, deflate
261
+ User-Agent:
262
+ - Ruby
263
+ response:
264
+ status:
265
+ code: 200
266
+ message: OK
267
+ headers:
268
+ Cache-Control:
269
+ - max-age=0, private, must-revalidate
270
+ Content-Type:
271
+ - application/json; charset=utf-8
272
+ Date:
273
+ - Wed, 17 Apr 2013 20:08:20 GMT
274
+ Etag:
275
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
276
+ Server:
277
+ - nginx/1.2.2
278
+ Set-Cookie:
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmI5YTVhMWVkYjE0OTEzNmM0NWMxMzJjMzIyMmVhZjA%3D--d12e27e4e37ea868068914df3744fdba778c8a53;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:20 GMT; secure;
281
+ HttpOnly
282
+ Status:
283
+ - 200 OK
284
+ X-Runtime:
285
+ - '0.386983'
286
+ X-Ua-Compatible:
287
+ - IE=Edge,chrome=1
288
+ Content-Length:
289
+ - '14'
290
+ Connection:
291
+ - keep-alive
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '{"results":[]}'
295
+ http_version:
296
+ recorded_at: Wed, 17 Apr 2013 20:08:20 GMT
3
297
  - request:
4
298
  method: post
5
299
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw
@@ -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:38 GMT
324
+ - Wed, 17 Apr 2013 20:08:21 GMT
35
325
  Location:
36
- - https://api.parse.com/1/classes/Straw/FL3FsElVDU
326
+ - https://api.parse.com/1/classes/Straw/xfXn3bL9jO
37
327
  Server:
38
328
  - nginx/1.2.2
39
329
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjUwZTU4MmM4ZTRhODA4ZTFiNDg0YzAzNTJlNzU5ODk%3D--1b9978b036952a4d2853c52700ddb5de8dfa6b46;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
330
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDM1NTg3M2I1YmJkYTZkNTY1OGU4ODQxNDVlZTJmZmM%3D--e4cfb3e11e0cca18875e75a7d4aaec80c73f4787;
331
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:21 GMT; secure;
332
+ HttpOnly
42
333
  Status:
43
334
  - 201 Created
44
335
  X-Runtime:
45
- - '0.013914'
336
+ - '0.191073'
46
337
  X-Ua-Compatible:
47
338
  - IE=Edge,chrome=1
48
339
  Content-Length:
@@ -51,9 +342,9 @@ http_interactions:
51
342
  - keep-alive
52
343
  body:
53
344
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:38.398Z","objectId":"FL3FsElVDU"}'
345
+ string: ! '{"createdAt":"2013-04-17T20:08:21.055Z","objectId":"xfXn3bL9jO"}'
55
346
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
347
+ recorded_at: Wed, 17 Apr 2013 20:08:21 GMT
57
348
  - request:
58
349
  method: post
59
350
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw
@@ -76,27 +367,24 @@ http_interactions:
76
367
  code: 201
77
368
  message: Created
78
369
  headers:
79
- Access-Control-Allow-Origin:
80
- - https://parse.com, https://www.parse.com
81
- Access-Control-Request-Method:
82
- - ! '*'
83
370
  Cache-Control:
84
371
  - no-cache
85
372
  Content-Type:
86
373
  - application/json; charset=utf-8
87
374
  Date:
88
- - Thu, 20 Sep 2012 04:31:38 GMT
375
+ - Wed, 17 Apr 2013 20:08:21 GMT
89
376
  Location:
90
- - https://api.parse.com/1/classes/Straw/EiMkUW21F9
377
+ - https://api.parse.com/1/classes/Straw/4Urwq8dgWR
91
378
  Server:
92
379
  - nginx/1.2.2
93
380
  Set-Cookie:
94
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGZlOTAyOGQ2YmNhYjNjOWY2NTY5OWQ3NzM3NjQyNWM%3D--fed8429400e1612c711c50260e4567c843c9c932;
95
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
381
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmQyOTJiOWYwMGNjMDIyOWQ2NjBhNmFkMTA2ZjhmOTc%3D--6220d76df126a4aa3c7f811bc790e6fd74dbab43;
382
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:21 GMT; secure;
383
+ HttpOnly
96
384
  Status:
97
385
  - 201 Created
98
386
  X-Runtime:
99
- - '0.266132'
387
+ - '0.027056'
100
388
  X-Ua-Compatible:
101
389
  - IE=Edge,chrome=1
102
390
  Content-Length:
@@ -105,12 +393,12 @@ http_interactions:
105
393
  - keep-alive
106
394
  body:
107
395
  encoding: US-ASCII
108
- string: ! '{"createdAt":"2012-09-20T04:31:38.837Z","objectId":"EiMkUW21F9"}'
396
+ string: ! '{"createdAt":"2013-04-17T20:08:21.201Z","objectId":"4Urwq8dgWR"}'
109
397
  http_version:
110
- recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
398
+ recorded_at: Wed, 17 Apr 2013 20:08:21 GMT
111
399
  - request:
112
400
  method: get
113
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw?where=%7B%22title%22:%22chained_wheres%22,%22body%22:%22testing%22%7D
401
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw?limit=1&where=%7B%22title%22:%22chained_wheres%22,%22body%22:%22testing%22%7D
114
402
  body:
115
403
  encoding: US-ASCII
116
404
  string: ''
@@ -126,27 +414,24 @@ http_interactions:
126
414
  code: 200
127
415
  message: OK
128
416
  headers:
129
- Access-Control-Allow-Origin:
130
- - https://parse.com, https://www.parse.com
131
- Access-Control-Request-Method:
132
- - ! '*'
133
417
  Cache-Control:
134
418
  - max-age=0, private, must-revalidate
135
419
  Content-Type:
136
420
  - application/json; charset=utf-8
137
421
  Date:
138
- - Thu, 20 Sep 2012 04:31:39 GMT
422
+ - Wed, 17 Apr 2013 20:08:21 GMT
139
423
  Etag:
140
- - ! '"e8d2d2c53bb53f6da366d8852e6a8c02"'
424
+ - ! '"af6b8f1d00a8b208fa0171e82595004b"'
141
425
  Server:
142
426
  - nginx/1.2.2
143
427
  Set-Cookie:
144
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjViMWQ5ZjIwMGNhODRmYTNhNzYxYmI3NGEyOWFiODc%3D--2d77312f7832d65b24819f424f8f71e87aba2c3e;
145
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
428
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDgyNmJhNGVhZTljMTg4N2MwNDYzNDZmMjAzZmQ2MWY%3D--3be752add946c160e6dc1f1a016e1dcbb4526a42;
429
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:21 GMT; secure;
430
+ HttpOnly
146
431
  Status:
147
432
  - 200 OK
148
433
  X-Runtime:
149
- - '0.057036'
434
+ - '0.030619'
150
435
  X-Ua-Compatible:
151
436
  - IE=Edge,chrome=1
152
437
  Content-Length:
@@ -155,7 +440,7 @@ http_interactions:
155
440
  - keep-alive
156
441
  body:
157
442
  encoding: US-ASCII
158
- string: ! '{"results":[{"title":"chained_wheres","body":"testing","createdAt":"2012-09-20T04:31:38.398Z","updatedAt":"2012-09-20T04:31:38.398Z","objectId":"FL3FsElVDU"}]}'
443
+ string: ! '{"results":[{"title":"chained_wheres","body":"testing","createdAt":"2013-04-17T20:08:21.055Z","updatedAt":"2013-04-17T20:08:21.055Z","objectId":"xfXn3bL9jO"}]}'
159
444
  http_version:
160
- recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
161
- recorded_with: VCR 2.2.4
445
+ recorded_at: Wed, 17 Apr 2013 20:08:21 GMT
446
+ recorded_with: VCR 2.4.0