parse-ruby-client 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/.travis.yml +3 -2
  2. data/Gemfile +12 -12
  3. data/Gemfile.lock +26 -12
  4. data/OLD_README.md +255 -0
  5. data/README.md +1038 -144
  6. data/Rakefile +2 -10
  7. data/VERSION +1 -1
  8. data/features.md +11 -11
  9. data/fixtures/vcr_cassettes/test_acls_arent_objects.yml +180 -0
  10. data/fixtures/vcr_cassettes/test_array_add.yml +20 -20
  11. data/fixtures/vcr_cassettes/test_array_add_pointerizing.yml +239 -0
  12. data/fixtures/vcr_cassettes/test_array_add_unique.yml +180 -0
  13. data/fixtures/vcr_cassettes/test_batch_create_object.yml +53 -80
  14. data/fixtures/vcr_cassettes/test_batch_delete_object.yml +303 -428
  15. data/fixtures/vcr_cassettes/test_batch_run.yml +53 -74
  16. data/fixtures/vcr_cassettes/test_batch_update_object.yml +303 -432
  17. data/fixtures/vcr_cassettes/test_circular_save.yml +121 -0
  18. data/fixtures/vcr_cassettes/test_created_at.yml +53 -74
  19. data/fixtures/vcr_cassettes/test_decrement.yml +121 -0
  20. data/fixtures/vcr_cassettes/test_deep_parse.yml +154 -218
  21. data/fixtures/vcr_cassettes/test_destroy.yml +104 -144
  22. data/fixtures/vcr_cassettes/test_eq_pointerize.yml +239 -0
  23. data/fixtures/vcr_cassettes/test_equality.yml +180 -0
  24. data/fixtures/vcr_cassettes/test_get.yml +104 -146
  25. data/fixtures/vcr_cassettes/test_get_missing.yml +60 -0
  26. data/fixtures/vcr_cassettes/test_include.yml +27 -27
  27. data/fixtures/vcr_cassettes/test_new_model.yml +53 -146
  28. data/fixtures/vcr_cassettes/test_new_object.yml +53 -74
  29. data/fixtures/vcr_cassettes/test_nils_delete_keys.yml +155 -216
  30. data/fixtures/vcr_cassettes/test_parse_delete.yml +204 -284
  31. data/fixtures/vcr_cassettes/test_pointer.yml +53 -74
  32. data/fixtures/vcr_cassettes/test_save_with_sub_objects.yml +298 -0
  33. data/fixtures/vcr_cassettes/test_saving_boolean_values.yml +121 -0
  34. data/fixtures/vcr_cassettes/test_server_update.yml +257 -358
  35. data/fixtures/vcr_cassettes/test_simple_save.yml +53 -74
  36. data/fixtures/vcr_cassettes/test_text_file_save.yml +53 -161
  37. data/fixtures/vcr_cassettes/test_update.yml +104 -144
  38. data/fixtures/vcr_cassettes/test_updated_at.yml +104 -144
  39. data/fixtures/vcr_cassettes/test_user_save.yml +10 -10
  40. data/lib/parse/client.rb +43 -6
  41. data/lib/parse/datatypes.rb +14 -35
  42. data/lib/parse/error.rb +8 -0
  43. data/lib/parse/object.rb +25 -20
  44. data/lib/parse/protocol.rb +3 -4
  45. data/lib/parse/query.rb +10 -9
  46. data/lib/parse/util.rb +36 -2
  47. data/parse-ruby-client.gemspec +22 -18
  48. data/test/helper.rb +33 -5
  49. data/test/test_batch.rb +1 -4
  50. data/test/test_client.rb +59 -7
  51. data/test/test_cloud.rb +3 -7
  52. data/test/test_datatypes.rb +6 -7
  53. data/test/test_file.rb +9 -10
  54. data/test/test_model.rb +1 -4
  55. data/test/test_object.rb +148 -6
  56. data/test/test_push.rb +1 -5
  57. data/test/test_query.rb +13 -3
  58. data/test/test_throttle.rb +1 -3
  59. data/test/test_user.rb +1 -5
  60. metadata +23 -19
  61. data/fixtures/vcr_cassettes/test_array_add_relation.yml +0 -321
  62. data/fixtures/vcr_cassettes/test_cloud_function.yml +0 -81
  63. data/fixtures/vcr_cassettes/test_file_save.yml +0 -87
  64. data/fixtures/vcr_cassettes/test_image_file_associate_with_object.yml +0 -2034
  65. data/fixtures/vcr_cassettes/test_image_file_save.yml +0 -1957
  66. data/fixtures/vcr_cassettes/test_object_id.yml +0 -83
  67. data/fixtures/vcr_cassettes/test_request_batch.yml +0 -62
