worochi 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +28 -0
- data/circle.yml +19 -0
- data/lib/worochi/version.rb +1 -1
- data/spec/spec_helper.rb +22 -10
- data/spec/worochi/agent/dropbox_spec.rb +3 -4
- data/spec/worochi/agent/github_spec.rb +6 -5
- data/spec/worochi/agent/google_drive_spec.rb +1 -1
- data/worochi.gemspec +6 -3
- metadata +8 -154
- data/spec/cassettes/Worochi/_push/pushes_with_agents.yml +0 -512
- data/spec/cassettes/Worochi_Agent_Dropbox/_list/works_with_absolute_paths.yml +0 -60
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_a_single_item.yml +0 -303
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_it_chunked_if_size_exceeds_limit.yml +0 -1049
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/pushes_a_single_item_in_chunks.yml +0 -349
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/raises_an_error.yml +0 -44
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_items/pushes_multiple_items.yml +0 -165
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +0 -60
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +0 -38
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +0 -155
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +0 -60
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +0 -79
- data/spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/_repos/lists_the_repos.yml +0 -207
- data/spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml +0 -68
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +0 -263
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +0 -133
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_all/pushes_a_list_of_items_to_create_a_new_commit.yml +0 -989
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_all/pushes_the_file_to_the_right_place.yml +0 -687
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_blob/pushes_the_blob_even_when_it_is_larger_than_block_size.yml +0 -181
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_item/pushes_a_single_item_and_makes_a_commit.yml +0 -687
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_stream_blob/streams_the_file_as_an_Base64_JSON_field.yml +0 -181
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_delete/deletes_a_file.yml +0 -4248
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_delete/raises_error_on_bad_token.yml +0 -7889
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_get_item_id/retrieves_the_item_ID.yml +0 -4148
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_get_item_id/returns_the_root_ID.yml +0 -3889
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_insert_file/creates_a_new_folder_to_root.yml +0 -4753
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_insert_file/uploads_a_file.yml +0 -4492
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_push_item/creates_new_directories_as_needed.yml +0 -5961
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_push_item/pushes_a_single_item.yml +0 -3887
- data/spec/cassettes/Worochi_Agent_GoogleDrive/_push_item/raises_error_on_bad_token.yml +0 -7833
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_default_options/has_the_required_options.yml +0 -3889
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +0 -4294
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files/contains_file1.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +0 -4583
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +0 -4294
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +0 -4236
- data/spec/cassettes/Worochi_Agent_GoogleDrive/it_should_behave_like_a_service_agent/_init_client/returns_the_client.yml +0 -7775
- data/spec/cassettes/Worochi_Item/_content_type/detects_the_MIME_type.yml +0 -105
- data/spec/cassettes/Worochi_Item/_content_type/falls_back_to_file_name_when_ruby-filemagic_is_not_loaded.yml +0 -105
- data/spec/cassettes/Worochi_Item/_open/opens_a_single_file/with_Hash_parameter.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open/opens_a_single_file/with_String_parameter.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open/opens_multiple_files/with_Hash_parameters.yml +0 -211
- data/spec/cassettes/Worochi_Item/_open/opens_multiple_files/with_String_parameters.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open/with_a_single_file/accepts_Hash_parameter.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open/with_a_single_file/accepts_String_parameter.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open/with_multiple_files/accepts_Hash_parameters.yml +0 -211
- data/spec/cassettes/Worochi_Item/_open/with_multiple_files/accepts_String_parameters.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open_single/accepts_a_String.yml +0 -107
- data/spec/cassettes/Worochi_Item/_open_single/works_with_AWS_S3_paths.yml +0 -46
- data/spec/cassettes/Worochi_OAuth/_flow_end/rejects_bad_code.yml +0 -56
- data/spec/cassettes/Worochi_OAuth/_refresh/tries_to_refresh_the_access_token.yml +0 -56
data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/pushes_a_single_item_in_chunks.yml
DELETED
@@ -1,349 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.dropbox.com/1/fileops/delete?path=/Dev/test/test_file&root=auto
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- '*/*'
|
14
|
-
User-Agent:
|
15
|
-
- OfficialDropboxRubySDK/1.6.1
|
16
|
-
Authorization:
|
17
|
-
- Bearer <DROPBOX_TOKEN>
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 404
|
21
|
-
message: Not Found
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Fri, 09 Aug 2013 22:32:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Transfer-Encoding:
|
30
|
-
- chunked
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"error": "Path ''/dev/test/test_file'' not found"}'
|
36
|
-
http_version:
|
37
|
-
recorded_at: Fri, 09 Aug 2013 22:32:23 GMT
|
38
|
-
- request:
|
39
|
-
method: get
|
40
|
-
uri: https://api.dropbox.com/1/metadata/auto/Dev/test?file_limit=25000&include_deleted=false&list=true
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ''
|
44
|
-
headers:
|
45
|
-
Accept-Encoding:
|
46
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
47
|
-
Accept:
|
48
|
-
- '*/*'
|
49
|
-
User-Agent:
|
50
|
-
- OfficialDropboxRubySDK/1.6.1
|
51
|
-
Authorization:
|
52
|
-
- Bearer <DROPBOX_TOKEN>
|
53
|
-
response:
|
54
|
-
status:
|
55
|
-
code: 200
|
56
|
-
message: OK
|
57
|
-
headers:
|
58
|
-
Server:
|
59
|
-
- nginx
|
60
|
-
Date:
|
61
|
-
- Fri, 09 Aug 2013 22:32:24 GMT
|
62
|
-
Content-Type:
|
63
|
-
- text/javascript
|
64
|
-
Transfer-Encoding:
|
65
|
-
- chunked
|
66
|
-
Connection:
|
67
|
-
- keep-alive
|
68
|
-
X-Server-Response-Time:
|
69
|
-
- '55'
|
70
|
-
X-Dropbox-Request-Id:
|
71
|
-
- b452b6e7a35f7103e8db769be66a5c4d
|
72
|
-
Pragma:
|
73
|
-
- no-cache
|
74
|
-
Cache-Control:
|
75
|
-
- no-cache
|
76
|
-
X-Dropbox-Http-Protocol:
|
77
|
-
- None
|
78
|
-
X-Frame-Options:
|
79
|
-
- SAMEORIGIN
|
80
|
-
X-Requestid:
|
81
|
-
- c0028b3b068fe7f8db1398b2467ebde3
|
82
|
-
body:
|
83
|
-
encoding: UTF-8
|
84
|
-
string: '{"hash": "f186e7e70af5ec9d44415a4fd200cf75", "revision": 913527043,
|
85
|
-
"rev": "36735103002426b8", "thumb_exists": false, "bytes": 0, "modified":
|
86
|
-
"Fri, 09 Aug 2013 00:17:26 +0000", "path": "/Dev/test", "is_dir": true, "icon":
|
87
|
-
"folder", "root": "dropbox", "contents": [{"revision": 913527044, "rev": "36735104002426b8",
|
88
|
-
"thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28
|
89
|
-
+0000", "path": "/Dev/test/.git", "is_dir": true, "icon": "folder", "root":
|
90
|
-
"dropbox", "size": "0 bytes"}, {"revision": 913527128, "rev": "36735158002426b8",
|
91
|
-
"thumb_exists": false, "bytes": 18, "modified": "Fri, 09 Aug 2013 00:17:36
|
92
|
-
+0000", "client_mtime": "Thu, 08 Aug 2013 20:44:11 +0000", "path": "/Dev/test/file1",
|
93
|
-
"is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
94
|
-
"size": "18 bytes"}, {"revision": 913527046, "rev": "36735106002426b8", "thumb_exists":
|
95
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
96
|
-
"/Dev/test/folder1", "is_dir": true, "icon": "folder", "root": "dropbox",
|
97
|
-
"size": "0 bytes"}, {"revision": 913527047, "rev": "36735107002426b8", "thumb_exists":
|
98
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
99
|
-
"/Dev/test/folder2", "is_dir": true, "icon": "folder", "root": "dropbox",
|
100
|
-
"size": "0 bytes"}, {"revision": 913527045, "rev": "36735105002426b8", "thumb_exists":
|
101
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
102
|
-
"/Dev/test/folder3", "is_dir": true, "icon": "folder", "root": "dropbox",
|
103
|
-
"size": "0 bytes"}, {"revision": 913527152, "rev": "36735170002426b8", "thumb_exists":
|
104
|
-
false, "bytes": 1078, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
|
105
|
-
"Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/LICENSE", "is_dir":
|
106
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
107
|
-
"size": "1.1 KB"}, {"revision": 913527129, "rev": "36735159002426b8", "thumb_exists":
|
108
|
-
false, "bytes": 20, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
|
109
|
-
"Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/README.md", "is_dir":
|
110
|
-
false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
|
111
|
-
"size": "20 bytes"}], "size": "0 bytes"}'
|
112
|
-
http_version:
|
113
|
-
recorded_at: Fri, 09 Aug 2013 22:32:24 GMT
|
114
|
-
- request:
|
115
|
-
method: put
|
116
|
-
uri: https://api-content.dropbox.com/1/chunked_upload?offset=0
|
117
|
-
body:
|
118
|
-
encoding: ASCII-8BIT
|
119
|
-
string: This is a file used for RSpec tests involving Worochi::Item.
|
120
|
-
headers:
|
121
|
-
Content-Type:
|
122
|
-
- application/octet-stream
|
123
|
-
Accept-Encoding:
|
124
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
-
Accept:
|
126
|
-
- '*/*'
|
127
|
-
User-Agent:
|
128
|
-
- OfficialDropboxRubySDK/1.6.1
|
129
|
-
Content-Length:
|
130
|
-
- 60
|
131
|
-
Authorization:
|
132
|
-
- Bearer <DROPBOX_TOKEN>
|
133
|
-
response:
|
134
|
-
status:
|
135
|
-
code: 200
|
136
|
-
message: OK
|
137
|
-
headers:
|
138
|
-
Server:
|
139
|
-
- nginx
|
140
|
-
Date:
|
141
|
-
- Fri, 09 Aug 2013 22:32:25 GMT
|
142
|
-
Content-Type:
|
143
|
-
- text/javascript
|
144
|
-
Transfer-Encoding:
|
145
|
-
- chunked
|
146
|
-
Connection:
|
147
|
-
- keep-alive
|
148
|
-
X-Server-Response-Time:
|
149
|
-
- '613'
|
150
|
-
X-Dropbox-Request-Id:
|
151
|
-
- 08d3f84417e67e7902448dd2d265764b
|
152
|
-
Pragma:
|
153
|
-
- no-cache
|
154
|
-
Cache-Control:
|
155
|
-
- no-cache
|
156
|
-
X-Requestid:
|
157
|
-
- 99f6ee3f31f4eb16714697148b00f4bd
|
158
|
-
body:
|
159
|
-
encoding: UTF-8
|
160
|
-
string: '{"expires": "Sat, 10 Aug 2013 22:32:25 +0000", "upload_id": "3s9I5dDLLeDBcIzcP-qfvw",
|
161
|
-
"offset": 60}'
|
162
|
-
http_version:
|
163
|
-
recorded_at: Fri, 09 Aug 2013 22:32:25 GMT
|
164
|
-
- request:
|
165
|
-
method: post
|
166
|
-
uri: https://api-content.dropbox.com/1/commit_chunked_upload/auto/Dev/test/test_file?overwrite=true&parent_rev=&upload_id=3s9I5dDLLeDBcIzcP-qfvw
|
167
|
-
body:
|
168
|
-
encoding: UTF-8
|
169
|
-
string: ''
|
170
|
-
headers:
|
171
|
-
Accept-Encoding:
|
172
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
173
|
-
Accept:
|
174
|
-
- '*/*'
|
175
|
-
User-Agent:
|
176
|
-
- OfficialDropboxRubySDK/1.6.1
|
177
|
-
Authorization:
|
178
|
-
- Bearer <DROPBOX_TOKEN>
|
179
|
-
response:
|
180
|
-
status:
|
181
|
-
code: 200
|
182
|
-
message: OK
|
183
|
-
headers:
|
184
|
-
Server:
|
185
|
-
- nginx
|
186
|
-
Date:
|
187
|
-
- Fri, 09 Aug 2013 22:32:26 GMT
|
188
|
-
Content-Type:
|
189
|
-
- text/javascript
|
190
|
-
Transfer-Encoding:
|
191
|
-
- chunked
|
192
|
-
Connection:
|
193
|
-
- keep-alive
|
194
|
-
X-Server-Response-Time:
|
195
|
-
- '682'
|
196
|
-
X-Dropbox-Request-Id:
|
197
|
-
- 42cf307b83bca63df0be48faf72f8f7a
|
198
|
-
Pragma:
|
199
|
-
- no-cache
|
200
|
-
Cache-Control:
|
201
|
-
- no-cache
|
202
|
-
X-Requestid:
|
203
|
-
- c00f9b29149e250e8b4ebc011d49bc1c
|
204
|
-
body:
|
205
|
-
encoding: UTF-8
|
206
|
-
string: '{"revision": 913528129, "rev": "36735541002426b8", "thumb_exists":
|
207
|
-
false, "bytes": 60, "modified": "Fri, 09 Aug 2013 22:32:26 +0000", "client_mtime":
|
208
|
-
"Fri, 09 Aug 2013 22:32:26 +0000", "path": "/Dev/test/test_file", "is_dir":
|
209
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
210
|
-
"size": "60 bytes"}'
|
211
|
-
http_version:
|
212
|
-
recorded_at: Fri, 09 Aug 2013 22:32:27 GMT
|
213
|
-
- request:
|
214
|
-
method: get
|
215
|
-
uri: https://api.dropbox.com/1/metadata/auto/Dev/test?file_limit=25000&include_deleted=false&list=true
|
216
|
-
body:
|
217
|
-
encoding: US-ASCII
|
218
|
-
string: ''
|
219
|
-
headers:
|
220
|
-
Accept-Encoding:
|
221
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
222
|
-
Accept:
|
223
|
-
- '*/*'
|
224
|
-
User-Agent:
|
225
|
-
- OfficialDropboxRubySDK/1.6.1
|
226
|
-
Authorization:
|
227
|
-
- Bearer <DROPBOX_TOKEN>
|
228
|
-
response:
|
229
|
-
status:
|
230
|
-
code: 200
|
231
|
-
message: OK
|
232
|
-
headers:
|
233
|
-
Server:
|
234
|
-
- nginx
|
235
|
-
Date:
|
236
|
-
- Fri, 09 Aug 2013 22:32:27 GMT
|
237
|
-
Content-Type:
|
238
|
-
- text/javascript
|
239
|
-
Transfer-Encoding:
|
240
|
-
- chunked
|
241
|
-
Connection:
|
242
|
-
- keep-alive
|
243
|
-
X-Server-Response-Time:
|
244
|
-
- '49'
|
245
|
-
X-Dropbox-Request-Id:
|
246
|
-
- 0b969bdd75e9d6d0b14e913cb7359d73
|
247
|
-
Pragma:
|
248
|
-
- no-cache
|
249
|
-
Cache-Control:
|
250
|
-
- no-cache
|
251
|
-
X-Dropbox-Http-Protocol:
|
252
|
-
- None
|
253
|
-
X-Frame-Options:
|
254
|
-
- SAMEORIGIN
|
255
|
-
X-Requestid:
|
256
|
-
- 95da3ff3033ca995dc812c803ebe7802
|
257
|
-
body:
|
258
|
-
encoding: UTF-8
|
259
|
-
string: '{"hash": "abcc1df0250d41d5c613aa6211cc1f72", "revision": 913527043,
|
260
|
-
"rev": "36735103002426b8", "thumb_exists": false, "bytes": 0, "modified":
|
261
|
-
"Fri, 09 Aug 2013 00:17:26 +0000", "path": "/Dev/test", "is_dir": true, "icon":
|
262
|
-
"folder", "root": "dropbox", "contents": [{"revision": 913527044, "rev": "36735104002426b8",
|
263
|
-
"thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28
|
264
|
-
+0000", "path": "/Dev/test/.git", "is_dir": true, "icon": "folder", "root":
|
265
|
-
"dropbox", "size": "0 bytes"}, {"revision": 913527128, "rev": "36735158002426b8",
|
266
|
-
"thumb_exists": false, "bytes": 18, "modified": "Fri, 09 Aug 2013 00:17:36
|
267
|
-
+0000", "client_mtime": "Thu, 08 Aug 2013 20:44:11 +0000", "path": "/Dev/test/file1",
|
268
|
-
"is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
269
|
-
"size": "18 bytes"}, {"revision": 913527046, "rev": "36735106002426b8", "thumb_exists":
|
270
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
271
|
-
"/Dev/test/folder1", "is_dir": true, "icon": "folder", "root": "dropbox",
|
272
|
-
"size": "0 bytes"}, {"revision": 913527047, "rev": "36735107002426b8", "thumb_exists":
|
273
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
274
|
-
"/Dev/test/folder2", "is_dir": true, "icon": "folder", "root": "dropbox",
|
275
|
-
"size": "0 bytes"}, {"revision": 913527045, "rev": "36735105002426b8", "thumb_exists":
|
276
|
-
false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
|
277
|
-
"/Dev/test/folder3", "is_dir": true, "icon": "folder", "root": "dropbox",
|
278
|
-
"size": "0 bytes"}, {"revision": 913527152, "rev": "36735170002426b8", "thumb_exists":
|
279
|
-
false, "bytes": 1078, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
|
280
|
-
"Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/LICENSE", "is_dir":
|
281
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
282
|
-
"size": "1.1 KB"}, {"revision": 913527129, "rev": "36735159002426b8", "thumb_exists":
|
283
|
-
false, "bytes": 20, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
|
284
|
-
"Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/README.md", "is_dir":
|
285
|
-
false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
|
286
|
-
"size": "20 bytes"}, {"revision": 913528129, "rev": "36735541002426b8", "thumb_exists":
|
287
|
-
false, "bytes": 60, "modified": "Fri, 09 Aug 2013 22:32:26 +0000", "client_mtime":
|
288
|
-
"Fri, 09 Aug 2013 22:32:26 +0000", "path": "/Dev/test/test_file", "is_dir":
|
289
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
290
|
-
"size": "60 bytes"}], "size": "0 bytes"}'
|
291
|
-
http_version:
|
292
|
-
recorded_at: Fri, 09 Aug 2013 22:32:27 GMT
|
293
|
-
- request:
|
294
|
-
method: post
|
295
|
-
uri: https://api.dropbox.com/1/fileops/delete?path=/Dev/test/test_file&root=auto
|
296
|
-
body:
|
297
|
-
encoding: UTF-8
|
298
|
-
string: ''
|
299
|
-
headers:
|
300
|
-
Accept-Encoding:
|
301
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
302
|
-
Accept:
|
303
|
-
- '*/*'
|
304
|
-
User-Agent:
|
305
|
-
- OfficialDropboxRubySDK/1.6.1
|
306
|
-
Authorization:
|
307
|
-
- Bearer <DROPBOX_TOKEN>
|
308
|
-
response:
|
309
|
-
status:
|
310
|
-
code: 200
|
311
|
-
message: OK
|
312
|
-
headers:
|
313
|
-
Server:
|
314
|
-
- nginx
|
315
|
-
Date:
|
316
|
-
- Fri, 09 Aug 2013 22:32:28 GMT
|
317
|
-
Content-Type:
|
318
|
-
- text/javascript
|
319
|
-
Transfer-Encoding:
|
320
|
-
- chunked
|
321
|
-
Connection:
|
322
|
-
- keep-alive
|
323
|
-
Set-Cookie:
|
324
|
-
- gvc=MTY2NjgwOTUwODUyMDUxODM0NjE0OTc5ODQ5OTU3NjMxOTY2ODM0; expires=Wed, 08
|
325
|
-
Aug 2018 22:32:28 GMT; Path=/; httponly
|
326
|
-
X-Server-Response-Time:
|
327
|
-
- '142'
|
328
|
-
X-Dropbox-Request-Id:
|
329
|
-
- 765508aae17180a4ef0cf8b224589c79
|
330
|
-
Pragma:
|
331
|
-
- no-cache
|
332
|
-
Cache-Control:
|
333
|
-
- no-cache
|
334
|
-
X-Dropbox-Http-Protocol:
|
335
|
-
- None
|
336
|
-
X-Frame-Options:
|
337
|
-
- SAMEORIGIN
|
338
|
-
X-Requestid:
|
339
|
-
- f46b70c79f18baf82c725debb05395c6
|
340
|
-
body:
|
341
|
-
encoding: UTF-8
|
342
|
-
string: '{"is_deleted": true, "revision": 913528130, "rev": "36735542002426b8",
|
343
|
-
"thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 22:32:28
|
344
|
-
+0000", "client_mtime": "Wed, 31 Dec 1969 23:59:59 +0000", "path": "/Dev/test/test_file",
|
345
|
-
"is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
346
|
-
"size": "0 bytes"}'
|
347
|
-
http_version:
|
348
|
-
recorded_at: Fri, 09 Aug 2013 22:32:28 GMT
|
349
|
-
recorded_with: VCR 2.5.0
|
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: put
|
5
|
-
uri: https://api-content.dropbox.com/1/chunked_upload?offset=0
|
6
|
-
body:
|
7
|
-
encoding: ASCII-8BIT
|
8
|
-
string: This is a file used for RSpec tests involving Worochi::Item.
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/octet-stream
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
Accept:
|
15
|
-
- '*/*'
|
16
|
-
User-Agent:
|
17
|
-
- OfficialDropboxRubySDK/1.6.1
|
18
|
-
Content-Length:
|
19
|
-
- 60
|
20
|
-
Authorization:
|
21
|
-
- Bearer badtoken
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 401
|
25
|
-
message: Unauthorized
|
26
|
-
headers:
|
27
|
-
Server:
|
28
|
-
- nginx
|
29
|
-
Date:
|
30
|
-
- Thu, 15 Aug 2013 19:14:33 GMT
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Transfer-Encoding:
|
34
|
-
- chunked
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
Www-Authenticate:
|
38
|
-
- OAuth realm="https://api.dropbox.com/"
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"error": "Unauthorized"}'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Thu, 15 Aug 2013 19:14:33 GMT
|
44
|
-
recorded_with: VCR 2.5.0
|
@@ -1,165 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: put
|
5
|
-
uri: https://api-content.dropbox.com/1/files_put/auto/Dev/test/test_file?overwrite=true
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: This is a file used for RSpec tests involving Worochi::Item.
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/octet-stream
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
Accept:
|
15
|
-
- '*/*'
|
16
|
-
User-Agent:
|
17
|
-
- OfficialDropboxRubySDK/1.6.1
|
18
|
-
Content-Length:
|
19
|
-
- '60'
|
20
|
-
Authorization:
|
21
|
-
- Bearer <DROPBOX_TOKEN>
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Server:
|
28
|
-
- nginx
|
29
|
-
Date:
|
30
|
-
- Thu, 15 Aug 2013 20:52:20 GMT
|
31
|
-
Content-Type:
|
32
|
-
- text/javascript
|
33
|
-
Transfer-Encoding:
|
34
|
-
- chunked
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
X-Server-Response-Time:
|
38
|
-
- '239'
|
39
|
-
X-Dropbox-Request-Id:
|
40
|
-
- 0ab5471b0df6be5b41b3b449316d75e9
|
41
|
-
Pragma:
|
42
|
-
- no-cache
|
43
|
-
Cache-Control:
|
44
|
-
- no-cache
|
45
|
-
X-Requestid:
|
46
|
-
- fff1e7bbf2b7a0bdc5f70191882f5217
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"revision": 913531797, "rev": "36736395002426b8", "thumb_exists":
|
50
|
-
false, "bytes": 60, "modified": "Thu, 15 Aug 2013 20:51:53 +0000", "client_mtime":
|
51
|
-
"Thu, 15 Aug 2013 20:51:53 +0000", "path": "/Dev/test/test_file", "is_dir":
|
52
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
53
|
-
"size": "60 bytes"}'
|
54
|
-
http_version:
|
55
|
-
recorded_at: Thu, 15 Aug 2013 20:52:20 GMT
|
56
|
-
- request:
|
57
|
-
method: put
|
58
|
-
uri: https://api-content.dropbox.com/1/files_put/auto/Dev/test/test_file?overwrite=true
|
59
|
-
body:
|
60
|
-
encoding: UTF-8
|
61
|
-
string: This is a file used for RSpec tests involving Worochi::Item.
|
62
|
-
headers:
|
63
|
-
Content-Type:
|
64
|
-
- application/octet-stream
|
65
|
-
Accept-Encoding:
|
66
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
-
Accept:
|
68
|
-
- '*/*'
|
69
|
-
User-Agent:
|
70
|
-
- OfficialDropboxRubySDK/1.6.1
|
71
|
-
Content-Length:
|
72
|
-
- '60'
|
73
|
-
Authorization:
|
74
|
-
- Bearer <DROPBOX_TOKEN>
|
75
|
-
response:
|
76
|
-
status:
|
77
|
-
code: 200
|
78
|
-
message: OK
|
79
|
-
headers:
|
80
|
-
Server:
|
81
|
-
- nginx
|
82
|
-
Date:
|
83
|
-
- Thu, 15 Aug 2013 20:52:21 GMT
|
84
|
-
Content-Type:
|
85
|
-
- text/javascript
|
86
|
-
Transfer-Encoding:
|
87
|
-
- chunked
|
88
|
-
Connection:
|
89
|
-
- keep-alive
|
90
|
-
X-Server-Response-Time:
|
91
|
-
- '233'
|
92
|
-
X-Dropbox-Request-Id:
|
93
|
-
- fc8c4d3c3ad7a416442a6d5b86b95f85
|
94
|
-
Pragma:
|
95
|
-
- no-cache
|
96
|
-
Cache-Control:
|
97
|
-
- no-cache
|
98
|
-
X-Requestid:
|
99
|
-
- 44bc3113f34f316f27fee08483f1099f
|
100
|
-
body:
|
101
|
-
encoding: UTF-8
|
102
|
-
string: '{"revision": 913531797, "rev": "36736395002426b8", "thumb_exists":
|
103
|
-
false, "bytes": 60, "modified": "Thu, 15 Aug 2013 20:51:53 +0000", "client_mtime":
|
104
|
-
"Thu, 15 Aug 2013 20:51:53 +0000", "path": "/Dev/test/test_file", "is_dir":
|
105
|
-
false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
106
|
-
"size": "60 bytes"}'
|
107
|
-
http_version:
|
108
|
-
recorded_at: Thu, 15 Aug 2013 20:52:21 GMT
|
109
|
-
- request:
|
110
|
-
method: post
|
111
|
-
uri: https://api.dropbox.com/1/fileops/delete?path=/Dev/test/test_file&root=auto
|
112
|
-
body:
|
113
|
-
encoding: UTF-8
|
114
|
-
string: ''
|
115
|
-
headers:
|
116
|
-
Accept-Encoding:
|
117
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
118
|
-
Accept:
|
119
|
-
- '*/*'
|
120
|
-
User-Agent:
|
121
|
-
- OfficialDropboxRubySDK/1.6.1
|
122
|
-
Authorization:
|
123
|
-
- Bearer <DROPBOX_TOKEN>
|
124
|
-
response:
|
125
|
-
status:
|
126
|
-
code: 200
|
127
|
-
message: OK
|
128
|
-
headers:
|
129
|
-
Server:
|
130
|
-
- nginx
|
131
|
-
Date:
|
132
|
-
- Thu, 15 Aug 2013 20:52:22 GMT
|
133
|
-
Content-Type:
|
134
|
-
- text/javascript
|
135
|
-
Transfer-Encoding:
|
136
|
-
- chunked
|
137
|
-
Connection:
|
138
|
-
- keep-alive
|
139
|
-
Set-Cookie:
|
140
|
-
- gvc=MTI2MDM5MDgzNjA5NjI5NzkxOTkwMzQ4MTEzODI3NTgyOTI4MDM0; expires=Tue, 14
|
141
|
-
Aug 2018 20:52:22 GMT; Path=/; httponly
|
142
|
-
X-Server-Response-Time:
|
143
|
-
- '151'
|
144
|
-
X-Dropbox-Request-Id:
|
145
|
-
- 9aa4bfd70c660f5b38cb4febbbfe9246
|
146
|
-
Pragma:
|
147
|
-
- no-cache
|
148
|
-
Cache-Control:
|
149
|
-
- no-cache
|
150
|
-
X-Dropbox-Http-Protocol:
|
151
|
-
- None
|
152
|
-
X-Frame-Options:
|
153
|
-
- SAMEORIGIN
|
154
|
-
X-Requestid:
|
155
|
-
- daf4ba1acb53bf102b2aa0b207d05851
|
156
|
-
body:
|
157
|
-
encoding: UTF-8
|
158
|
-
string: '{"is_deleted": true, "revision": 913531804, "rev": "3673639c002426b8",
|
159
|
-
"thumb_exists": false, "bytes": 0, "modified": "Thu, 15 Aug 2013 20:52:22
|
160
|
-
+0000", "client_mtime": "Wed, 31 Dec 1969 23:59:59 +0000", "path": "/Dev/test/test_file",
|
161
|
-
"is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
|
162
|
-
"size": "0 bytes"}'
|
163
|
-
http_version:
|
164
|
-
recorded_at: Thu, 15 Aug 2013 20:52:22 GMT
|
165
|
-
recorded_with: VCR 2.5.0
|