worochi 0.0.0 → 0.0.1

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -0
  3. data/lib/worochi/agent/dropbox.rb +26 -4
  4. data/lib/worochi/agent/github.rb +14 -9
  5. data/lib/worochi/agent/sample.rb +8 -3
  6. data/lib/worochi/agent.rb +64 -23
  7. data/lib/worochi/config.rb +34 -2
  8. data/lib/worochi/error.rb +1 -0
  9. data/lib/worochi/helper/github.rb +1 -0
  10. data/lib/worochi/helper.rb +10 -8
  11. data/lib/worochi/item.rb +18 -9
  12. data/lib/worochi/log.rb +11 -0
  13. data/lib/worochi/version.rb +4 -0
  14. data/lib/worochi.rb +23 -16
  15. data/spec/cassettes/Worochi_Agent_Dropbox/_list/works_with_absolute_paths.yml +60 -0
  16. data/spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_a_single_item.yml +303 -0
  17. data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/pushes_a_single_item_in_chunks.yml +349 -0
  18. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +60 -0
  19. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +60 -0
  20. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml +79 -0
  21. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +60 -0
  22. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +60 -0
  23. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +79 -0
  24. data/spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml +133 -0
  25. data/spec/cassettes/Worochi_Agent_Github/_push_all/pushes_a_list_of_items_to_create_a_new_commit.yml +989 -0
  26. data/spec/cassettes/Worochi_Agent_Github/_push_all/pushes_the_file_to_the_right_place.yml +687 -0
  27. data/spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml +68 -0
  28. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +133 -0
  29. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +133 -0
  30. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +133 -0
  31. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +133 -0
  32. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +133 -0
  33. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +133 -0
  34. data/spec/cassettes/Worochi_Item/_open/opens_a_single_file/with_Hash_parameter.yml +107 -0
  35. data/spec/cassettes/Worochi_Item/_open/opens_a_single_file/with_String_parameter.yml +107 -0
  36. data/spec/cassettes/Worochi_Item/_open/opens_multiple_files/with_Hash_parameters.yml +211 -0
  37. data/spec/cassettes/Worochi_Item/_open/opens_multiple_files/with_String_parameters.yml +107 -0
  38. data/spec/cassettes/Worochi_Item/_open_single/accepts_a_String.yml +107 -0
  39. data/spec/cassettes/Worochi_Item/_open_single/works_with_AWS_S3_paths.yml +46 -0
  40. data/spec/helper.rb +46 -0
  41. data/spec/support/aws_uri_matcher.rb +12 -0
  42. data/spec/support/shared_exampes_for_agents.rb +36 -0
  43. data/spec/support/test_file +1 -0
  44. data/spec/support/test_files.rb +34 -0
  45. data/spec/worochi/agent/dropbox_spec.rb +48 -0
  46. data/spec/worochi/agent/github_spec.rb +77 -0
  47. data/spec/worochi/agent_spec.rb +2 -0
  48. data/spec/worochi/helper/github_spec.rb +57 -0
  49. data/spec/worochi/helper_spec.rb +23 -0
  50. data/spec/worochi/item_spec.rb +85 -0
  51. data/spec/worochi_spec.rb +109 -0
  52. data/worochi.gemspec +27 -4
  53. metadata +193 -4