@@ -1,241 +1,180 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: https://api.parse.com/1/classes/Post
6
- body:
6
+ body:
7
7
  encoding: UTF-8
8
- string: ! '{"title":"hello"}'
9
- headers:
10
- Content-Type:
8
+ string: "{\"title\":\"hello\"}"
9
+ headers:
10
+ Content-Type:
11
11
  - application/json
12
- Accept:
12
+ Accept:
13
13
  - application/json
14
- User-Agent:
14
+ User-Agent:
15
15
  - Parse for Ruby, 0.0
16
- X-Parse-Master-Key:
17
- - ''
18
- X-Parse-Rest-Api-Key:
19
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
20
- X-Parse-Application-Id:
21
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
22
- X-Parse-Session-Token:
23
- - ''
24
- Expect:
25
- - ''
26
- response:
27
- status:
16
+ X-Parse-Master-Key:
17
+ - ""
18
+ X-Parse-Rest-Api-Key:
19
+ - <X-Parse-REST-API-Key>
20
+ X-Parse-Application-Id:
21
+ - <X-Parse-Application-Id>
22
+ X-Parse-Session-Token:
23
+ - ""
24
+ Expect:
25
+ - ""
26
+ response:
27
+ status:
28
28
  code: 201
29
- message: !binary |-
30
- Q3JlYXRlZA==
31
- headers:
32
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
33
- - !binary |-
34
- Kg==
35
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
36
- - !binary |-
37
- Kg==
38
- !binary "Q2FjaGUtQ29udHJvbA==":
39
- - !binary |-
40
- bm8tY2FjaGU=
41
- !binary "Q29udGVudC1UeXBl":
42
- - !binary |-
43
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
44
- !binary "RGF0ZQ==":
45
- - !binary |-
46
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
47
- !binary "TG9jYXRpb24=":
48
- - !binary |-
49
- aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy9Qb3N0L3g5Tmk5RkM2
50
- clU=
51
- !binary "U2VydmVy":
52
- - !binary |-
53
- bmdpbngvMS4yLjI=
54
- !binary "U2V0LUNvb2tpZQ==":
55
- - !binary |-
56
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
57
- SWxaR0poWkdJM05EQm1OVFkwT1RZd1lXVmlObU5tTlRkbVkySXpPVGRtWTJF
58
- JTNELS05YzRkMTE3M2ZkZDI4ODcyNzU3NmUxOTIzOWM3MmIxN2Q0N2MxMDkw
59
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
60
- T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
61
- !binary "U3RhdHVz":
62
- - !binary |-
63
- MjAxIENyZWF0ZWQ=
64
- !binary "WC1SdW50aW1l":
65
- - !binary |-
66
- MC4wMTU4OTA=
67
- !binary "WC1VYS1Db21wYXRpYmxl":
68
- - !binary |-
69
- SUU9RWRnZSxjaHJvbWU9MQ==
70
- !binary "Q29udGVudC1MZW5ndGg=":
71
- - !binary |-
72
- NjQ=
73
- !binary "Q29ubmVjdGlvbg==":
74
- - !binary |-
75
- a2VlcC1hbGl2ZQ==
76
- body:
29
+ message: Created
30
+ headers:
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Request-Method:
34
+ - "*"
35
+ Cache-Control:
36
+ - no-cache
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Date:
40
+ - Mon, 22 Apr 2013 16:03:19 GMT
41
+ Location:
42
+ - https://api.parse.com/1/classes/Post/foSiAYPyDd
43
+ Server:
44
+ - nginx/1.2.2
45
+ Set-Cookie:
46
+ - <COOKIE-KEY>
47
+ Status:
48
+ - 201 Created
49
+ X-Runtime:
50
+ - "0.116334"
51
+ X-Ua-Compatible:
52
+ - IE=Edge,chrome=1
53
+ Content-Length:
54
+ - "64"
55
+ Connection:
56
+ - keep-alive
57
+ body:
77
58
  encoding: ASCII-8BIT
78
- string: !binary |-
79
- eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjIxN1oiLCJvYmpl
80
- Y3RJZCI6Ing5Tmk5RkM2clUifQ==
59
+ string: "{\"createdAt\":\"2013-04-22T16:03:19.904Z\",\"objectId\":\"foSiAYPyDd\"}"
81
60
  http_version:
82
- recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
83
- - request:
61
+ recorded_at: Mon, 22 Apr 2013 16:03:19 GMT
62
+ - request:
84
63
  method: put
