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,150 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"title":"Welcome111"}'
9
+ headers:
10
+ Accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '22'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Wed, 17 Apr 2013 06:27:21 GMT
31
+ Location:
32
+ - https://api.parse.com/1/classes/Post/0TE31S53Tf
33
+ Server:
34
+ - nginx/1.2.2
35
+ Set-Cookie:
36
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMmU0MDcxZGRiMzQ1NzQwNTZhOWIzZDQ0OTA2ZjYzNDA%3D--8bd14afef6e4a03a85dd14fcf510c898754d4194;
37
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:21 GMT; secure;
38
+ HttpOnly
39
+ Status:
40
+ - 201 Created
41
+ X-Runtime:
42
+ - '0.030012'
43
+ X-Ua-Compatible:
44
+ - IE=Edge,chrome=1
45
+ Content-Length:
46
+ - '64'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! '{"createdAt":"2013-04-17T06:27:21.899Z","objectId":"0TE31S53Tf"}'
52
+ http_version:
53
+ recorded_at: Wed, 17 Apr 2013 06:27:21 GMT
54
+ - request:
55
+ method: get
56
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?limit=1&where=%7B%22title%22:%22Welcome111%22%7D
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ Accept:
62
+ - ! '*/*; q=0.5, application/xml'
63
+ Accept-Encoding:
64
+ - gzip, deflate
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:22 GMT
78
+ Etag:
79
+ - ! '"28bbe9b1ddb0da04be2760359817afb9"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWM3NjU1MmNkM2UyYmMyOGMzMDFmY2U4NmNiMmIyZTg%3D--537c846147a810608c87b0e5ddafcca3e9569a8f;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:22 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.033455'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '138'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T06:27:20.364Z","updatedAt":"2013-04-17T06:27:20.364Z","objectId":"fXAyeJ7wuR"}]}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:27:22 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?limit=1&where=%7B%22title%22:%22Welcome111%22%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 06:27:22 GMT
125
+ Etag:
126
+ - ! '"28bbe9b1ddb0da04be2760359817afb9"'
127
+ Server:
128
+ - nginx/1.2.2
129
+ Set-Cookie:
130
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWZhYjU4MDkxZTZjZmE0Y2NiOGQ2NzljOGE4MzVkOTc%3D--70a04b4cdc717843dc16876163182b24b9e3e1b9;
131
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:22 GMT; secure;
132
+ HttpOnly
133
+ Status:
134
+ - 200 OK
135
+ X-Runtime:
136
+ - '0.030605'
137
+ X-Ua-Compatible:
138
+ - IE=Edge,chrome=1
139
+ Content-Length:
140
+ - '138'
141
+ Connection:
142
+ - keep-alive
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T06:27:20.364Z","updatedAt":"2013-04-17T06:27:20.364Z","objectId":"fXAyeJ7wuR"}]}'
146
+ http_version:
147
+ recorded_at: Wed, 17 Apr 2013 06:27:22 GMT
3
148
  - request:
4
149
  method: post
5
150
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +167,24 @@ http_interactions:
22
167
  code: 201
23
168
  message: Created
24
169
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
170
  Cache-Control:
30
171
  - no-cache
31
172
  Content-Type:
32
173
  - application/json; charset=utf-8
33
174
  Date:
34
- - Thu, 20 Sep 2012 04:31:45 GMT
175
+ - Wed, 17 Apr 2013 20:08:48 GMT
35
176
  Location:
36
- - https://api.parse.com/1/classes/Post/HKWHSsET9H
177
+ - https://api.parse.com/1/classes/Post/CfCoI3A79X
37
178
  Server:
38
179
  - nginx/1.2.2
39
180
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWM1ZTQ4OGQyNDAxZDZkY2U3MTEzZDY4NjJjMWEyMDM%3D--42ccad36bbe260f8c2c857e38794c7ce36eb17f6;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTRhOTI4OWNlMzU4ZWFiYjg3Mzk3NzNjY2U0NjcyODk%3D--7884b287b8c0c6a9a712b8d5675ef10be2514d23;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:48 GMT; secure;
183
+ HttpOnly
42
184
  Status:
43
185
  - 201 Created
44
186
  X-Runtime:
45
- - '0.038513'
187
+ - '0.234161'
46
188
  X-Ua-Compatible:
47
189
  - IE=Edge,chrome=1
48
190
  Content-Length:
