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,252 @@
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:26:05 GMT
27
+ Etag:
28
+ - ! '"7ecb74f8b758285dfe132fbf96803ff0"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDBmYzZjODY2OTBjYjU5MjU2MDA5OGJlNGZjOTYyNTE%3D--0ef530625d45023483bed053c3253398dca47368;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:05 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.081011'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '256'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"title":"11222","createdAt":"2013-04-17T06:26:04.269Z","updatedAt":"2013-04-17T06:26:04.269Z","objectId":"mXIkWoQMLp"},{"title":"112ssd22","createdAt":"2013-04-17T06:26:04.810Z","updatedAt":"2013-04-17T06:26:04.810Z","objectId":"ZzQ8yGUUSV"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:26:05 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/mXIkWoQMLp"},{"method":"DELETE","path":"/1/classes/Post/ZzQ8yGUUSV"}]}'
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
+ - '126'
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:06 GMT
78
+ Etag:
79
+ - ! '"9f103a4fc959709a4ff9f7cb2a96d647"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWI0NWZmYzFhMjMwNTNiMDczMzk0ZDhmYWU0MDM0Nzc%3D--61f68538584e214dd5e55b539b9e75057143b523;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:06 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.060164'
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:06 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":"title1"}'
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
+ - '18'
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:07 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Post/C6ZAouVohL
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjcwOGMzY2ZhMDMzNzVhOTJlMzlkZTM0MGYxMDg0MjU%3D--79c424e95451b547e085169598285861c37b3600;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:07 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.031518'
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:07.048Z","objectId":"C6ZAouVohL"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:26:07 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%7D
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ''
158
+ headers:
159
+ Accept:
160
+ - ! '*/*; q=0.5, application/xml'
161
+ Accept-Encoding:
162
+ - gzip, deflate
163
+ User-Agent:
164
+ - Ruby
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ Cache-Control:
171
+ - max-age=0, private, must-revalidate
172
+ Content-Type:
173
+ - application/json; charset=utf-8
174
+ Date:
175
+ - Wed, 17 Apr 2013 20:08:17 GMT
176
+ Etag:
177
+ - ! '"234581b064a8911199da28e50c3e522b"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTFhNmMzM2UwZjNlNjBlODIyNjA4NGNmMjZmN2Q2OGY%3D--e45343321b18d3a152c043e502813fa93d61ced0;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:17 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.247737'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '256'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"title":"11222","createdAt":"2013-04-17T20:08:16.076Z","updatedAt":"2013-04-17T20:08:16.076Z","objectId":"7X53ZmzjEI"},{"title":"112ssd22","createdAt":"2013-04-17T20:08:16.467Z","updatedAt":"2013-04-17T20:08:16.467Z","objectId":"hbJ1P7KXzp"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 20:08:17 GMT
199
+ - request:
200
+ method: post
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
202
+ body:
203
+ encoding: UTF-8
204
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Post/7X53ZmzjEI"},{"method":"DELETE","path":"/1/classes/Post/hbJ1P7KXzp"}]}'
205
+ headers:
206
+ Accept:
207
+ - ! '*/*; q=0.5, application/xml'
208
+ Accept-Encoding:
209
+ - gzip, deflate
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '126'
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 20:08:17 GMT
227
+ Etag:
228
+ - ! '"9f103a4fc959709a4ff9f7cb2a96d647"'
229
+ Server:
230
+ - nginx/1.2.2
231
+ Set-Cookie:
232
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODI3YjZjZWRhZjM0ZDYwYWQwMjc3MGQ3YzliOTExZWM%3D--9a020705d67a7bacedd7469812d6b74cf8a40a99;
233
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:17 GMT; secure;
234
+ HttpOnly
235
+ Status:
236
+ - 200 OK
237
+ X-Runtime:
238
+ - '0.319241'
239
+ X-Ua-Compatible:
240
+ - IE=Edge,chrome=1
241
+ Content-Length:
242
+ - '35'
243
+ Connection:
244
+ - keep-alive
245
+ body:
246
+ encoding: US-ASCII
247
+ string: ! '[{"success":true},{"success":true}]'
248
+ http_version:
249
+ recorded_at: Wed, 17 Apr 2013 20:08:17 GMT
3
250
  - request:
4
251
  method: post
5
252
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +269,24 @@ http_interactions:
22
269
  code: 201
23
270
  message: Created
24
271
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
272
  Cache-Control:
30
273
  - no-cache
31
274
  Content-Type:
32
275
  - application/json; charset=utf-8
33
276
  Date:
34
- - Thu, 20 Sep 2012 04:31:37 GMT
277
+ - Wed, 17 Apr 2013 20:08:18 GMT
35
278
  Location:
36
- - https://api.parse.com/1/classes/Post/0LUIcFSUQZ
279
+ - https://api.parse.com/1/classes/Post/HYi077LDNh
37
280
  Server:
38
281
  - nginx/1.2.2
39
282
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWIzYmVmN2Q3YmE0ZDMxZWVhZWYyOTI4NjhjODBiNzc%3D--82e42ed02caf03df7430dbfc4cf8db56633c2fdc;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:37 GMT; HttpOnly
283
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGQ2NGU5MjgyMmYwMjU5OWQ2MWM3YjdjMGVhNDgyMmM%3D--5d17365b9944f54f95ecaff0c840e56d098d3f54;
284
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:18 GMT; secure;
285
+ HttpOnly
42
286
  Status:
43
287
  - 201 Created
44
288
  X-Runtime:
45
- - '0.024802'
289
+ - '0.751738'
46
290
  X-Ua-Compatible:
47
291
  - IE=Edge,chrome=1
48
292
  Content-Length:
@@ -51,7 +295,7 @@ http_interactions:
51
295
  - keep-alive
52
296
  body:
53
297
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:37.855Z","objectId":"0LUIcFSUQZ"}'
298
+ string: ! '{"createdAt":"2013-04-17T20:08:18.111Z","objectId":"HYi077LDNh"}'
55
299
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:37 GMT
57
- recorded_with: VCR 2.2.4
300
+ recorded_at: Wed, 17 Apr 2013 20:08:18 GMT
301
+ recorded_with: VCR 2.4.0
@@ -1,5 +1,252 @@
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:26:07 GMT
27
+ Etag:
28
+ - ! '"bd63b20e86195d104ff48dc2ea15586e"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2M0MGI4YTY0OTBmOGZhMTA1NjA4YWZkODU1YmFjNWI%3D--c9e4557d6b475f690d055d440e9f1b93ccd571c8;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:07 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.046399'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '134'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"title":"title1","createdAt":"2013-04-17T06:26:07.048Z","updatedAt":"2013-04-17T06:26:07.048Z","objectId":"C6ZAouVohL"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:26:07 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/C6ZAouVohL"}]}'
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
+ - '70'
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:08 GMT
78
+ Etag:
79
+ - ! '"6abe125b20486fefa07552105cea58f3"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOGJmY2U0NTViNTAyOWIwMjhmZDIwMzk4NDYyZGJmN2I%3D--05c146de2606e7835cbeb5a8502b2311c1f03220;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:08 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.034667'
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:26:08 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":"1"}'
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
+ - '13'
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:08 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Post/6GeYeHh4Hb
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzEwN2ExYjVlZTNjZjI3NjA2NzI0MmI0OTcwMDEwYmE%3D--36f344fe9719f58a634a302665c279f16a72e79f;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:08 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.033913'
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:08.621Z","objectId":"6GeYeHh4Hb"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:26:08 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%7D
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ''
158
+ headers:
159
+ Accept:
160
+ - ! '*/*; q=0.5, application/xml'
161
+ Accept-Encoding:
162
+ - gzip, deflate
163
+ User-Agent:
164
+ - Ruby
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ Cache-Control:
171
+ - max-age=0, private, must-revalidate
172
+ Content-Type:
173
+ - application/json; charset=utf-8
174
+ Date:
175
+ - Wed, 17 Apr 2013 20:08:19 GMT
176
+ Etag:
177
+ - ! '"9ec1ddef4805dadf8cd42553e5f4910e"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZjdkNGNlODE3NWUxZmIzZWI4ODkyYTM5ZmFlNGI5M2E%3D--3aab57c988a5f34bc22da9ce16b51ac718771c0d;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:19 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.395831'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '134'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"title":"title1","createdAt":"2013-04-17T20:08:18.111Z","updatedAt":"2013-04-17T20:08:18.111Z","objectId":"HYi077LDNh"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 20:08:19 GMT
199
+ - request:
200
+ method: post
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
202
+ body:
203
+ encoding: UTF-8
204
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Post/HYi077LDNh"}]}'
205
+ headers:
206
+ Accept:
207
+ - ! '*/*; q=0.5, application/xml'
208
+ Accept-Encoding:
209
+ - gzip, deflate
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '70'
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 20:08:19 GMT
227
+ Etag:
228
+ - ! '"6abe125b20486fefa07552105cea58f3"'
229
+ Server:
230
+ - nginx/1.2.2
231
+ Set-Cookie:
232
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTA2NzMzZDgwZjljOTU5YjA1NGVlMTNjNjdjMTRlZjk%3D--dd7066a6cd22ce2b70f14d26166f97d95e4f6128;
233
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:19 GMT; secure;
234
+ HttpOnly
235
+ Status:
236
+ - 200 OK
237
+ X-Runtime:
238
+ - '0.246926'
239
+ X-Ua-Compatible:
240
+ - IE=Edge,chrome=1
241
+ Content-Length:
242
+ - '18'
243
+ Connection:
244
+ - keep-alive
245
+ body:
246
+ encoding: US-ASCII
247
+ string: ! '[{"success":true}]'
248
+ http_version:
249
+ recorded_at: Wed, 17 Apr 2013 20:08:19 GMT
3
250
  - request:
4
251
  method: post
5
252
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +269,24 @@ http_interactions:
22
269
  code: 201
23
270
  message: Created
24
271
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
272
  Cache-Control:
30
273
  - no-cache
31
274
  Content-Type:
32
275
  - application/json; charset=utf-8
33
276
  Date:
34
- - Thu, 20 Sep 2012 04:31:38 GMT
277
+ - Wed, 17 Apr 2013 20:08:20 GMT
35
278
  Location:
36
- - https://api.parse.com/1/classes/Post/iS3FSrerRc
279
+ - https://api.parse.com/1/classes/Post/C8qx5fYttw
37
280
  Server:
38
281
  - nginx/1.2.2
39
282
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWNhMjQ4MjA0NmNiYTAxYjhkZjJhYzgzNDU0OGNlMjc%3D--daea95c2a5193789487cc8f412bbba3656336143;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
283
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTI2YWNlYmZhOTcyNzlkNWNlZTQ5MGI2M2FjMjBjMDg%3D--57f809b721129155cd56ef0c81ae2d390b17ee5b;
284
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:20 GMT; secure;
285
+ HttpOnly
42
286
  Status:
43
287
  - 201 Created
44
288
  X-Runtime:
45
- - '0.095108'
289
+ - '0.390542'
46
290
  X-Ua-Compatible:
47
291
  - IE=Edge,chrome=1
48
292
  Content-Length:
@@ -51,7 +295,7 @@ http_interactions:
51
295
  - keep-alive
52
296
  body:
53
297
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:38.173Z","objectId":"iS3FSrerRc"}'
298
+ string: ! '{"createdAt":"2013-04-17T20:08:19.883Z","objectId":"C8qx5fYttw"}'
55
299
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
57
- recorded_with: VCR 2.2.4
300
+ recorded_at: Wed, 17 Apr 2013 20:08:20 GMT
301
+ recorded_with: VCR 2.4.0