85
- uri: https://api.parse.com/1/classes/Post/x9Ni9FC6rU
86
- body:
64
+ uri: https://api.parse.com/1/classes/Post/foSiAYPyDd
65
+ body:
87
66
  encoding: UTF-8
88
- string: ! '{"title":{"__op":"Delete"}}'
89
- headers:
90
- Content-Type:
67
+ string: "{\"title\":{\"__op\":\"Delete\"}}"
68
+ headers:
69
+ Content-Type:
91
70
  - application/json
92
- Accept:
71
+ Accept:
93
72
  - application/json
94
- User-Agent:
73
+ User-Agent:
95
74
  - Parse for Ruby, 0.0
96
- X-Parse-Master-Key:
97
- - ''
98
- X-Parse-Rest-Api-Key:
99
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
100
- X-Parse-Application-Id:
101
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
102
- X-Parse-Session-Token:
103
- - ''
104
- Expect:
105
- - ''
106
- response:
107
- status:
75
+ X-Parse-Master-Key:
76
+ - ""
77
+ X-Parse-Rest-Api-Key:
78
+ - <X-Parse-REST-API-Key>
79
+ X-Parse-Application-Id:
80
+ - <X-Parse-Application-Id>
81
+ X-Parse-Session-Token:
82
+ - ""
83
+ Expect:
84
+ - ""
85
+ response:
86
+ status:
108
87
  code: 200
109
- message: !binary |-
110
- T0s=
111
- headers:
112
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
113
- - !binary |-
114
- Kg==
115
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
116
- - !binary |-
117
- Kg==
118
- !binary "Q2FjaGUtQ29udHJvbA==":
119
- - !binary |-
120
- bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
121
- !binary "Q29udGVudC1UeXBl":
122
- - !binary |-
123
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
124
- !binary "RGF0ZQ==":
125
- - !binary |-
126
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
127
- !binary "RXRhZw==":
128
- - !binary |-
129
- ImMzMTVlMGI3MjQ1Mzg5NTNhODg1NDA3Y2U3NjE5M2JhIg==
130
- !binary "U2VydmVy":
131
- - !binary |-
132
- bmdpbngvMS4yLjI=
133
- !binary "U2V0LUNvb2tpZQ==":
134
- - !binary |-
135
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
136
- SWxOVEppWmpkbVlqbGlPVEExTlRBNVlUQmhabVV3T1dVeVpUVTROV1l4WVRJ
137
- JTNELS02YmQzOTUzNmViOTM3NzBkN2JhYmE4YTM5N2E0ZTM1NjJlNDNhN2E1
138
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
139
- T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
140
- !binary "U3RhdHVz":
141
- - !binary |-
142
- MjAwIE9L
143
- !binary "WC1SdW50aW1l":
144
- - !binary |-
145
- MC4wNDEzOTI=
146
- !binary "WC1VYS1Db21wYXRpYmxl":
147
- - !binary |-
148
- SUU9RWRnZSxjaHJvbWU9MQ==
149
- !binary "Q29udGVudC1MZW5ndGg=":
150
- - !binary |-
151
- NDA=
152
- !binary "Q29ubmVjdGlvbg==":
153
- - !binary |-
154
- a2VlcC1hbGl2ZQ==
155
- body:
88
+ message: OK
89
+ headers:
90
+ Access-Control-Allow-Origin:
91
+ - "*"
92
+ Access-Control-Request-Method:
93
+ - "*"
94
+ Cache-Control:
95
+ - max-age=0, private, must-revalidate
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ Date:
99
+ - Mon, 22 Apr 2013 16:03:21 GMT
100
+ Etag:
101
+ - "\"aefca97cb03076f4ddb34f20565afd80\""
102
+ Server:
103
+ - nginx/1.2.2
104
+ Set-Cookie:
105
+ - <COOKIE-KEY>
106
+ Status:
107
+ - 200 OK
108
+ X-Runtime:
109
+ - "0.918748"
110
+ X-Ua-Compatible:
111
+ - IE=Edge,chrome=1
112
+ Content-Length:
113
+ - "40"
114
+ Connection:
115
+ - keep-alive
116
+ body:
156
117
  encoding: ASCII-8BIT
157
- string: !binary |-
158
- eyJ1cGRhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjMyNVoifQ==
118
+ string: "{\"updatedAt\":\"2013-04-22T16:03:20.599Z\"}"
159
119
  http_version:
160
- recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
161
- - request:
120
+ recorded_at: Mon, 22 Apr 2013 16:03:21 GMT
121
+ - request:
162
122
  method: get
