parse_resource 1.7.3 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/.DS_Store +0 -0
  2. data/.travis.yml +1 -1
  3. data/Gemfile +4 -8
  4. data/Gemfile.lock +27 -23
  5. data/README.md +81 -2
  6. data/Rakefile +9 -8
  7. data/VERSION +1 -1
  8. data/fixtures/.DS_Store +0 -0
  9. data/fixtures/vcr_cassettes/.DS_Store +0 -0
  10. data/fixtures/vcr_cassettes/test_all.yml +319 -34
  11. data/fixtures/vcr_cassettes/test_attribute_getters.yml +256 -12
  12. data/fixtures/vcr_cassettes/test_attribute_setters.yml +256 -12
  13. data/fixtures/vcr_cassettes/test_authenticate.yml +260 -32
  14. data/fixtures/vcr_cassettes/test_chained_wheres.yml +320 -35
  15. data/fixtures/vcr_cassettes/test_chunk.yml +1359 -0
  16. data/fixtures/vcr_cassettes/test_count.yml +495 -84
  17. data/fixtures/vcr_cassettes/test_create.yml +154 -12
  18. data/fixtures/vcr_cassettes/test_created_at.yml +256 -12
  19. data/fixtures/vcr_cassettes/test_destroy.yml +364 -32
  20. data/fixtures/vcr_cassettes/test_destroy_all.yml +236 -48
  21. data/fixtures/vcr_cassettes/test_each.yml +488 -56
  22. data/fixtures/vcr_cassettes/test_fetching_closest_10.yml +1509 -0
  23. data/fixtures/vcr_cassettes/test_fetching_closest_by_kilometers.yml +1509 -0
  24. data/fixtures/vcr_cassettes/test_fetching_closest_by_miles.yml +1509 -0
  25. data/fixtures/vcr_cassettes/test_fetching_closest_by_radians.yml +1509 -0
  26. data/fixtures/vcr_cassettes/test_fetching_closest_within_box.yml +489 -0
  27. data/fixtures/vcr_cassettes/test_fetching_geopoint_field.yml +489 -0
  28. data/fixtures/vcr_cassettes/test_find.yml +312 -24
  29. data/fixtures/vcr_cassettes/test_find_all_by.yml +170 -34
  30. data/fixtures/vcr_cassettes/test_find_by.yml +174 -38
  31. data/fixtures/vcr_cassettes/test_first.yml +260 -23
  32. data/fixtures/vcr_cassettes/test_id.yml +256 -12
  33. data/fixtures/vcr_cassettes/test_installation_creation.yml +199 -0
  34. data/fixtures/vcr_cassettes/test_installation_creation_validation_check.yml +297 -0
  35. data/fixtures/vcr_cassettes/test_limit.yml +1138 -179
  36. data/fixtures/vcr_cassettes/test_map.yml +488 -56
  37. data/fixtures/vcr_cassettes/test_order_ascending.yml +395 -0
  38. data/fixtures/vcr_cassettes/test_order_descending.yml +446 -0
  39. data/fixtures/vcr_cassettes/test_save.yml +316 -24
  40. data/fixtures/vcr_cassettes/test_save_all_and_destroy_all.yml +869 -0
  41. data/fixtures/vcr_cassettes/test_saving_geo_point_with_quick_init.yml +395 -0
  42. data/fixtures/vcr_cassettes/test_saving_geopoint_with_coords.yml +395 -0
  43. data/fixtures/vcr_cassettes/test_skip.yml +120 -525
  44. data/fixtures/vcr_cassettes/test_update.yml +316 -24
  45. data/fixtures/vcr_cassettes/test_updated_at.yml +316 -24
  46. data/fixtures/vcr_cassettes/test_username_should_be_unique.yml +311 -21
  47. data/fixtures/vcr_cassettes/test_where.yml +117 -25
  48. data/lib/kaminari_extension.rb +60 -0
  49. data/lib/parse_resource.rb +4 -2
  50. data/lib/parse_resource/base.rb +262 -163
  51. data/lib/parse_resource/client.rb +8 -0
  52. data/lib/parse_resource/parse_error.rb +36 -22
  53. data/lib/parse_resource/query.rb +99 -7
  54. data/lib/parse_resource/query_methods.rb +64 -0
  55. data/lib/parse_resource/types/parse_geopoint.rb +19 -0
  56. data/parse_resource.gemspec +29 -9
  57. data/parse_resource.yml +2 -2
  58. data/test/active_model_lint_test.rb +0 -2
  59. data/test/helper.rb +13 -3
  60. data/test/test_parse_installation.rb +41 -0
  61. data/test/test_parse_resource.rb +108 -20
  62. data/test/test_parse_user.rb +4 -7
  63. data/test/test_query_options.rb +0 -38
  64. data/test/test_types.rb +186 -0
  65. metadata +38 -31