@@ -51,12 +193,12 @@ http_interactions:
51
193
  - keep-alive
52
194
  body:
53
195
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"}'
196
+ string: ! '{"createdAt":"2013-04-17T20:08:48.257Z","objectId":"CfCoI3A79X"}'
55
197
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
198
+ recorded_at: Wed, 17 Apr 2013 20:08:48 GMT
57
199
  - request:
58
200
  method: get
59
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?limit=1&where=%7B%22title%22:%22Welcome111%22%7D
60
202
  body:
61
203
  encoding: US-ASCII
62
204
  string: ''
@@ -72,41 +214,38 @@ http_interactions:
72
214
  code: 200
73
215
  message: OK
74
216
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
217
  Cache-Control:
80
218
  - max-age=0, private, must-revalidate
81
219
  Content-Type:
82
220
  - application/json; charset=utf-8
83
221
  Date:
84
- - Thu, 20 Sep 2012 04:31:45 GMT
222
+ - Wed, 17 Apr 2013 20:08:48 GMT
85
223
  Etag:
86
- - ! '"71f4d19c72a27b48f594eeabf6b014a9"'
224
+ - ! '"bb5d30fe32aa6f562ae1a0b3ab616a45"'
87
225
  Server:
88
226
  - nginx/1.2.2
89
227
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWJmYTA2NjJiZTY0MjYyNjczNzFiZDNmMDNhZmUzM2M%3D--6fbf1684c04019039f303bda99ddbd7501f3d125;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDcyYmNjYzM4MjBhZjU3NWIyNDNjNzhmZTE0ZGM3ZDQ%3D--bcda5f8c2d35cc5334a1fbeff9cf71cbe0867e80;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:48 GMT; secure;
230
+ HttpOnly
92
231
  Status:
93
232
  - 200 OK
94
233
  X-Runtime:
95
- - '0.027724'
234
+ - '0.047613'
96
235
  X-Ua-Compatible:
97
236
  - IE=Edge,chrome=1
98
237
  Content-Length:
99
- - '263'
238
+ - '138'
100
239
  Connection:
101
240
  - keep-alive
102
241
  body:
103
242
  encoding: US-ASCII
104
- string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:45.557Z","updatedAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
243
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T20:08:48.257Z","updatedAt":"2013-04-17T20:08:48.257Z","objectId":"CfCoI3A79X"}]}'
105
244
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
245
+ recorded_at: Wed, 17 Apr 2013 20:08:48 GMT
107
246
  - request:
108
247
  method: get
109
- uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
248
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?limit=1&where=%7B%22title%22:%22Welcome111%22%7D
110
249
  body:
111
250
  encoding: US-ASCII
112
251
  string: ''
@@ -122,36 +261,33 @@ http_interactions:
122
261
  code: 200
123
262
  message: OK
124
263
  headers:
125
- Access-Control-Allow-Origin:
126
- - https://parse.com, https://www.parse.com
127
- Access-Control-Request-Method:
128
- - ! '*'
129
264
  Cache-Control:
130
265
  - max-age=0, private, must-revalidate
131
266
  Content-Type:
132
267
  - application/json; charset=utf-8
133
268
  Date:
134
- - Thu, 20 Sep 2012 04:31:45 GMT
269
+ - Wed, 17 Apr 2013 20:08:48 GMT
135
270
  Etag:
136
- - ! '"71f4d19c72a27b48f594eeabf6b014a9"'
271
+ - ! '"bb5d30fe32aa6f562ae1a0b3ab616a45"'
137
272
  Server:
138
273
  - nginx/1.2.2
139
274
  Set-Cookie:
140
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2EzNDM4MDlkMTZhOTgxYmI5OTYxZDUxM2MwNzhlOTk%3D--243e4d8590e49510bb4a6b2f80b0f3b7a5fc4fe9;
141
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
275
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjBkNGUxYjIzODZlNmVhMDhlOGRhNTEzMjcwYzkyZWE%3D--3d3f3c367d2514ff72aa3ef765c684f42e29b282;
276
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:48 GMT; secure;
277
+ HttpOnly
142
278
  Status:
143
279
  - 200 OK
144
280
  X-Runtime:
145
- - '0.022508'
281
+ - '0.033279'
146
282
  X-Ua-Compatible:
147
283
  - IE=Edge,chrome=1
148
284
  Content-Length:
149
- - '263'
285
+ - '138'
150
286
  Connection:
