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.
- 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
|
@@ -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:27:25 GMT
|
|
27
|
+
Etag:
|
|
28
|
+
- ! '"af5189440e315f2775d119ee43b78354"'
|
|
29
|
+
Server:
|
|
30
|
+
- nginx/1.2.2
|
|
31
|
+
Set-Cookie:
|
|
32
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGYxOTZiYmMzZjkyMThmZGFiZjhjMGViYWYwOGFmZmY%3D--8d77997c0770f7778f1a4a8ad344eafe22edb6f9;
|
|
33
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:25 GMT; secure;
|
|
34
|
+
HttpOnly
|
|
35
|
+
Status:
|
|
36
|
+
- 200 OK
|
|
37
|
+
X-Runtime:
|
|
38
|
+
- '0.030043'
|
|
39
|
+
X-Ua-Compatible:
|
|
40
|
+
- IE=Edge,chrome=1
|
|
41
|
+
Content-Length:
|
|
42
|
+
- '739'
|
|
43
|
+
Connection:
|
|
44
|
+
- keep-alive
|
|
45
|
+
body:
|
|
46
|
+
encoding: US-ASCII
|
|
47
|
+
string: ! '{"results":[{"title":"each","createdAt":"2013-04-17T06:26:26.625Z","updatedAt":"2013-04-17T06:26:26.625Z","objectId":"unoGql9Ab7"},{"title":"each","createdAt":"2013-04-17T06:26:27.173Z","updatedAt":"2013-04-17T06:26:27.173Z","objectId":"TBel22TMCH"},{"title":"each","createdAt":"2013-04-17T06:26:27.730Z","updatedAt":"2013-04-17T06:26:27.730Z","objectId":"pf03MP6X9T"},{"title":"each","createdAt":"2013-04-17T06:26:28.299Z","updatedAt":"2013-04-17T06:26:28.299Z","objectId":"9MbJauH2tV"},{"title":"Welcome111","createdAt":"2013-04-17T06:27:20.364Z","updatedAt":"2013-04-17T06:27:20.364Z","objectId":"fXAyeJ7wuR"},{"title":"Welcome111","createdAt":"2013-04-17T06:27:21.899Z","updatedAt":"2013-04-17T06:27:21.899Z","objectId":"0TE31S53Tf"}]}'
|
|
48
|
+
http_version:
|
|
49
|
+
recorded_at: Wed, 17 Apr 2013 06:27:25 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/unoGql9Ab7"},{"method":"DELETE","path":"/1/classes/Post/TBel22TMCH"},{"method":"DELETE","path":"/1/classes/Post/pf03MP6X9T"},{"method":"DELETE","path":"/1/classes/Post/9MbJauH2tV"},{"method":"DELETE","path":"/1/classes/Post/fXAyeJ7wuR"},{"method":"DELETE","path":"/1/classes/Post/0TE31S53Tf"}]}'
|
|
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
|
+
- '350'
|
|
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:27:25 GMT
|
|
78
|
+
Etag:
|
|
79
|
+
- ! '"bb297b0b166dd74e79c22967fd41f543"'
|
|
80
|
+
Server:
|
|
81
|
+
- nginx/1.2.2
|
|
82
|
+
Set-Cookie:
|
|
83
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZmU1ODQ0YWIyMjJlNmQ0NzE1NTIxOWRkMWJkZWU2M2U%3D--d40dbd7aabab1f3143e539562f8bc1287c70510d;
|
|
84
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:25 GMT; secure;
|
|
85
|
+
HttpOnly
|
|
86
|
+
Status:
|
|
87
|
+
- 200 OK
|
|
88
|
+
X-Runtime:
|
|
89
|
+
- '0.082381'
|
|
90
|
+
X-Ua-Compatible:
|
|
91
|
+
- IE=Edge,chrome=1
|
|
92
|
+
Content-Length:
|
|
93
|
+
- '103'
|
|
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}]'
|
|
99
|
+
http_version:
|
|
100
|
+
recorded_at: Wed, 17 Apr 2013 06:27:25 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":"testing id"}'
|
|
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
|
+
- '22'
|
|
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:27:26 GMT
|
|
129
|
+
Location:
|
|
130
|
+
- https://api.parse.com/1/classes/Post/Msj6W7Rhny
|
|
131
|
+
Server:
|
|
132
|
+
- nginx/1.2.2
|
|
133
|
+
Set-Cookie:
|
|
134
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMTRiZjhjZDczZmUzZmE2YTgzNjk5Y2FlN2VkNGY1ZDc%3D--fa7b69d70d16e5308750d2feff92b950b15954a3;
|
|
135
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:26 GMT; secure;
|
|
136
|
+
HttpOnly
|
|
137
|
+
Status:
|
|
138
|
+
- 201 Created
|
|
139
|
+
X-Runtime:
|
|
140
|
+
- '0.026447'
|
|
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:27:26.319Z","objectId":"Msj6W7Rhny"}'
|
|
150
|
+
http_version:
|
|
151
|
+
recorded_at: Wed, 17 Apr 2013 06:27:26 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:49 GMT
|
|
176
|
+
Etag:
|
|
177
|
+
- ! '"d5094eff81461a2a815fdd3c8936eafe"'
|
|
178
|
+
Server:
|
|
179
|
+
- nginx/1.2.2
|
|
180
|
+
Set-Cookie:
|
|
181
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZjQ5MDdhYTViZWMwMTBjNjEyMzdlZjM3MzM0YWMwOTU%3D--2121ecc81902dd37a34b878401fd9ccd62ce94a1;
|
|
182
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:49 GMT; secure;
|
|
183
|
+
HttpOnly
|
|
184
|
+
Status:
|
|
185
|
+
- 200 OK
|
|
186
|
+
X-Runtime:
|
|
187
|
+
- '0.026012'
|
|
188
|
+
X-Ua-Compatible:
|
|
189
|
+
- IE=Edge,chrome=1
|
|
190
|
+
Content-Length:
|
|
191
|
+
- '739'
|
|
192
|
+
Connection:
|
|
193
|
+
- keep-alive
|
|
194
|
+
body:
|
|
195
|
+
encoding: US-ASCII
|
|
196
|
+
string: ! '{"results":[{"title":"each","createdAt":"2013-04-17T20:08:32.442Z","updatedAt":"2013-04-17T20:08:33.178Z","objectId":"3yA87Wlbh2"},{"title":"each","createdAt":"2013-04-17T20:08:32.578Z","updatedAt":"2013-04-17T20:08:33.189Z","objectId":"hwguFj2zr0"},{"title":"each","createdAt":"2013-04-17T20:08:32.732Z","updatedAt":"2013-04-17T20:08:33.200Z","objectId":"8FsBXLDNjA"},{"title":"each","createdAt":"2013-04-17T20:08:33.049Z","updatedAt":"2013-04-17T20:08:33.211Z","objectId":"ndM4WLfC3a"},{"title":"Welcome111","createdAt":"2013-04-17T20:08:47.867Z","updatedAt":"2013-04-17T20:08:47.867Z","objectId":"P2iBxvGPc2"},{"title":"Welcome111","createdAt":"2013-04-17T20:08:48.257Z","updatedAt":"2013-04-17T20:08:48.257Z","objectId":"CfCoI3A79X"}]}'
|
|
197
|
+
http_version:
|
|
198
|
+
recorded_at: Wed, 17 Apr 2013 20:08:49 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/3yA87Wlbh2"},{"method":"DELETE","path":"/1/classes/Post/hwguFj2zr0"},{"method":"DELETE","path":"/1/classes/Post/8FsBXLDNjA"},{"method":"DELETE","path":"/1/classes/Post/ndM4WLfC3a"},{"method":"DELETE","path":"/1/classes/Post/P2iBxvGPc2"},{"method":"DELETE","path":"/1/classes/Post/CfCoI3A79X"}]}'
|
|
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
|
+
- '350'
|
|
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:49 GMT
|
|
227
|
+
Etag:
|
|
228
|
+
- ! '"bb297b0b166dd74e79c22967fd41f543"'
|
|
229
|
+
Server:
|
|
230
|
+
- nginx/1.2.2
|
|
231
|
+
Set-Cookie:
|
|
232
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWZjYmJmNDQ3YWM1MjY5ZjIxZDdlMTE1MjJiM2FhYzE%3D--1dc5fc0f87a921978987847e212d80ad259d8ce3;
|
|
233
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:49 GMT; secure;
|
|
234
|
+
HttpOnly
|
|
235
|
+
Status:
|
|
236
|
+
- 200 OK
|
|
237
|
+
X-Runtime:
|
|
238
|
+
- '0.093506'
|
|
239
|
+
X-Ua-Compatible:
|
|
240
|
+
- IE=Edge,chrome=1
|
|
241
|
+
Content-Length:
|
|
242
|
+
- '103'
|
|
243
|
+
Connection:
|
|
244
|
+
- keep-alive
|
|
245
|
+
body:
|
|
246
|
+
encoding: US-ASCII
|
|
247
|
+
string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
|
|
248
|
+
http_version:
|
|
249
|
+
recorded_at: Wed, 17 Apr 2013 20:08:49 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
|
-
-
|
|
277
|
+
- Wed, 17 Apr 2013 20:08:49 GMT
|
|
35
278
|
Location:
|
|
36
|
-
- https://api.parse.com/1/classes/Post/
|
|
279
|
+
- https://api.parse.com/1/classes/Post/RdzfM2zluX
|
|
37
280
|
Server:
|
|
38
281
|
- nginx/1.2.2
|
|
39
282
|
Set-Cookie:
|
|
40
|
-
- _parse_session=
|
|
41
|
-
domain=.parse.com; path=/; expires=
|
|
283
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWY5YmMyM2U5OTdmZGE3YTU1YWIxMzdmMTFiYTgxNzI%3D--f1d9d8b7f42a61b54e0f429c1a80bbd0261681d5;
|
|
284
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:49 GMT; secure;
|
|
285
|
+
HttpOnly
|
|
42
286
|
Status:
|
|
43
287
|
- 201 Created
|
|
44
288
|
X-Runtime:
|
|
45
|
-
- '0.
|
|
289
|
+
- '0.188792'
|
|
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":"
|
|
298
|
+
string: ! '{"createdAt":"2013-04-17T20:08:49.637Z","objectId":"RdzfM2zluX"}'
|
|
55
299
|
http_version:
|
|
56
|
-
recorded_at:
|
|
57
|
-
recorded_with: VCR 2.
|
|
300
|
+
recorded_at: Wed, 17 Apr 2013 20:08:49 GMT
|
|
301
|
+
recorded_with: VCR 2.4.0
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/installations?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:34:54 GMT
|
|
27
|
+
Etag:
|
|
28
|
+
- ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
|
|
29
|
+
Server:
|
|
30
|
+
- nginx/1.2.2
|
|
31
|
+
Set-Cookie:
|
|
32
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjlmN2RjNWIwMjZhOGJkZWVhMzQ1MGY4MDg2ZjRjNTg%3D--1fc2713143d65ee46eb432242ba8f51c49c9e3ba;
|
|
33
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:34:54 GMT; secure;
|
|
34
|
+
HttpOnly
|
|
35
|
+
Status:
|
|
36
|
+
- 200 OK
|
|
37
|
+
X-Runtime:
|
|
38
|
+
- '0.039163'
|
|
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:34:54 GMT
|
|
50
|
+
- request:
|
|
51
|
+
method: post
|
|
52
|
+
uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/installations
|
|
53
|
+
body:
|
|
54
|
+
encoding: UTF-8
|
|
55
|
+
string: ! '{"deviceType":"ios","deviceToken":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","channels":[""]}'
|
|
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
|
+
- '117'
|
|
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:34:54 GMT
|
|
78
|
+
Location:
|
|
79
|
+
- https://api.parse.com/1/installations/0Tfxrd3z3T
|
|
80
|
+
Server:
|
|
81
|
+
- nginx/1.2.2
|
|
82
|
+
Set-Cookie:
|
|
83
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTk3M2FmZjVkOWIyNzcyMWM4ODE1OTE4ZDlkMGYxODI%3D--8e32f2782ef7ecffdf7e8fdd849eb07c5c8ab290;
|
|
84
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 07:34:54 GMT; secure;
|
|
85
|
+
HttpOnly
|
|
86
|
+
Status:
|
|
87
|
+
- 201 Created
|
|
88
|
+
X-Runtime:
|
|
89
|
+
- '0.043084'
|
|
90
|
+
X-Ua-Compatible:
|
|
91
|
+
- IE=Edge,chrome=1
|
|
92
|
+
Content-Length:
|
|
93
|
+
- '64'
|
|
94
|
+
Connection:
|
|
95
|
+
- keep-alive
|
|
96
|
+
body:
|
|
97
|
+
encoding: US-ASCII
|
|
98
|
+
string: ! '{"createdAt":"2013-04-17T07:34:54.915Z","objectId":"0Tfxrd3z3T"}'
|
|
99
|
+
http_version:
|
|
100
|
+
recorded_at: Wed, 17 Apr 2013 07:34:54 GMT
|
|
101
|
+
- request:
|
|
102
|
+
method: get
|
|
103
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/installations?where=%7B%7D
|
|
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 20:09:19 GMT
|
|
125
|
+
Etag:
|
|
126
|
+
- ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
|
|
127
|
+
Server:
|
|
128
|
+
- nginx/1.2.2
|
|
129
|
+
Set-Cookie:
|
|
130
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmFkNThmMzNhOWI4ZjQ0ZTM3MmE5YWM0YjQ1YjZmMDM%3D--121343682b25f2b6009659d49eb727fb6dc39d1d;
|
|
131
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:19 GMT; secure;
|
|
132
|
+
HttpOnly
|
|
133
|
+
Status:
|
|
134
|
+
- 200 OK
|
|
135
|
+
X-Runtime:
|
|
136
|
+
- '0.264886'
|
|
137
|
+
X-Ua-Compatible:
|
|
138
|
+
- IE=Edge,chrome=1
|
|
139
|
+
Content-Length:
|
|
140
|
+
- '14'
|
|
141
|
+
Connection:
|
|
142
|
+
- keep-alive
|
|
143
|
+
body:
|
|
144
|
+
encoding: US-ASCII
|
|
145
|
+
string: ! '{"results":[]}'
|
|
146
|
+
http_version:
|
|
147
|
+
recorded_at: Wed, 17 Apr 2013 20:09:19 GMT
|
|
148
|
+
- request:
|
|
149
|
+
method: post
|
|
150
|
+
uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/installations
|
|
151
|
+
body:
|
|
152
|
+
encoding: UTF-8
|
|
153
|
+
string: ! '{"deviceType":"ios","deviceToken":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","channels":[""]}'
|
|
154
|
+
headers:
|
|
155
|
+
Accept:
|
|
156
|
+
- ! '*/*; q=0.5, application/xml'
|
|
157
|
+
Accept-Encoding:
|
|
158
|
+
- gzip, deflate
|
|
159
|
+
Content-Type:
|
|
160
|
+
- application/json
|
|
161
|
+
Content-Length:
|
|
162
|
+
- '117'
|
|
163
|
+
User-Agent:
|
|
164
|
+
- Ruby
|
|
165
|
+
response:
|
|
166
|
+
status:
|
|
167
|
+
code: 201
|
|
168
|
+
message: Created
|
|
169
|
+
headers:
|
|
170
|
+
Cache-Control:
|
|
171
|
+
- no-cache
|
|
172
|
+
Content-Type:
|
|
173
|
+
- application/json; charset=utf-8
|
|
174
|
+
Date:
|
|
175
|
+
- Wed, 17 Apr 2013 20:09:19 GMT
|
|
176
|
+
Location:
|
|
177
|
+
- https://api.parse.com/1/installations/RKSVgbs6IJ
|
|
178
|
+
Server:
|
|
179
|
+
- nginx/1.2.2
|
|
180
|
+
Set-Cookie:
|
|
181
|
+
- _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWUxZjZhNzg4Yjc4MTZmODFlNWEzYTYxNmY3MzFlOTk%3D--0d2748200503ddc3a3a1847fad77cddb504ede84;
|
|
182
|
+
domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:09:19 GMT; secure;
|
|
183
|
+
HttpOnly
|
|
184
|
+
Status:
|
|
185
|
+
- 201 Created
|
|
186
|
+
X-Runtime:
|
|
187
|
+
- '0.037911'
|
|
188
|
+
X-Ua-Compatible:
|
|
189
|
+
- IE=Edge,chrome=1
|
|
190
|
+
Content-Length:
|
|
191
|
+
- '64'
|
|
192
|
+
Connection:
|
|
193
|
+
- keep-alive
|
|
194
|
+
body:
|
|
195
|
+
encoding: US-ASCII
|
|
196
|
+
string: ! '{"createdAt":"2013-04-17T20:09:19.512Z","objectId":"RKSVgbs6IJ"}'
|
|
197
|
+
http_version:
|
|
198
|
+
recorded_at: Wed, 17 Apr 2013 20:09:19 GMT
|
|
199
|
+
recorded_with: VCR 2.4.0
|