@@ -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 16:59:13 GMT
27
+ Etag:
28
+ - ! '"6cdbbdb32737a50637899a915a92eb98"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjVlM2FiYzgxMTdkZWJkNWNmNzZmZTVlMzk5ZmFiZGY%3D--35e92647e09cde697a379971a968372d64946f6d;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 16:59:13 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.034064'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '2359'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"name":"Office","location":{"__type":"GeoPoint","latitude":0.0,"longitude":0.0},"createdAt":"2013-04-17T07:23:08.036Z","updatedAt":"2013-04-17T07:23:08.036Z","objectId":"rxPI7ISCsT"},{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T16:58:08.078Z","updatedAt":"2013-04-17T16:58:08.078Z","objectId":"bXFsWCe2NU"},{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962},"createdAt":"2013-04-17T16:58:08.420Z","updatedAt":"2013-04-17T16:58:08.420Z","objectId":"yw9XYFn9D8"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:58:08.431Z","updatedAt":"2013-04-17T16:58:08.431Z","objectId":"OKeKlv75aA"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:58:08.443Z","updatedAt":"2013-04-17T16:58:08.443Z","objectId":"m38tE1tXPw"},{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533},"createdAt":"2013-04-17T16:58:08.454Z","updatedAt":"2013-04-17T16:58:08.454Z","objectId":"eRaFCpLdJH"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T16:58:08.466Z","updatedAt":"2013-04-17T16:58:08.466Z","objectId":"Ax2dwkz3Qo"},{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512},"createdAt":"2013-04-17T16:58:08.477Z","updatedAt":"2013-04-17T16:58:08.477Z","objectId":"c9pKTRfTyQ"},{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168},"createdAt":"2013-04-17T16:58:08.488Z","updatedAt":"2013-04-17T16:58:08.488Z","objectId":"oaQm6PT6ir"},{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938},"createdAt":"2013-04-17T16:58:08.500Z","updatedAt":"2013-04-17T16:58:08.500Z","objectId":"vLoXefcTAe"},{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922},"createdAt":"2013-04-17T16:58:08.512Z","updatedAt":"2013-04-17T16:58:08.512Z","objectId":"KSbKxHfuMo"},{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498},"createdAt":"2013-04-17T16:58:08.523Z","updatedAt":"2013-04-17T16:58:08.523Z","objectId":"OwBH6YfoCs"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 16:59:13 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/rxPI7ISCsT"},{"method":"DELETE","path":"/1/classes/Place/bXFsWCe2NU"},{"method":"DELETE","path":"/1/classes/Place/yw9XYFn9D8"},{"method":"DELETE","path":"/1/classes/Place/OKeKlv75aA"},{"method":"DELETE","path":"/1/classes/Place/m38tE1tXPw"},{"method":"DELETE","path":"/1/classes/Place/eRaFCpLdJH"},{"method":"DELETE","path":"/1/classes/Place/Ax2dwkz3Qo"},{"method":"DELETE","path":"/1/classes/Place/c9pKTRfTyQ"},{"method":"DELETE","path":"/1/classes/Place/oaQm6PT6ir"},{"method":"DELETE","path":"/1/classes/Place/vLoXefcTAe"},{"method":"DELETE","path":"/1/classes/Place/KSbKxHfuMo"},{"method":"DELETE","path":"/1/classes/Place/OwBH6YfoCs"}]}'
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
+ - '698'
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 16:59:13 GMT
78
+ Etag:
79
+ - ! '"9337d8bb614e59a17f48af09c4618186"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDI5MmIwNGFhZjRlMWU4YWU0NGM1ZThkYTg0OTRlZTE%3D--f6a842fd82fb94bceadcf13de86d0a293b476ea8;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 16:59:13 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.208758'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '205'
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},{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 16:59:14 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"requests":[{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498}}}]}'
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
+ - '1615'
116
+ User-Agent:
117
+ - Ruby
118
+ response:
119
+ status:
120
+ code: 200
121
+ message: OK
122
+ headers:
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ Content-Type:
126
+ - application/json; charset=utf-8
127
+ Date:
128
+ - Wed, 17 Apr 2013 16:59:14 GMT
129
+ Etag:
130
+ - ! '"27e80e4ba7e66eade589624cb3f586fe"'
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWFmMzVlMTUwOTg0YzdiYjdmNTY0MzlkYTJjNzQwYzQ%3D--fd73f6b279bd981dd512afeddc4dbb8d658ed85d;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 16:59:14 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 200 OK
139
+ X-Runtime:
140
+ - '0.144956'
141
+ X-Ua-Compatible:
142
+ - IE=Edge,chrome=1
143
+ Content-Length:
144
+ - '848'
145
+ Connection:
146
+ - keep-alive
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ! '[{"success":{"createdAt":"2013-04-17T16:59:14.270Z","objectId":"uhns0wg4jz"}},{"success":{"createdAt":"2013-04-17T16:59:14.281Z","objectId":"DXwjSFQCvg"}},{"success":{"createdAt":"2013-04-17T16:59:14.291Z","objectId":"1NtKhvOTAW"}},{"success":{"createdAt":"2013-04-17T16:59:14.302Z","objectId":"AJzr9pInKV"}},{"success":{"createdAt":"2013-04-17T16:59:14.313Z","objectId":"AyenPGOmeo"}},{"success":{"createdAt":"2013-04-17T16:59:14.324Z","objectId":"BxUesSyEGD"}},{"success":{"createdAt":"2013-04-17T16:59:14.334Z","objectId":"nCwq1w9U3Y"}},{"success":{"createdAt":"2013-04-17T16:59:14.345Z","objectId":"hdjbHWvp24"}},{"success":{"createdAt":"2013-04-17T16:59:14.357Z","objectId":"bt6j7Qr2sS"}},{"success":{"createdAt":"2013-04-17T16:59:14.368Z","objectId":"sCFHUBhH0j"}},{"success":{"createdAt":"2013-04-17T16:59:14.379Z","objectId":"CI4QDaX7cS"}}]'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 16:59:15 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 16:59:14 GMT
176
+ Etag:
177
+ - ! '"13f9a8e06e85784e5013e0988235d467"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTA3NmRiMWRjMmU2NDQ3ZDhlOTIzMzI5NDkyZTM5NzE%3D--833b8cc2b30cdb3d030ba2fb1930097df147cc49;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 16:59:14 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.046246'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '2186'
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-17T16:59:14.270Z","updatedAt":"2013-04-17T16:59:14.270Z","objectId":"uhns0wg4jz"},{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962},"createdAt":"2013-04-17T16:59:14.281Z","updatedAt":"2013-04-17T16:59:14.281Z","objectId":"DXwjSFQCvg"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:59:14.291Z","updatedAt":"2013-04-17T16:59:14.291Z","objectId":"1NtKhvOTAW"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:59:14.302Z","updatedAt":"2013-04-17T16:59:14.302Z","objectId":"AJzr9pInKV"},{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533},"createdAt":"2013-04-17T16:59:14.313Z","updatedAt":"2013-04-17T16:59:14.313Z","objectId":"AyenPGOmeo"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T16:59:14.324Z","updatedAt":"2013-04-17T16:59:14.324Z","objectId":"BxUesSyEGD"},{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512},"createdAt":"2013-04-17T16:59:14.334Z","updatedAt":"2013-04-17T16:59:14.334Z","objectId":"nCwq1w9U3Y"},{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168},"createdAt":"2013-04-17T16:59:14.345Z","updatedAt":"2013-04-17T16:59:14.345Z","objectId":"hdjbHWvp24"},{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938},"createdAt":"2013-04-17T16:59:14.357Z","updatedAt":"2013-04-17T16:59:14.357Z","objectId":"bt6j7Qr2sS"},{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922},"createdAt":"2013-04-17T16:59:14.368Z","updatedAt":"2013-04-17T16:59:14.368Z","objectId":"sCFHUBhH0j"},{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498},"createdAt":"2013-04-17T16:59:14.379Z","updatedAt":"2013-04-17T16:59:14.379Z","objectId":"CI4QDaX7cS"}],"count":11}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 16:59:15 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Place?where=%7B%22location%22:%7B%22$within%22:%7B%22$box%22:%5B%7B%22__type%22:%22GeoPoint%22,%22latitude%22:33.81637559726026,%22longitude%22:-118.3783150233789%7D,%7B%22__type%22:%22GeoPoint%22,%22latitude%22:34.09300844216167,%22longitude%22:-118.3780094460731%7D%5D%7D%7D%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 16:59:15 GMT
223
+ Etag:
224
+ - ! '"456987405ff4b55a9557767767d9a2eb"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjVjYjdkNTc0MWMyMmE5NTY5YmU0Yzc2N2EwZDQ1NDA%3D--c4aa4c3b1686d2868a7c6c04c503a78d5967be75;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 16:59:15 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.050391'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '801'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:59:14.302Z","updatedAt":"2013-04-17T16:59:14.302Z","objectId":"AJzr9pInKV"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T16:59:14.324Z","updatedAt":"2013-04-17T16:59:14.324Z","objectId":"BxUesSyEGD"},{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731},"createdAt":"2013-04-17T16:59:14.270Z","updatedAt":"2013-04-17T16:59:14.270Z","objectId":"uhns0wg4jz"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T16:59:14.291Z","updatedAt":"2013-04-17T16:59:14.291Z","objectId":"1NtKhvOTAW"}]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 16:59:15 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:44 GMT
270
+ Etag:
271
+ - ! '"007a52bf24e2b93321defe8413342448"'
272
+ Server:
273
+ - nginx/1.2.2
274
+ Set-Cookie:
275
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmU2OWUwODNkNjQ1YjljYmMzZDNlOGRhYzlhMmE4ZWM%3D--158fd05e515cc0c3810e733a9d1bbefbb15afc92;
276
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:44 GMT; secure;
277
+ HttpOnly
278
+ Status:
279
+ - 200 OK
280
+ X-Runtime:
281
+ - '0.031217'
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:42.334Z","updatedAt":"2013-04-17T20:08:42.334Z","objectId":"5fgkF1gmjN"},{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962},"createdAt":"2013-04-17T20:08:42.478Z","updatedAt":"2013-04-17T20:08:42.478Z","objectId":"RoTL1cZJnf"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T20:08:43.001Z","updatedAt":"2013-04-17T20:08:43.001Z","objectId":"ZLD38ynOY1"},{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T20:08:43.218Z","updatedAt":"2013-04-17T20:08:43.218Z","objectId":"C3xoMWkURL"},{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533},"createdAt":"2013-04-17T20:08:43.362Z","updatedAt":"2013-04-17T20:08:43.362Z","objectId":"EJrR5Aj3ZD"},{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789},"createdAt":"2013-04-17T20:08:43.518Z","updatedAt":"2013-04-17T20:08:43.518Z","objectId":"wqIelcbBlI"},{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512},"createdAt":"2013-04-17T20:08:43.654Z","updatedAt":"2013-04-17T20:08:43.654Z","objectId":"G1Piiz710U"},{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168},"createdAt":"2013-04-17T20:08:43.800Z","updatedAt":"2013-04-17T20:08:43.800Z","objectId":"eM2Sv4SU5l"},{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938},"createdAt":"2013-04-17T20:08:44.019Z","updatedAt":"2013-04-17T20:08:44.019Z","objectId":"43rgylnrjA"},{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922},"createdAt":"2013-04-17T20:08:44.171Z","updatedAt":"2013-04-17T20:08:44.171Z","objectId":"vUimzmMoVo"},{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498},"createdAt":"2013-04-17T20:08:44.315Z","updatedAt":"2013-04-17T20:08:44.315Z","objectId":"WGLHobjzoD"}]}'
291
+ http_version:
292
+ recorded_at: Wed, 17 Apr 2013 20:08:44 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/5fgkF1gmjN"},{"method":"DELETE","path":"/1/classes/Place/RoTL1cZJnf"},{"method":"DELETE","path":"/1/classes/Place/ZLD38ynOY1"},{"method":"DELETE","path":"/1/classes/Place/C3xoMWkURL"},{"method":"DELETE","path":"/1/classes/Place/EJrR5Aj3ZD"},{"method":"DELETE","path":"/1/classes/Place/wqIelcbBlI"},{"method":"DELETE","path":"/1/classes/Place/G1Piiz710U"},{"method":"DELETE","path":"/1/classes/Place/eM2Sv4SU5l"},{"method":"DELETE","path":"/1/classes/Place/43rgylnrjA"},{"method":"DELETE","path":"/1/classes/Place/vUimzmMoVo"},{"method":"DELETE","path":"/1/classes/Place/WGLHobjzoD"}]}'
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:45 GMT
321
+ Etag:
322
+ - ! '"5d25c8fb038e7f7d6fcb7bf4c72e3298"'
323
+ Server:
324
+ - nginx/1.2.2
325
+ Set-Cookie:
326
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmVkZGQxNWVhMTc1Zjg3ZDdkOGRkNmQzZjAzYWY1MmI%3D--c516c1a0cfc1ac6125f7d03dd11c9b90de6fc2bc;
327
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:45 GMT; secure;
328
+ HttpOnly
329
+ Status:
330
+ - 200 OK
331
+ X-Runtime:
332
+ - '0.149377'
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:45 GMT
344
+ - request:
345
+ method: post
346
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/batch
347
+ body:
348
+ encoding: UTF-8
349
+ string: ! '{"requests":[{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09300844216167,"longitude":-118.3780094460731}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09297074516132,"longitude":-118.3779001235962}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.09291733023489,"longitude":-118.3780601208767}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":34.10020829969745,"longitude":-118.2852727109533}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":33.81637559726026,"longitude":-118.3783150233789}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":36.11837535750446,"longitude":-115.1759274967512}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.0284736030277,"longitude":37.79059904775168}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02790593385819,"longitude":37.78864582772938}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02776282648577,"longitude":37.78850555419922}}},{"method":"POST","path":"/1/classes/Place","body":{"location":{"__type":"GeoPoint","latitude":48.02750452121758,"longitude":37.78846263885498}}}]}'
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
+ - '1615'
359
+ User-Agent:
360
+ - Ruby
361
+ response:
362
+ status:
363
+ code: 200
364
+ message: OK
365
+ headers:
366
+ Cache-Control:
367
+ - max-age=0, private, must-revalidate
368
+ Content-Type:
369
+ - application/json; charset=utf-8
370
+ Date:
371
+ - Wed, 17 Apr 2013 20:08:45 GMT
372
+ Etag:
373
+ - ! '"36449e8b58a6d53cd2737c9bcfefb4c1"'
374
+ Server:
375
+ - nginx/1.2.2
376
+ Set-Cookie:
377
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZDEwMzA2ZmYyNGI2ZTFjOTkwYWU0ODVkYmU5NzBjYjk%3D--3b74cb0f1589584673457413f0960a054156cb8c;
378
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:45 GMT; secure;
379
+ HttpOnly
380
+ Status:
381
+ - 200 OK
382
+ X-Runtime:
383
+ - '0.632633'
384
+ X-Ua-Compatible:
385
+ - IE=Edge,chrome=1
386
+ Content-Length:
387
+ - '848'
388
+ Connection:
389
+ - keep-alive
390
+ body:
391
+ encoding: US-ASCII
392
+ string: ! '[{"success":{"createdAt":"2013-04-17T20:08:45.295Z","objectId":"KdmFP3N1mL"}},{"success":{"createdAt":"2013-04-17T20:08:45.308Z","objectId":"dEqcog7vA9"}},{"success":{"createdAt":"2013-04-17T20:08:45.321Z","objectId":"jEvEWzuEIr"}},{"success":{"createdAt":"2013-04-17T20:08:45.334Z","objectId":"rwWOHJaYMh"}},{"success":{"createdAt":"2013-04-17T20:08:45.347Z","objectId":"nKOGuLHWXD"}},{"success":{"createdAt":"2013-04-17T20:08:45.360Z","objectId":"8VFyA8OrtX"}},{"success":{"createdAt":"2013-04-17T20:08:45.583Z","objectId":"wovoarySxx"}},{"success":{"createdAt":"2013-04-17T20:08:45.596Z","objectId":"b8z8a1X2qr"}},{"success":{"createdAt":"2013-04-17T20:08:45.609Z","objectId":"ZmqJZnYZ2P"}},{"success":{"createdAt":"2013-04-17T20:08:45.622Z","objectId":"JpvLJjGKgt"}},{"success":{"createdAt":"2013-04-17T20:08:45.635Z","objectId":"IAm4L6nm3d"}}]'
393
+ http_version:
394
+ recorded_at: Wed, 17 Apr 2013 20:08:45 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:45 GMT
419
+ Etag:
420
+ - ! '"52e75d02a5ad27d7ad5fa90e7a22b310"'
421
+ Server:
422
+ - nginx/1.2.2
423
+ Set-Cookie:
424
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2FiNzI3OWM2MWY0N2M2MmIxNWNmODBmYmI3YmQzYjM%3D--ba243eb7467d7916c6300c41d7f6fd8f27ef8922;
425
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:45 GMT; secure;
426
+ HttpOnly
427
+ Status:
428
+ - 200 OK
429
+ X-Runtime:
430
+ - '0.031508'
431
+ X-Ua-Compatible:
432
+ - IE=Edge,chrome=1
433
+ Content-Length:
434
+ - '2186'
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: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"}],"count":11}'
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?where=%7B%22location%22:%7B%22$within%22:%7B%22$box%22:%5B%7B%22__type%22:%22GeoPoint%22,%22latitude%22:33.81637559726026,%22longitude%22:-118.3783150233789%7D,%7B%22__type%22:%22GeoPoint%22,%22latitude%22:34.09300844216167,%22longitude%22:-118.3780094460731%7D%5D%7D%7D%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:46 GMT
466
+ Etag:
467
+ - ! '"dfa8d982bfebca3f9190648ed5148fed"'
468
+ Server:
469
+ - nginx/1.2.2
470
+ Set-Cookie:
471
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmU4ZjhhYjkxNDYzZTUzNjMyN2VmYmQxOGM3Njk0ZGQ%3D--4fad2cdf42ce9bbb723639afbb6fcb97d043bede;
472
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:46 GMT; secure;
473
+ HttpOnly
474
+ Status:
475
+ - 200 OK
476
+ X-Runtime:
477
+ - '0.035386'
478
+ X-Ua-Compatible:
479
+ - IE=Edge,chrome=1
480
+ Content-Length:
481
+ - '801'
482
+ Connection:
483
+ - keep-alive
484
+ body:
485
+ encoding: US-ASCII
486
+ string: ! '{"results":[{"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":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":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.09291733023489,"longitude":-118.3780601208767},"createdAt":"2013-04-17T20:08:45.321Z","updatedAt":"2013-04-17T20:08:45.321Z","objectId":"jEvEWzuEIr"}]}'
487
+ http_version:
488
+ recorded_at: Wed, 17 Apr 2013 20:08:46 GMT
489
+ recorded_with: VCR 2.4.0