163
- uri: https://api.parse.com/1/classes/Post/x9Ni9FC6rU
164
- body:
123
+ uri: https://api.parse.com/1/classes/Post/foSiAYPyDd
124
+ body:
165
125
  encoding: US-ASCII
166
- string: ''
167
- headers:
168
- Content-Type:
126
+ string: ""
127
+ headers:
128
+ Content-Type:
169
129
  - application/json
170
- Accept:
130
+ Accept:
171
131
  - application/json
172
- User-Agent:
132
+ User-Agent:
173
133
  - Parse for Ruby, 0.0
174
- X-Parse-Master-Key:
175
- - ''
176
- X-Parse-Rest-Api-Key:
177
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
178
- X-Parse-Application-Id:
179
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
180
- X-Parse-Session-Token:
181
- - ''
182
- Expect:
183
- - ''
184
- response:
185
- status:
134
+ X-Parse-Master-Key:
135
+ - ""
136
+ X-Parse-Rest-Api-Key:
137
+ - <X-Parse-REST-API-Key>
138
+ X-Parse-Application-Id:
139
+ - <X-Parse-Application-Id>
140
+ X-Parse-Session-Token:
141
+ - ""
142
+ Expect:
143
+ - ""
144
+ response:
145
+ status:
186
146
  code: 200
187
- message: !binary |-
188
- T0s=
189
- headers:
190
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
191
- - !binary |-
192
- Kg==
193
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
194
- - !binary |-
195
- Kg==
196
- !binary "Q2FjaGUtQ29udHJvbA==":
197
- - !binary |-
198
- bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
199
- !binary "Q29udGVudC1UeXBl":
200
- - !binary |-
201
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
202
- !binary "RGF0ZQ==":
203
- - !binary |-
204
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
205
- !binary "RXRhZw==":
206
- - !binary |-
207
- IjU4YWU4OWE5OWYwZWNhODBkMjJmY2JkZWQzYzczYzIwIg==
208
- !binary "U2VydmVy":
209
- - !binary |-
210
- bmdpbngvMS4yLjI=
211
- !binary "U2V0LUNvb2tpZQ==":
212
- - !binary |-
213
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
214
- SWxZbUpsWWpCalkySm1aVEEwTkRObU5tWXdPR1JtTTJGaE16YzFNR0ZpTXpJ
215
- JTNELS1lOWFiYmZjNjhlOTNlM2U0NGMzZDEyZWFkNDZhNDg0MzdkMjhkOGVh
216
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
217
- T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
218
- !binary "U3RhdHVz":
219
- - !binary |-
220
- MjAwIE9L
221
- !binary "WC1SdW50aW1l":
222
- - !binary |-
223
- MC4wMzg5OTg=
224
- !binary "WC1VYS1Db21wYXRpYmxl":
225
- - !binary |-
226
- SUU9RWRnZSxjaHJvbWU9MQ==
227
- !binary "Q29udGVudC1MZW5ndGg=":
228
- - !binary |-
229
- MTAz
230
- !binary "Q29ubmVjdGlvbg==":
231
- - !binary |-
232
- a2VlcC1hbGl2ZQ==
233
- body:
147
+ message: OK
148
+ headers:
149
+ Access-Control-Allow-Origin:
150
+ - "*"
151
+ Access-Control-Request-Method:
152
+ - "*"
153
+ Cache-Control:
154
+ - max-age=0, private, must-revalidate
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Date:
158
+ - Mon, 22 Apr 2013 16:03:21 GMT
159
+ Etag:
160
+ - "\"2e2febffbd6f760384d5d25c05c6f3c0\""
161
+ Server:
162
+ - nginx/1.2.2
163
+ Set-Cookie:
164
+ - <COOKIE-KEY>
165
+ Status:
166
+ - 200 OK
167
+ X-Runtime:
168
+ - "0.396514"
169
+ X-Ua-Compatible:
170
+ - IE=Edge,chrome=1
171
+ Content-Length:
172
+ - "103"
173
+ Connection:
174
+ - keep-alive
175
+ body:
234
176
  encoding: ASCII-8BIT
235
- string: !binary |-
236
- eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjIxN1oiLCJ1cGRh
237
- dGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjMyNVoiLCJvYmplY3RJZCI6
238
- Ing5Tmk5RkM2clUifQ==
177
+ string: "{\"createdAt\":\"2013-04-22T16:03:19.904Z\",\"updatedAt\":\"2013-04-22T16:03:20.599Z\",\"objectId\":\"foSiAYPyDd\"}"
239
178
  http_version:
