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.
- data/.DS_Store +0 -0
- data/.travis.yml +1 -1
- data/Gemfile +4 -8
- data/Gemfile.lock +27 -23
- data/README.md +81 -2
- data/Rakefile +9 -8
- data/VERSION +1 -1
- data/fixtures/.DS_Store +0 -0
- data/fixtures/vcr_cassettes/.DS_Store +0 -0
- data/fixtures/vcr_cassettes/test_all.yml +319 -34
- data/fixtures/vcr_cassettes/test_attribute_getters.yml +256 -12
- data/fixtures/vcr_cassettes/test_attribute_setters.yml +256 -12
- data/fixtures/vcr_cassettes/test_authenticate.yml +260 -32
- data/fixtures/vcr_cassettes/test_chained_wheres.yml +320 -35
- data/fixtures/vcr_cassettes/test_chunk.yml +1359 -0
- data/fixtures/vcr_cassettes/test_count.yml +495 -84
- data/fixtures/vcr_cassettes/test_create.yml +154 -12
- data/fixtures/vcr_cassettes/test_created_at.yml +256 -12
- data/fixtures/vcr_cassettes/test_destroy.yml +364 -32
- data/fixtures/vcr_cassettes/test_destroy_all.yml +236 -48
- data/fixtures/vcr_cassettes/test_each.yml +488 -56
- data/fixtures/vcr_cassettes/test_fetching_closest_10.yml +1509 -0
- data/fixtures/vcr_cassettes/test_fetching_closest_by_kilometers.yml +1509 -0
- data/fixtures/vcr_cassettes/test_fetching_closest_by_miles.yml +1509 -0
- data/fixtures/vcr_cassettes/test_fetching_closest_by_radians.yml +1509 -0
- data/fixtures/vcr_cassettes/test_fetching_closest_within_box.yml +489 -0
- data/fixtures/vcr_cassettes/test_fetching_geopoint_field.yml +489 -0
- data/fixtures/vcr_cassettes/test_find.yml +312 -24
- data/fixtures/vcr_cassettes/test_find_all_by.yml +170 -34
- data/fixtures/vcr_cassettes/test_find_by.yml +174 -38
- data/fixtures/vcr_cassettes/test_first.yml +260 -23
- data/fixtures/vcr_cassettes/test_id.yml +256 -12
- data/fixtures/vcr_cassettes/test_installation_creation.yml +199 -0
- data/fixtures/vcr_cassettes/test_installation_creation_validation_check.yml +297 -0
- data/fixtures/vcr_cassettes/test_limit.yml +1138 -179
- data/fixtures/vcr_cassettes/test_map.yml +488 -56
- data/fixtures/vcr_cassettes/test_order_ascending.yml +395 -0
- data/fixtures/vcr_cassettes/test_order_descending.yml +446 -0
- data/fixtures/vcr_cassettes/test_save.yml +316 -24
- data/fixtures/vcr_cassettes/test_save_all_and_destroy_all.yml +869 -0
- data/fixtures/vcr_cassettes/test_saving_geo_point_with_quick_init.yml +395 -0
- data/fixtures/vcr_cassettes/test_saving_geopoint_with_coords.yml +395 -0
- data/fixtures/vcr_cassettes/test_skip.yml +120 -525
- data/fixtures/vcr_cassettes/test_update.yml +316 -24
- data/fixtures/vcr_cassettes/test_updated_at.yml +316 -24
- data/fixtures/vcr_cassettes/test_username_should_be_unique.yml +311 -21
- data/fixtures/vcr_cassettes/test_where.yml +117 -25
- data/lib/kaminari_extension.rb +60 -0
- data/lib/parse_resource.rb +4 -2
- data/lib/parse_resource/base.rb +262 -163
- data/lib/parse_resource/client.rb +8 -0
- data/lib/parse_resource/parse_error.rb +36 -22
- data/lib/parse_resource/query.rb +99 -7
- data/lib/parse_resource/query_methods.rb +64 -0
- data/lib/parse_resource/types/parse_geopoint.rb +19 -0
- data/parse_resource.gemspec +29 -9
- data/parse_resource.yml +2 -2
- data/test/active_model_lint_test.rb +0 -2
- data/test/helper.rb +13 -3
- data/test/test_parse_installation.rb +41 -0
- data/test/test_parse_resource.rb +108 -20
- data/test/test_parse_user.rb +4 -7
- data/test/test_query_options.rb +0 -38
- data/test/test_types.rb +186 -0
- metadata +38 -31
@@ -0,0 +1,489 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?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:23:01 GMT
|
27
|
+
Etag:
|
28
|
+
- ! '"3f0b42e5e1862efb9f26c8ca7e319efe"'
|
29
|
+
Server:
|
30
|
+
- nginx/1.2.2
|
31
|
+
Set-Cookie:
|
32
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYzIyZjI4NzdkNWE0MjJmNGU0NGM5MDFjNjliYTY2ZTI%3D--cd7eca166f18a3e73bd2e9324ed1d4712b7fafdc;
|
33
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:01 GMT; secure;
|
34
|
+
HttpOnly
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Runtime:
|
38
|
+
- '0.028318'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '2175'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:22:53.102Z","updatedAt":"2013-04-17T07:22:53.102Z","objectId":"38Bbqptwgj"},{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962},"createdAt":"2013-04-17T07:22:54.134Z","updatedAt":"2013-04-17T07:22:54.134Z","objectId":"ivSJzoJwRD"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T07:22:54.676Z","updatedAt":"2013-04-17T07:22:54.676Z","objectId":"61Q2z7Q4GS"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T07:22:55.214Z","updatedAt":"2013-04-17T07:22:55.214Z","objectId":"LzrmWkPQXB"},{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533},"createdAt":"2013-04-17T07:22:56.069Z","updatedAt":"2013-04-17T07:22:56.069Z","objectId":"rXvcMKi5IN"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T07:22:56.624Z","updatedAt":"2013-04-17T07:22:56.624Z","objectId":"939kNlXsd7"},{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512},"createdAt":"2013-04-17T07:22:57.180Z","updatedAt":"2013-04-17T07:22:57.180Z","objectId":"C1WjFpyiX8"},{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168},"createdAt":"2013-04-17T07:22:57.746Z","updatedAt":"2013-04-17T07:22:57.746Z","objectId":"5YTFSh0K8i"},{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938},"createdAt":"2013-04-17T07:22:58.307Z","updatedAt":"2013-04-17T07:22:58.307Z","objectId":"wYz7ckDNy4"},{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922},"createdAt":"2013-04-17T07:22:58.844Z","updatedAt":"2013-04-17T07:22:58.844Z","objectId":"MkvBgjOFPe"},{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498},"createdAt":"2013-04-17T07:22:59.421Z","updatedAt":"2013-04-17T07:22:59.421Z","objectId":"c9wHv4fLHA"}]}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Wed, 17 Apr 2013 07:23:01 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/Place/38Bbqptwgj"},{"method":"DELETE","path":"/1/classes/Place/ivSJzoJwRD"},{"method":"DELETE","path":"/1/classes/Place/61Q2z7Q4GS"},{"method":"DELETE","path":"/1/classes/Place/LzrmWkPQXB"},{"method":"DELETE","path":"/1/classes/Place/rXvcMKi5IN"},{"method":"DELETE","path":"/1/classes/Place/939kNlXsd7"},{"method":"DELETE","path":"/1/classes/Place/C1WjFpyiX8"},{"method":"DELETE","path":"/1/classes/Place/5YTFSh0K8i"},{"method":"DELETE","path":"/1/classes/Place/wYz7ckDNy4"},{"method":"DELETE","path":"/1/classes/Place/MkvBgjOFPe"},{"method":"DELETE","path":"/1/classes/Place/c9wHv4fLHA"}]}'
|
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
|
+
- '641'
|
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:23:02 GMT
|
78
|
+
Etag:
|
79
|
+
- ! '"5d25c8fb038e7f7d6fcb7bf4c72e3298"'
|
80
|
+
Server:
|
81
|
+
- nginx/1.2.2
|
82
|
+
Set-Cookie:
|
83
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTQ3NjRmMjQ3NjljMzM3OWZiNDY5NjI1NmE3ODE5ZDY%3D--013710e67a84a60851861aed00b6f4a7588d0b59;
|
84
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:02 GMT; secure;
|
85
|
+
HttpOnly
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
X-Runtime:
|
89
|
+
- '0.273479'
|
90
|
+
X-Ua-Compatible:
|
91
|
+
- IE=Edge,chrome=1
|
92
|
+
Content-Length:
|
93
|
+
- '188'
|
94
|
+
Connection:
|
95
|
+
- keep-alive
|
96
|
+
body:
|
97
|
+
encoding: US-ASCII
|
98
|
+
string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Wed, 17 Apr 2013 07:23:02 GMT
|
101
|
+
- request:
|
102
|
+
method: post
|
103
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: ! '{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}'
|
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
|
+
- '94'
|
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:23:02 GMT
|
129
|
+
Location:
|
130
|
+
- https://api.parse.com/1/classes/Place/xmklpmPT1N
|
131
|
+
Server:
|
132
|
+
- nginx/1.2.2
|
133
|
+
Set-Cookie:
|
134
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTc4MWEzYWViYzNkN2IyMDJmZjdjZTdiYmNmN2VmNDY%3D--c68397dd67f2a33953a8c77deaad7dba5834d4b1;
|
135
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:02 GMT; secure;
|
136
|
+
HttpOnly
|
137
|
+
Status:
|
138
|
+
- 201 Created
|
139
|
+
X-Runtime:
|
140
|
+
- '0.190918'
|
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-17T07:23:02.849Z","objectId":"xmklpmPT1N"}'
|
150
|
+
http_version:
|
151
|
+
recorded_at: Wed, 17 Apr 2013 07:23:02 GMT
|
152
|
+
- request:
|
153
|
+
method: get
|
154
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?count=1&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 07:23:03 GMT
|
176
|
+
Etag:
|
177
|
+
- ! '"34e4c5c9ee7f7f74a51252e5ccfd5af9"'
|
178
|
+
Server:
|
179
|
+
- nginx/1.2.2
|
180
|
+
Set-Cookie:
|
181
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjMxYzMxOTBiN2E0ZDkxMDYzYmEyNjdkNzBjMjE3NDg%3D--7163d6072730dbdce9ebb8809cc3ec9b949b44be;
|
182
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:03 GMT; secure;
|
183
|
+
HttpOnly
|
184
|
+
Status:
|
185
|
+
- 200 OK
|
186
|
+
X-Runtime:
|
187
|
+
- '0.042266'
|
188
|
+
X-Ua-Compatible:
|
189
|
+
- IE=Edge,chrome=1
|
190
|
+
Content-Length:
|
191
|
+
- '220'
|
192
|
+
Connection:
|
193
|
+
- keep-alive
|
194
|
+
body:
|
195
|
+
encoding: US-ASCII
|
196
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:23:02.849Z","updatedAt":"2013-04-17T07:23:02.849Z","objectId":"xmklpmPT1N"}],"count":1}'
|
197
|
+
http_version:
|
198
|
+
recorded_at: Wed, 17 Apr 2013 07:23:03 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?limit=1&where=%7B%22objectId%22:%22xmklpmPT1N%22%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 07:23:03 GMT
|
223
|
+
Etag:
|
224
|
+
- ! '"a357b6b962e2f8b4ef654ef983aa90fb"'
|
225
|
+
Server:
|
226
|
+
- nginx/1.2.2
|
227
|
+
Set-Cookie:
|
228
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzI2Y2YxM2RjZTlkZTA2ZGY1NDIzNTNiYThjYTA2MjA%3D--4b6b75204a15bb39cbfd7015564fca3a1fe4b113;
|
229
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:23:03 GMT; secure;
|
230
|
+
HttpOnly
|
231
|
+
Status:
|
232
|
+
- 200 OK
|
233
|
+
X-Runtime:
|
234
|
+
- '0.033923'
|
235
|
+
X-Ua-Compatible:
|
236
|
+
- IE=Edge,chrome=1
|
237
|
+
Content-Length:
|
238
|
+
- '210'
|
239
|
+
Connection:
|
240
|
+
- keep-alive
|
241
|
+
body:
|
242
|
+
encoding: US-ASCII
|
243
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T07:23:02.849Z","updatedAt":"2013-04-17T07:23:02.849Z","objectId":"xmklpmPT1N"}]}'
|
244
|
+
http_version:
|
245
|
+
recorded_at: Wed, 17 Apr 2013 07:23:03 GMT
|
246
|
+
- request:
|
247
|
+
method: get
|
248
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?where=%7B%7D
|
249
|
+
body:
|
250
|
+
encoding: US-ASCII
|
251
|
+
string: ''
|
252
|
+
headers:
|
253
|
+
Accept:
|
254
|
+
- ! '*/*; q=0.5, application/xml'
|
255
|
+
Accept-Encoding:
|
256
|
+
- gzip, deflate
|
257
|
+
User-Agent:
|
258
|
+
- Ruby
|
259
|
+
response:
|
260
|
+
status:
|
261
|
+
code: 200
|
262
|
+
message: OK
|
263
|
+
headers:
|
264
|
+
Cache-Control:
|
265
|
+
- max-age=0, private, must-revalidate
|
266
|
+
Content-Type:
|
267
|
+
- application/json; charset=utf-8
|
268
|
+
Date:
|
269
|
+
- Wed, 17 Apr 2013 20:08:46 GMT
|
270
|
+
Etag:
|
271
|
+
- ! '"0feca33ea313adcafb08b6ee71fc6e8a"'
|
272
|
+
Server:
|
273
|
+
- nginx/1.2.2
|
274
|
+
Set-Cookie:
|
275
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZTUzYmNlOGY5ZDNlNDBiOWY1NGZjNTRmYmU1NDhmNzE%3D--111b255abe53fe7a04f37386a575a16c12131e05;
|
276
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:46 GMT; secure;
|
277
|
+
HttpOnly
|
278
|
+
Status:
|
279
|
+
- 200 OK
|
280
|
+
X-Runtime:
|
281
|
+
- '0.026458'
|
282
|
+
X-Ua-Compatible:
|
283
|
+
- IE=Edge,chrome=1
|
284
|
+
Content-Length:
|
285
|
+
- '2175'
|
286
|
+
Connection:
|
287
|
+
- keep-alive
|
288
|
+
body:
|
289
|
+
encoding: US-ASCII
|
290
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:08:45.295Z","updatedAt":"2013-04-17T20:08:45.295Z","objectId":"KdmFP3N1mL"},{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962},"createdAt":"2013-04-17T20:08:45.308Z","updatedAt":"2013-04-17T20:08:45.308Z","objectId":"dEqcog7vA9"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T20:08:45.321Z","updatedAt":"2013-04-17T20:08:45.321Z","objectId":"jEvEWzuEIr"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T20:08:45.334Z","updatedAt":"2013-04-17T20:08:45.334Z","objectId":"rwWOHJaYMh"},{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533},"createdAt":"2013-04-17T20:08:45.347Z","updatedAt":"2013-04-17T20:08:45.347Z","objectId":"nKOGuLHWXD"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T20:08:45.360Z","updatedAt":"2013-04-17T20:08:45.360Z","objectId":"8VFyA8OrtX"},{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512},"createdAt":"2013-04-17T20:08:45.583Z","updatedAt":"2013-04-17T20:08:45.583Z","objectId":"wovoarySxx"},{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168},"createdAt":"2013-04-17T20:08:45.596Z","updatedAt":"2013-04-17T20:08:45.596Z","objectId":"b8z8a1X2qr"},{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938},"createdAt":"2013-04-17T20:08:45.609Z","updatedAt":"2013-04-17T20:08:45.609Z","objectId":"ZmqJZnYZ2P"},{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922},"createdAt":"2013-04-17T20:08:45.622Z","updatedAt":"2013-04-17T20:08:45.622Z","objectId":"JpvLJjGKgt"},{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498},"createdAt":"2013-04-17T20:08:45.635Z","updatedAt":"2013-04-17T20:08:45.635Z","objectId":"IAm4L6nm3d"}]}'
|
291
|
+
http_version:
|
292
|
+
recorded_at: Wed, 17 Apr 2013 20:08:46 GMT
|
293
|
+
- request:
|
294
|
+
method: post
|
295
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
|
296
|
+
body:
|
297
|
+
encoding: UTF-8
|
298
|
+
string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Place/KdmFP3N1mL"},{"method":"DELETE","path":"/1/classes/Place/dEqcog7vA9"},{"method":"DELETE","path":"/1/classes/Place/jEvEWzuEIr"},{"method":"DELETE","path":"/1/classes/Place/rwWOHJaYMh"},{"method":"DELETE","path":"/1/classes/Place/nKOGuLHWXD"},{"method":"DELETE","path":"/1/classes/Place/8VFyA8OrtX"},{"method":"DELETE","path":"/1/classes/Place/wovoarySxx"},{"method":"DELETE","path":"/1/classes/Place/b8z8a1X2qr"},{"method":"DELETE","path":"/1/classes/Place/ZmqJZnYZ2P"},{"method":"DELETE","path":"/1/classes/Place/JpvLJjGKgt"},{"method":"DELETE","path":"/1/classes/Place/IAm4L6nm3d"}]}'
|
299
|
+
headers:
|
300
|
+
Accept:
|
301
|
+
- ! '*/*; q=0.5, application/xml'
|
302
|
+
Accept-Encoding:
|
303
|
+
- gzip, deflate
|
304
|
+
Content-Type:
|
305
|
+
- application/json
|
306
|
+
Content-Length:
|
307
|
+
- '641'
|
308
|
+
User-Agent:
|
309
|
+
- Ruby
|
310
|
+
response:
|
311
|
+
status:
|
312
|
+
code: 200
|
313
|
+
message: OK
|
314
|
+
headers:
|
315
|
+
Cache-Control:
|
316
|
+
- max-age=0, private, must-revalidate
|
317
|
+
Content-Type:
|
318
|
+
- application/json; charset=utf-8
|
319
|
+
Date:
|
320
|
+
- Wed, 17 Apr 2013 20:08:46 GMT
|
321
|
+
Etag:
|
322
|
+
- ! '"5d25c8fb038e7f7d6fcb7bf4c72e3298"'
|
323
|
+
Server:
|
324
|
+
- nginx/1.2.2
|
325
|
+
Set-Cookie:
|
326
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmUyYWM3YzliMjcxYTViZGU3MzdhZjk1YmNjZjc1MWY%3D--032ad727e6be32bbb21bb09ab8274aef03f2a162;
|
327
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:46 GMT; secure;
|
328
|
+
HttpOnly
|
329
|
+
Status:
|
330
|
+
- 200 OK
|
331
|
+
X-Runtime:
|
332
|
+
- '0.155521'
|
333
|
+
X-Ua-Compatible:
|
334
|
+
- IE=Edge,chrome=1
|
335
|
+
Content-Length:
|
336
|
+
- '188'
|
337
|
+
Connection:
|
338
|
+
- keep-alive
|
339
|
+
body:
|
340
|
+
encoding: US-ASCII
|
341
|
+
string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
|
342
|
+
http_version:
|
343
|
+
recorded_at: Wed, 17 Apr 2013 20:08:46 GMT
|
344
|
+
- request:
|
345
|
+
method: post
|
346
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place
|
347
|
+
body:
|
348
|
+
encoding: UTF-8
|
349
|
+
string: ! '{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}'
|
350
|
+
headers:
|
351
|
+
Accept:
|
352
|
+
- ! '*/*; q=0.5, application/xml'
|
353
|
+
Accept-Encoding:
|
354
|
+
- gzip, deflate
|
355
|
+
Content-Type:
|
356
|
+
- application/json
|
357
|
+
Content-Length:
|
358
|
+
- '94'
|
359
|
+
User-Agent:
|
360
|
+
- Ruby
|
361
|
+
response:
|
362
|
+
status:
|
363
|
+
code: 201
|
364
|
+
message: Created
|
365
|
+
headers:
|
366
|
+
Cache-Control:
|
367
|
+
- no-cache
|
368
|
+
Content-Type:
|
369
|
+
- application/json; charset=utf-8
|
370
|
+
Date:
|
371
|
+
- Wed, 17 Apr 2013 20:08:46 GMT
|
372
|
+
Location:
|
373
|
+
- https://api.parse.com/1/classes/Place/8pKQeN93Ox
|
374
|
+
Server:
|
375
|
+
- nginx/1.2.2
|
376
|
+
Set-Cookie:
|
377
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjA0ODJkNWVkYjMyYTQyNGUwYzBjODYyNWQxNmViMTY%3D--156fbe6391af43f02a97eacf18a817eedec3169f;
|
378
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:46 GMT; secure;
|
379
|
+
HttpOnly
|
380
|
+
Status:
|
381
|
+
- 201 Created
|
382
|
+
X-Runtime:
|
383
|
+
- '0.029575'
|
384
|
+
X-Ua-Compatible:
|
385
|
+
- IE=Edge,chrome=1
|
386
|
+
Content-Length:
|
387
|
+
- '64'
|
388
|
+
Connection:
|
389
|
+
- keep-alive
|
390
|
+
body:
|
391
|
+
encoding: US-ASCII
|
392
|
+
string: ! '{"createdAt":"2013-04-17T20:08:46.781Z","objectId":"8pKQeN93Ox"}'
|
393
|
+
http_version:
|
394
|
+
recorded_at: Wed, 17 Apr 2013 20:08:46 GMT
|
395
|
+
- request:
|
396
|
+
method: get
|
397
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?count=1&where=%7B%7D
|
398
|
+
body:
|
399
|
+
encoding: US-ASCII
|
400
|
+
string: ''
|
401
|
+
headers:
|
402
|
+
Accept:
|
403
|
+
- ! '*/*; q=0.5, application/xml'
|
404
|
+
Accept-Encoding:
|
405
|
+
- gzip, deflate
|
406
|
+
User-Agent:
|
407
|
+
- Ruby
|
408
|
+
response:
|
409
|
+
status:
|
410
|
+
code: 200
|
411
|
+
message: OK
|
412
|
+
headers:
|
413
|
+
Cache-Control:
|
414
|
+
- max-age=0, private, must-revalidate
|
415
|
+
Content-Type:
|
416
|
+
- application/json; charset=utf-8
|
417
|
+
Date:
|
418
|
+
- Wed, 17 Apr 2013 20:08:46 GMT
|
419
|
+
Etag:
|
420
|
+
- ! '"1236c51c67be3f75f337c901561aed98"'
|
421
|
+
Server:
|
422
|
+
- nginx/1.2.2
|
423
|
+
Set-Cookie:
|
424
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmNhYmZkYTEwMDc3OGE1MTdmYTY2YzM3MTJkMTZjYzc%3D--2d02523961c4683033fbd3a72b80aa3fe43764dc;
|
425
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:46 GMT; secure;
|
426
|
+
HttpOnly
|
427
|
+
Status:
|
428
|
+
- 200 OK
|
429
|
+
X-Runtime:
|
430
|
+
- '0.036142'
|
431
|
+
X-Ua-Compatible:
|
432
|
+
- IE=Edge,chrome=1
|
433
|
+
Content-Length:
|
434
|
+
- '220'
|
435
|
+
Connection:
|
436
|
+
- keep-alive
|
437
|
+
body:
|
438
|
+
encoding: US-ASCII
|
439
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:08:46.781Z","updatedAt":"2013-04-17T20:08:46.781Z","objectId":"8pKQeN93Ox"}],"count":1}'
|
440
|
+
http_version:
|
441
|
+
recorded_at: Wed, 17 Apr 2013 20:08:46 GMT
|
442
|
+
- request:
|
443
|
+
method: get
|
444
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Place?limit=1&where=%7B%22objectId%22:%228pKQeN93Ox%22%7D
|
445
|
+
body:
|
446
|
+
encoding: US-ASCII
|
447
|
+
string: ''
|
448
|
+
headers:
|
449
|
+
Accept:
|
450
|
+
- ! '*/*; q=0.5, application/xml'
|
451
|
+
Accept-Encoding:
|
452
|
+
- gzip, deflate
|
453
|
+
User-Agent:
|
454
|
+
- Ruby
|
455
|
+
response:
|
456
|
+
status:
|
457
|
+
code: 200
|
458
|
+
message: OK
|
459
|
+
headers:
|
460
|
+
Cache-Control:
|
461
|
+
- max-age=0, private, must-revalidate
|
462
|
+
Content-Type:
|
463
|
+
- application/json; charset=utf-8
|
464
|
+
Date:
|
465
|
+
- Wed, 17 Apr 2013 20:08:47 GMT
|
466
|
+
Etag:
|
467
|
+
- ! '"9f64f7430dcb2843a1850800b99a50d8"'
|
468
|
+
Server:
|
469
|
+
- nginx/1.2.2
|
470
|
+
Set-Cookie:
|
471
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTczOWU5MzkxNzg5ODE5MGQyNDVhODljMzRlYzU3OTk%3D--40388126dd72ec530a2d30375e61509ac81824dc;
|
472
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:47 GMT; secure;
|
473
|
+
HttpOnly
|
474
|
+
Status:
|
475
|
+
- 200 OK
|
476
|
+
X-Runtime:
|
477
|
+
- '0.060977'
|
478
|
+
X-Ua-Compatible:
|
479
|
+
- IE=Edge,chrome=1
|
480
|
+
Content-Length:
|
481
|
+
- '210'
|
482
|
+
Connection:
|
483
|
+
- keep-alive
|
484
|
+
body:
|
485
|
+
encoding: US-ASCII
|
486
|
+
string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T20:08:46.781Z","updatedAt":"2013-04-17T20:08:46.781Z","objectId":"8pKQeN93Ox"}]}'
|
487
|
+
http_version:
|
488
|
+
recorded_at: Wed, 17 Apr 2013 20:08:47 GMT
|
489
|
+
recorded_with: VCR 2.4.0
|