@@ -0,0 +1,349 @@
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
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
+ body:
7
+ encoding: US-ASCII
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: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 09 Aug 2013 23:04:20 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '63'
35
+ X-Dropbox-Request-Id:
36
+ - c936b2207e9a05265bbfdb7b8a7498e9
37
+ Pragma:
38
+ - no-cache
39
+ Cache-Control:
40
+ - no-cache
41
+ X-Dropbox-Http-Protocol:
42
+ - None
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Requestid:
46
+ - 78c6a5121753ef034ef506daed5be507
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
+ "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
+ "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
+ true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
+ "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
+ "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
+ +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
+ "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
+ "0 bytes"}'
58
+ http_version:
59
+ recorded_at: Fri, 09 Aug 2013 23:04:20 GMT
60
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
+ body:
7
+ encoding: US-ASCII
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: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 09 Aug 2013 23:19:42 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '68'
35
+ X-Dropbox-Request-Id:
36
+ - d2b01a94165ab3129245fd042136263e
37
+ Pragma:
38
+ - no-cache
39
+ Cache-Control:
40
+ - no-cache
41
+ X-Dropbox-Http-Protocol:
42
+ - None
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Requestid:
46
+ - 6402bcb70e87d0514fa6fb7cd52a95c6
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
+ "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
+ "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
+ true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
+ "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
+ "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
+ +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
+ "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
+ "0 bytes"}'
58
+ http_version:
59
+ recorded_at: Fri, 09 Aug 2013 23:19:42 GMT
60
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,79 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test?file_limit=25000&include_deleted=false&list=true
6
+ body:
7
+ encoding: US-ASCII
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: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 09 Aug 2013 23:04:20 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '53'
35
+ X-Dropbox-Request-Id:
36
+ - 528947e35d908e7ff4e92dd56098d4a6
37
+ Pragma:
38
+ - no-cache
39
+ Cache-Control:
40
+ - no-cache
41
+ X-Dropbox-Http-Protocol:
42
+ - None
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Requestid:
46
+ - de641c7a263442b98174f561d0484e1c
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"hash": "bf88e23a6fa5e851915a2b37069faf3c", "revision": 913527043,
50
+ "rev": "36735103002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
+ "Fri, 09 Aug 2013 00:17:26 +0000", "path": "/Dev/test", "is_dir": true, "icon":
52
+ "folder", "root": "dropbox", "contents": [{"revision": 913527044, "rev": "36735104002426b8",
53
+ "thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28
54
+ +0000", "path": "/Dev/test/.git", "is_dir": true, "icon": "folder", "root":
55
+ "dropbox", "size": "0 bytes"}, {"revision": 913527128, "rev": "36735158002426b8",
56
+ "thumb_exists": false, "bytes": 18, "modified": "Fri, 09 Aug 2013 00:17:36
57
+ +0000", "client_mtime": "Thu, 08 Aug 2013 20:44:11 +0000", "path": "/Dev/test/file1",
58
+ "is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
59
+ "size": "18 bytes"}, {"revision": 913527046, "rev": "36735106002426b8", "thumb_exists":
60
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
61
+ "/Dev/test/folder1", "is_dir": true, "icon": "folder", "root": "dropbox",
62
+ "size": "0 bytes"}, {"revision": 913527047, "rev": "36735107002426b8", "thumb_exists":
63
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
64
+ "/Dev/test/folder2", "is_dir": true, "icon": "folder", "root": "dropbox",
65
+ "size": "0 bytes"}, {"revision": 913527045, "rev": "36735105002426b8", "thumb_exists":
66
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
67
+ "/Dev/test/folder3", "is_dir": true, "icon": "folder", "root": "dropbox",
68
+ "size": "0 bytes"}, {"revision": 913527152, "rev": "36735170002426b8", "thumb_exists":
69
+ false, "bytes": 1078, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
70
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/LICENSE", "is_dir":
71
+ false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
72
+ "size": "1.1 KB"}, {"revision": 913527129, "rev": "36735159002426b8", "thumb_exists":
73
+ false, "bytes": 20, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
74
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/README.md", "is_dir":
75
+ false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
76
+ "size": "20 bytes"}], "size": "0 bytes"}'
77
+ http_version:
78
+ recorded_at: Fri, 09 Aug 2013 23:04:20 GMT
79
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
+ body:
7
+ encoding: US-ASCII
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: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 09 Aug 2013 23:16:53 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '46'
35
+ X-Dropbox-Request-Id:
36
+ - 030cfdf38668243a91dc6e7c5aab47b7
37
+ Pragma:
38
+ - no-cache
39
+ Cache-Control:
40
+ - no-cache
41
+ X-Dropbox-Http-Protocol:
42
+ - None
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Requestid:
46
+ - f44af7aa59e252256ba3781850804603
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
+ "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
+ "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
+ true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
+ "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
+ "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
+ +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
+ "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
+ "0 bytes"}'
58
+ http_version:
59
+ recorded_at: Fri, 09 Aug 2013 23:16:53 GMT
60
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
+ body:
7
+ encoding: US-ASCII
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: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 09 Aug 2013 23:19:43 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '49'
35
+ X-Dropbox-Request-Id:
36
+ - d50044111e93d7d62f7cad786f25cb10
37
+ Pragma:
38
+ - no-cache
39
+ Cache-Control:
40
+ - no-cache
41
+ X-Dropbox-Http-Protocol:
42
+ - None
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Requestid:
46
+ - dfc0ce433084bfdb0e14ac69dccea6e4
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
+ "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
+ "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
+ true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
+ "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
+ "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
+ +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
+ "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
+ "0 bytes"}'
58
+ http_version:
59
+ recorded_at: Fri, 09 Aug 2013 23:19:43 GMT
60
+ recorded_with: VCR 2.5.0