240
- recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
241
- recorded_with: VCR 2.0.1
179
+ recorded_at: Mon, 22 Apr 2013 16:03:21 GMT
180
+ recorded_with: VCR 2.4.0
@@ -1,317 +1,237 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: https://api.parse.com/1/classes/Post
6
- body:
6
+ body:
7
7
  encoding: UTF-8
8
- string: ! '{}'
9
- headers:
10
- Content-Type:
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
11
  - application/json
12
- Accept:
12
+ Accept:
13
13
  - application/json
14
- User-Agent:
14
+ User-Agent:
15
15
  - Parse for Ruby, 0.0
16
- X-Parse-Master-Key:
17
- - ''
18
- X-Parse-Rest-Api-Key:
19
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
20
- X-Parse-Application-Id:
21
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
22
- X-Parse-Session-Token:
23
- - ''
24
- Expect:
25
- - ''
26
- response:
27
- status:
16
+ X-Parse-Master-Key:
17
+ - ""
18
+ X-Parse-Rest-Api-Key:
19
+ - <X-Parse-REST-API-Key>
20
+ X-Parse-Application-Id:
21
+ - <X-Parse-Application-Id>
22
+ X-Parse-Session-Token:
23
+ - ""
24
+ Expect:
25
+ - ""
26
+ response:
27
+ status:
28
28
  code: 201
29
- message: !binary |-
30
- Q3JlYXRlZA==
31
- headers:
32
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
33
- - !binary |-
34
- Kg==
35
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
36
- - !binary |-
37
- Kg==
38
- !binary "Q2FjaGUtQ29udHJvbA==":
39
- - !binary |-
40
- bm8tY2FjaGU=
41
- !binary "Q29udGVudC1UeXBl":
42
- - !binary |-
43
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
44
- !binary "RGF0ZQ==":
45
- - !binary |-
46
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
47
- !binary "TG9jYXRpb24=":
48
- - !binary |-
49
- aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy9Qb3N0L2xzN1lJb2Yy
50
- cUY=
51
- !binary "U2VydmVy":
52
- - !binary |-
53
- bmdpbngvMS4yLjI=
54
- !binary "U2V0LUNvb2tpZQ==":
55
- - !binary |-
56
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
57
- SWxNRGt3WTJGak4yWTNOamxtTVdKbE1qTTBNMkZoTXpnM056RTRPR013TVdR
58
- JTNELS0wMjEwMjZiNGZlYWYwYjY4MjRjMGUyNmI2YWVlMDA5NjNhYTk0ODFk
59
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
60
- T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
61
- !binary "U3RhdHVz":
62
- - !binary |-
63
- MjAxIENyZWF0ZWQ=
64
- !binary "WC1SdW50aW1l":
65
- - !binary |-
66
- MC4yNDc3MDA=
67
- !binary "WC1VYS1Db21wYXRpYmxl":
68
- - !binary |-
69
- SUU9RWRnZSxjaHJvbWU9MQ==
70
- !binary "Q29udGVudC1MZW5ndGg=":
71
- - !binary |-
72
- NjQ=
73
- !binary "Q29ubmVjdGlvbg==":
74
- - !binary |-
75
- a2VlcC1hbGl2ZQ==
76
- body:
29
+ message: Created
30
+ headers:
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Request-Method:
34
+ - "*"
35
+ Cache-Control:
36
+ - no-cache
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Date:
40
+ - Mon, 22 Apr 2013 16:03:22 GMT
41
+ Location:
42
+ - https://api.parse.com/1/classes/Post/70MnUSZb3M
43
+ Server:
44
+ - nginx/1.2.2
45
+ Set-Cookie:
46
+ - <COOKIE-KEY>
47
+ Status:
48
+ - 201 Created
49
+ X-Runtime:
50
+ - "0.141145"
51
+ X-Ua-Compatible:
52
+ - IE=Edge,chrome=1
53
+ Content-Length:
54
+ - "64"
55
+ Connection:
56
+ - keep-alive
57
+ body:
77
58
  encoding: ASCII-8BIT
78
- string: !binary |-
79
- eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjg1NloiLCJvYmpl
80
- Y3RJZCI6ImxzN1lJb2YycUYifQ==
59
+ string: "{\"createdAt\":\"2013-04-22T16:03:22.370Z\",\"objectId\":\"70MnUSZb3M\"}"
81
60
  http_version:
82
- recorded_at: Tue, 09 Oct 2012 21:45:32 GMT
83
- - request:
61
+ recorded_at: Mon, 22 Apr 2013 16:03:22 GMT
62
+ - request:
84
63
  method: get
85
- uri: https://api.parse.com/1/classes/Post/ls7YIof2qF
86
- body:
64
+ uri: https://api.parse.com/1/classes/Post/70MnUSZb3M
65
+ body:
87
66
  encoding: US-ASCII