151
287
  - keep-alive
152
288
  body:
153
289
  encoding: US-ASCII
154
- string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:45.557Z","updatedAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
290
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2013-04-17T20:08:48.257Z","updatedAt":"2013-04-17T20:08:48.257Z","objectId":"CfCoI3A79X"}]}'
155
291
  http_version:
156
- recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
157
- recorded_with: VCR 2.2.4
292
+ recorded_at: Wed, 17 Apr 2013 20:08:48 GMT
293
+ recorded_with: VCR 2.4.0
@@ -1,5 +1,248 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Fork?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:23 GMT
27
+ Etag:
28
+ - ! '"b0fa95f6b208a96b95043ed1c19cd380"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2ViZjJjMGY4ZTIwYjMyOGM4N2UzOGUzNjlmYzQ4OGU%3D--ff8edc0b7d79707822830aab67f41634b437a788;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:23 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.106669'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '136'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"points":"firsttt","createdAt":"2013-04-17T04:04:23.222Z","updatedAt":"2013-04-17T04:04:23.222Z","objectId":"1ObCJCnPd0"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:27:23 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/Fork/1ObCJCnPd0"}]}'
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:27:23 GMT
78
+ Etag:
79
+ - ! '"6abe125b20486fefa07552105cea58f3"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDc4MWI4ZmMxOWYxMGQ5YTVmZWMxMjdiNTdkYTJmZTg%3D--7c897e66e97aa4e845b81475c7d60c8495fc8306;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:23 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.057973'
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:27:23 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Fork
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"points":"firsttt"}'
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
+ - '20'
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:24 GMT
129
+ Location:
130
+ - https://api.parse.com/1/classes/Fork/qiAA5Bo9OY
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTc0NWY4YmIyNjRjMmRjMTQ3NDQwZGYwOGYwOGY2OWY%3D--c48a833f25a2c770b0c08c2da3b6619b50ddb727;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:24 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 201 Created
139
+ X-Runtime:
140
+ - '0.032898'
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:24.362Z","objectId":"qiAA5Bo9OY"}'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:27:24 GMT
152
+ - request:
153
+ method: get
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Fork?limit=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 06:27:24 GMT
176
+ Etag:
177
+ - ! '"c9758b4af6b444f350d292f6a5367e21"'
178
+ Server:
179
+ - nginx/1.2.2
180
+ Set-Cookie:
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzk3MzI5MTgxNGE0MzlkNTUxMmZlZjBmMTNiZmM4ZmI%3D--9e34c5c7dc9042b42c2b5843093a01c2c93280ba;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:27:24 GMT; secure;
183
+ HttpOnly
184
+ Status:
185
+ - 200 OK
186
+ X-Runtime:
187
+ - '0.027979'
188
+ X-Ua-Compatible:
189
+ - IE=Edge,chrome=1
190
+ Content-Length:
191
+ - '136'
192
+ Connection:
193
+ - keep-alive
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ! '{"results":[{"points":"firsttt","createdAt":"2013-04-17T06:27:24.362Z","updatedAt":"2013-04-17T06:27:24.362Z","objectId":"qiAA5Bo9OY"}]}'
197
+ http_version:
198
+ recorded_at: Wed, 17 Apr 2013 06:27:24 GMT
199
+ - request:
200
+ method: get
201
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Fork?where=%7B%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 20:08:48 GMT
223
+ Etag:
224
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
225
+ Server:
226
+ - nginx/1.2.2
227
+ Set-Cookie:
228
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZTU5ZmQwNjc5OTliNTViYTQ3Mzg5MGFjNTY1ZGI3MGM%3D--db37d7ff2c02abf5f6a4c4e006202480fe69202d;
229
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:48 GMT; secure;
230
+ HttpOnly
231
+ Status:
232
+ - 200 OK
233
+ X-Runtime:
234
+ - '0.026809'
235
+ X-Ua-Compatible:
236
+ - IE=Edge,chrome=1
237
+ Content-Length:
238
+ - '14'
239
+ Connection:
240
+ - keep-alive
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"results":[]}'
244
+ http_version:
245
+ recorded_at: Wed, 17 Apr 2013 20:08:48 GMT
3
246
  - request:
4
247
  method: post
5
248
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Fork
@@ -22,27 +265,24 @@ http_interactions:
22
265
  code: 201
23
266
  message: Created