88
- string: ''
89
- headers:
90
- Content-Type:
67
+ string: ""
68
+ headers:
69
+ Content-Type:
91
70
  - application/json
92
- Accept:
71
+ Accept:
93
72
  - application/json
94
- User-Agent:
73
+ User-Agent:
95
74
  - Parse for Ruby, 0.0
96
- X-Parse-Master-Key:
97
- - ''
98
- X-Parse-Rest-Api-Key:
99
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
100
- X-Parse-Application-Id:
101
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
102
- X-Parse-Session-Token:
103
- - ''
104
- Expect:
105
- - ''
106
- response:
107
- status:
75
+ X-Parse-Master-Key:
76
+ - ""
77
+ X-Parse-Rest-Api-Key:
78
+ - <X-Parse-REST-API-Key>
79
+ X-Parse-Application-Id:
80
+ - <X-Parse-Application-Id>
81
+ X-Parse-Session-Token:
82
+ - ""
83
+ Expect:
84
+ - ""
85
+ response:
86
+ status:
108
87
  code: 200
109
- message: !binary |-
110
- T0s=
111
- headers:
112
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
113
- - !binary |-
114
- Kg==
115
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
116
- - !binary |-
117
- Kg==
118
- !binary "Q2FjaGUtQ29udHJvbA==":
119
- - !binary |-
120
- bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
121
- !binary "Q29udGVudC1UeXBl":
122
- - !binary |-
123
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
124
- !binary "RGF0ZQ==":
125
- - !binary |-
126
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMiBHTVQ=
127
- !binary "RXRhZw==":
128
- - !binary |-
129
- ImM5YzQ4Y2FkMTE0ZGQ0M2Q0YjVlNDVlYjc2ODBlMmJkIg==
130
- !binary "U2VydmVy":
131
- - !binary |-
132
- bmdpbngvMS4yLjI=
133
- !binary "U2V0LUNvb2tpZQ==":
134
- - !binary |-
135
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
136
- SWxZMlV3TmpjMlpEZzNNMlEwWTJFNU5qYzJaakZoWXpJd05tWmxZMk5rT1RB
137
- JTNELS0yNzg2MDU4ZjhlM2EyYmNmYWM5MzJiMmRiN2JkZTg2M2UxMDMwMTgy
138
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
139
- T2N0LTIwMjIgMjE6NDU6MzIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
140
- !binary "U3RhdHVz":
141
- - !binary |-
142
- MjAwIE9L
143
- !binary "WC1SdW50aW1l":
144
- - !binary |-
145
- MC4wMzEyMTM=
146
- !binary "WC1VYS1Db21wYXRpYmxl":
147
- - !binary |-
148
- SUU9RWRnZSxjaHJvbWU9MQ==
149
- !binary "Q29udGVudC1MZW5ndGg=":
150
- - !binary |-
151
- MTAz
152
- !binary "Q29ubmVjdGlvbg==":
153
- - !binary |-
154
- a2VlcC1hbGl2ZQ==
155
- body:
88
+ message: OK
89
+ headers:
90
+ Access-Control-Allow-Origin:
91
+ - "*"
92
+ Access-Control-Request-Method:
93
+ - "*"
94
+ Cache-Control:
95
+ - max-age=0, private, must-revalidate
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ Date:
99
+ - Mon, 22 Apr 2013 16:03:22 GMT
100
+ Etag:
101
+ - "\"3e357ddf5c31a426d297d671f5ffa6ac\""
102
+ Server:
103
+ - nginx/1.2.2
104
+ Set-Cookie:
105
+ - <COOKIE-KEY>
106
+ Status:
107
+ - 200 OK
108
+ X-Runtime:
109
+ - "0.054564"
110
+ X-Ua-Compatible:
111
+ - IE=Edge,chrome=1
112
+ Content-Length:
113
+ - "103"
114
+ Connection:
115
+ - keep-alive
116
+ body:
156
117
  encoding: ASCII-8BIT
157
- string: !binary |-
158
- eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjg1NloiLCJ1cGRh
159
- dGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjg1NloiLCJvYmplY3RJZCI6
160
- ImxzN1lJb2YycUYifQ==
118
+ string: "{\"createdAt\":\"2013-04-22T16:03:22.370Z\",\"updatedAt\":\"2013-04-22T16:03:22.370Z\",\"objectId\":\"70MnUSZb3M\"}"
161
119
  http_version:
162
- recorded_at: Tue, 09 Oct 2012 21:45:32 GMT
163
- - request:
120
+ recorded_at: Mon, 22 Apr 2013 16:03:22 GMT
121
+ - request:
164
122
  method: delete
165
- uri: https://api.parse.com/1/classes/Post/ls7YIof2qF
166
- body:
123
+ uri: https://api.parse.com/1/classes/Post/70MnUSZb3M
124
+ body:
167
125
  encoding: US-ASCII
168
- string: ''
169
- headers:
170
- Content-Type:
126
+ string: ""
127
+ headers:
128
+ Content-Type:
171
129
  - application/json
172
- Accept:
130
+ Accept:
173
131
  - application/json
174
- User-Agent:
132
+ User-Agent:
175
133
  - Parse for Ruby, 0.0
176
- X-Parse-Master-Key:
177
- - ''
178
- X-Parse-Rest-Api-Key:
179
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
180
- X-Parse-Application-Id:
181
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
182
- X-Parse-Session-Token:
183
- - ''
184
- Expect:
185
- - ''
186
- response:
187
- status:
134
+ X-Parse-Master-Key:
135
+ - ""
136
+ X-Parse-Rest-Api-Key:
137
+ - <X-Parse-REST-API-Key>
138
+ X-Parse-Application-Id:
139
+ - <X-Parse-Application-Id>
140
+ X-Parse-Session-Token:
141
+ - ""
142
+ Expect:
143
+ - ""
144
+ response:
145
+ status:
188
146
  code: 200
189
- message: !binary |-
190
- T0s=
191
- headers:
192
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
193
- - !binary |-
194
- Kg==
195
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
196
- - !binary |-
197
- Kg==
198
- !binary "Q2FjaGUtQ29udHJvbA==":
199
- - !binary |-
200
- bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
201
- !binary "Q29udGVudC1UeXBl":
202
- - !binary |-
203
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
204
- !binary "RGF0ZQ==":
205
- - !binary |-
206
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMiBHTVQ=
207
- !binary "RXRhZw==":
208
- - !binary |-
209
- Ijk5OTE0YjkzMmJkMzdhNTBiOTgzYzVlN2M5MGFlOTNiIg==
210
- !binary "U2VydmVy":
211
- - !binary |-
212
- bmdpbngvMS4yLjI=
213
- !binary "U2V0LUNvb2tpZQ==":
214
- - !binary |-
215
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
216
- SWxaVE0xTTJVNE1qZGhNR1UyWlRZMlpEQmlPVE01TnpSaFptTTFNalpsWTJF
217
- JTNELS1mODE4M2U1YmZlYjM0MjRjOWIxNzVlM2NlM2E3Y2JlMTNkOTc3N2Yy
218
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
219
- T2N0LTIwMjIgMjE6NDU6MzIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
220
- !binary "U3RhdHVz":
221
- - !binary |-
222
- MjAwIE9L
223
- !binary "WC1SdW50aW1l":
224
- - !binary |-
225
- MC4wMjk5OTE=
226
- !binary "WC1VYS1Db21wYXRpYmxl":
227
- - !binary |-
228
- SUU9RWRnZSxjaHJvbWU9MQ==
229
- !binary "Q29udGVudC1MZW5ndGg=":
230
- - !binary |-
231
- Mg==
232
- !binary "Q29ubmVjdGlvbg==":
233
- - !binary |-
234
- a2VlcC1hbGl2ZQ==
235
- body:
147
+ message: OK
148
+ headers:
149
+ Access-Control-Allow-Origin:
150
+ - "*"
151
+ Access-Control-Request-Method:
152
+ - "*"
153
+ Cache-Control:
154
+ - max-age=0, private, must-revalidate
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Date:
158
+ - Mon, 22 Apr 2013 16:03:22 GMT
159
+ Etag:
160
+ - "\"99914b932bd37a50b983c5e7c90ae93b\""
161
+ Server:
162
+ - nginx/1.2.2
163
+ Set-Cookie:
164
+ - <COOKIE-KEY>
165
+ Status:
166
+ - 200 OK
167
+ X-Runtime:
168
+ - "0.044459"
169
+ X-Ua-Compatible:
170
+ - IE=Edge,chrome=1
171
+ Content-Length:
172
+ - "2"
173
+ Connection:
174
+ - keep-alive
175
+ body:
236
176
  encoding: ASCII-8BIT
237
- string: !binary |-
238
- e30=
177
+ string: "{}"
239
178
  http_version:
240
- recorded_at: Tue, 09 Oct 2012 21:45:32 GMT
241
- - request:
179
+ recorded_at: Mon, 22 Apr 2013 16:03:22 GMT
180
+ - request:
242
181
  method: get