24
267
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
268
  Cache-Control:
30
269
  - no-cache
31
270
  Content-Type:
32
271
  - application/json; charset=utf-8
33
272
  Date:
34
- - Thu, 20 Sep 2012 04:31:46 GMT
273
+ - Wed, 17 Apr 2013 20:08:49 GMT
35
274
  Location:
36
- - https://api.parse.com/1/classes/Fork/0ovCIsfae8
275
+ - https://api.parse.com/1/classes/Fork/xllXDC3x9g
37
276
  Server:
38
277
  - nginx/1.2.2
39
278
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2NjMGZjYjVkMzE1NTRlNjM0YzE3NzU1MzRmOTkyODQ%3D--81384f7ca942dd68ee11c3edf9e5ae60af7cafe2;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:46 GMT; HttpOnly
279
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWY3MmY4ZThkOTFmODFjNjE2ZjljODZiZGE1MTQ5ZjQ%3D--71b2640dc3ef9491ec7f8bbdea7c9533552a26b3;
280
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:49 GMT; secure;
281
+ HttpOnly
42
282
  Status:
43
283
  - 201 Created
44
284
  X-Runtime:
45
- - '0.021625'
285
+ - '0.092244'
46
286
  X-Ua-Compatible:
47
287
  - IE=Edge,chrome=1
48
288
  Content-Length:
@@ -51,9 +291,9 @@ http_interactions:
51
291
  - keep-alive
52
292
  body:
53
293
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:46.173Z","objectId":"0ovCIsfae8"}'
294
+ string: ! '{"createdAt":"2013-04-17T20:08:49.050Z","objectId":"xllXDC3x9g"}'
55
295
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
296
+ recorded_at: Wed, 17 Apr 2013 20:08:49 GMT
57
297
  - request:
58
298
  method: get
59
299
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Fork?limit=1&where=%7B%7D
@@ -72,27 +312,24 @@ http_interactions:
72
312
  code: 200
73
313
  message: OK
74
314
  headers:
75
- Access-Control-Allow-Origin:
76
- - https://parse.com, https://www.parse.com
77
- Access-Control-Request-Method:
78
- - ! '*'
79
315
  Cache-Control:
80
316
  - max-age=0, private, must-revalidate
81
317
  Content-Type:
82
318
  - application/json; charset=utf-8
83
319
  Date:
84
- - Thu, 20 Sep 2012 04:31:46 GMT
320
+ - Wed, 17 Apr 2013 20:08:49 GMT
85
321
  Etag:
86
- - ! '"510c294415b5ec815aef772b68cf6f16"'
322
+ - ! '"dc3881a4d9e6c46ad6ed7838225b2c3e"'
87
323
  Server:
88
324
  - nginx/1.2.2
89
325
  Set-Cookie:
90
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzc3YzZlOTBlNDNmYzIyY2RkNTU3OTBkOGZkOTdkN2I%3D--9ef17c9204fb392d2c9fc5c74169c22a258230b8;
91
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:46 GMT; HttpOnly
326
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzY4ZGEyZWFhOTZkOGNlZDE2OGI4ZjQ2ZjVkZGVlODQ%3D--2c3c671b6ad33385765b2eb6d6f0220c9b5c8e6f;
327
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:49 GMT; secure;
328
+ HttpOnly
92
329
  Status:
93
330
  - 200 OK
94
331
  X-Runtime:
95
- - '0.021159'
332
+ - '0.025855'
96
333
  X-Ua-Compatible:
97
334
  - IE=Edge,chrome=1
98
335
  Content-Length:
@@ -101,7 +338,7 @@ http_interactions:
101
338
  - keep-alive
102
339
  body:
103
340
  encoding: US-ASCII
104
- string: ! '{"results":[{"points":"firsttt","createdAt":"2012-09-20T04:31:46.173Z","updatedAt":"2012-09-20T04:31:46.173Z","objectId":"0ovCIsfae8"}]}'
341
+ string: ! '{"results":[{"points":"firsttt","createdAt":"2013-04-17T20:08:49.050Z","updatedAt":"2013-04-17T20:08:49.050Z","objectId":"xllXDC3x9g"}]}'
105
342
  http_version:
106
- recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
107
- recorded_with: VCR 2.2.4
343
+ recorded_at: Wed, 17 Apr 2013 20:08:49 GMT
344
+ recorded_with: VCR 2.4.0