243
- uri: https://api.parse.com/1/classes/Post/ls7YIof2qF
244
- body:
182
+ uri: https://api.parse.com/1/classes/Post/70MnUSZb3M
183
+ body:
245
184
  encoding: US-ASCII
246
- string: ''
247
- headers:
248
- Content-Type:
185
+ string: ""
186
+ headers:
187
+ Content-Type:
249
188
  - application/json
250
- Accept:
189
+ Accept:
251
190
  - application/json
252
- User-Agent:
191
+ User-Agent:
253
192
  - Parse for Ruby, 0.0
254
- X-Parse-Master-Key:
255
- - ''
256
- X-Parse-Rest-Api-Key:
257
- - D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
258
- X-Parse-Application-Id:
259
- - PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
260
- X-Parse-Session-Token:
261
- - ''
262
- Expect:
263
- - ''
264
- response:
265
- status:
193
+ X-Parse-Master-Key:
194
+ - ""
195
+ X-Parse-Rest-Api-Key:
196
+ - <X-Parse-REST-API-Key>
197
+ X-Parse-Application-Id:
198
+ - <X-Parse-Application-Id>
199
+ X-Parse-Session-Token:
200
+ - ""
201
+ Expect:
202
+ - ""
203
+ response:
204
+ status:
266
205
  code: 404
267
- message: !binary |-
268
- Tm90IEZvdW5k
269
- headers:
270
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
271
- - !binary |-
272
- Kg==
273
- !binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
274
- - !binary |-
275
- Kg==
276
- !binary "Q2FjaGUtQ29udHJvbA==":
277
- - !binary |-
278
- bm8tY2FjaGU=
279
- !binary "Q29udGVudC1UeXBl":
280
- - !binary |-
281
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
282
- !binary "RGF0ZQ==":
283
- - !binary |-
284
- VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMiBHTVQ=
285
- !binary "U2VydmVy":
286
- - !binary |-
287
- bmdpbngvMS4yLjI=
288
- !binary "U2V0LUNvb2tpZQ==":
289
- - !binary |-
290
- X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
291
- SWxNekk0TTJVNU1tTmhOVGN6WkRBMFpUTTBORFUyWldKa1l6STNNV0ZoTmpn
292
- JTNELS05NmQ2MzQ5YjFjZDVjMjRhMmIzODA5NmYyOGVlMDdkN2RlYzIyNjcz
293
- OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
294
- T2N0LTIwMjIgMjE6NDU6MzIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
295
- !binary "U3RhdHVz":
296
- - !binary |-
297
- NDA0IE5vdCBGb3VuZA==
298
- !binary "WC1SdW50aW1l":
299
- - !binary |-
300
- MC4wMjE0NDk=
301
- !binary "WC1VYS1Db21wYXRpYmxl":
302
- - !binary |-
303
- SUU9RWRnZSxjaHJvbWU9MQ==
304
- !binary "Q29udGVudC1MZW5ndGg=":
305
- - !binary |-
306
- NDc=
307
- !binary "Q29ubmVjdGlvbg==":
308
- - !binary |-
309
- a2VlcC1hbGl2ZQ==
310
- body:
206
+ message: Not Found
207
+ headers:
208
+ Access-Control-Allow-Origin:
209
+ - "*"
210
+ Access-Control-Request-Method:
211
+ - "*"
212
+ Cache-Control:
213
+ - no-cache
214
+ Content-Type:
215
+ - application/json; charset=utf-8
216
+ Date:
217
+ - Mon, 22 Apr 2013 16:03:22 GMT
218
+ Server:
219
+ - nginx/1.2.2
220
+ Set-Cookie:
221
+ - <COOKIE-KEY>
222
+ Status:
223
+ - 404 Not Found
224
+ X-Runtime:
225
+ - "0.029217"
226
+ X-Ua-Compatible:
227
+ - IE=Edge,chrome=1
228
+ Content-Length:
229
+ - "47"
230
+ Connection:
231
+ - keep-alive
232
+ body:
311
233
  encoding: ASCII-8BIT
312
- string: !binary |-
313
- eyJjb2RlIjoxMDEsImVycm9yIjoib2JqZWN0IG5vdCBmb3VuZCBmb3IgZ2V0
314
- In0=
234
+ string: "{\"code\":101,\"error\":\"object not found for get\"}"
315
235
  http_version:
316
- recorded_at: Tue, 09 Oct 2012 21:45:32 GMT
317
- recorded_with: VCR 2.0.1
236
+ recorded_at: Mon, 22 Apr 2013 16:03:22 GMT
237
+ recorded_with: VCR 2.4.0