worochi 0.0.7 → 0.0.10

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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/worochi/agent/{sample.rb → #example.rb} +2 -14
  3. data/lib/worochi/agent/dropbox.rb +3 -13
  4. data/lib/worochi/agent/github.rb +8 -23
  5. data/lib/worochi/agent.rb +46 -18
  6. data/lib/worochi/config/#example.yml +35 -0
  7. data/lib/worochi/config/dropbox.yml +14 -0
  8. data/lib/worochi/config/github.yml +17 -0
  9. data/lib/worochi/config.rb +9 -84
  10. data/lib/worochi/configurator.rb +120 -0
  11. data/lib/worochi/helper/github_helper.rb +111 -0
  12. data/lib/worochi/helper.rb +28 -7
  13. data/lib/worochi/item.rb +5 -3
  14. data/lib/worochi/log.rb +8 -14
  15. data/lib/worochi/oauth.rb +69 -0
  16. data/lib/worochi/version.rb +1 -1
  17. data/lib/worochi.rb +20 -3
  18. data/spec/cassettes/Worochi/_push/pushes_with_agents.yml +512 -0
  19. data/spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_it_chunked_if_size_exceeds_limit.yml +1049 -0
  20. data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/raises_an_error.yml +44 -0
  21. data/spec/cassettes/Worochi_Agent_Dropbox/_push_items/pushes_multiple_items.yml +165 -0
  22. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +38 -0
  23. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing.yml +79 -0
  24. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +79 -0
  25. data/spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml +12 -12
  26. data/spec/cassettes/Worochi_Agent_Github/_repos/lists_the_repos.yml +207 -0
  27. data/spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml +6 -6
  28. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +12 -12
  29. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +12 -12
  30. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +12 -12
  31. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +133 -0
  32. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +24 -24
  33. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +133 -0
  34. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +12 -12
  35. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +12 -12
  36. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +12 -12
  37. data/spec/cassettes/Worochi_Agent_Github/{_push_all → modifies_the_repo/_push_all}/pushes_a_list_of_items_to_create_a_new_commit.yml +80 -80
  38. data/spec/cassettes/Worochi_Agent_Github/{_push_all → modifies_the_repo/_push_all}/pushes_the_file_to_the_right_place.yml +60 -60
  39. data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_blob/pushes_the_blob_even_when_it_is_larger_than_block_size.yml +181 -0
  40. data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_item/pushes_a_single_item_and_makes_a_commit.yml +687 -0
  41. data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_stream_blob/streams_the_file_as_an_Base64_JSON_field.yml +181 -0
  42. data/spec/cassettes/Worochi_OAuth/_flow_end/rejects_bad_code.yml +56 -0
  43. data/spec/{helper.rb → spec_helper.rb} +14 -1
  44. data/spec/support/aws_uri_matcher.rb +1 -1
  45. data/spec/support/shared_exampes_for_agents.rb +13 -2
  46. data/spec/support/test_files.rb +4 -4
  47. data/spec/worochi/agent/dropbox_spec.rb +29 -3
  48. data/spec/worochi/agent/github_spec.rb +54 -26
  49. data/spec/worochi/agent_spec.rb +34 -1
  50. data/spec/worochi/config_spec.rb +46 -30
  51. data/spec/worochi/helper/github_helper_spec.rb +94 -0
  52. data/spec/worochi/helper_spec.rb +15 -3
  53. data/spec/worochi/item_spec.rb +9 -6
  54. data/spec/worochi/log_spec.rb +30 -0
  55. data/spec/worochi/oauth_spec.rb +33 -0
  56. data/spec/worochi_spec.rb +25 -1
  57. data/worochi.gemspec +5 -1
  58. metadata +104 -11
  59. data/lib/worochi/helper/github.rb +0 -100
  60. data/spec/worochi/helper/github_spec.rb +0 -57
@@ -0,0 +1,1049 @@
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
+ - Thu, 15 Aug 2013 19:07:56 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: Thu, 15 Aug 2013 19:07:56 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
+ - Thu, 15 Aug 2013 19:07:56 GMT
62
+ Content-Type:
63
+ - text/javascript
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Connection:
67
+ - keep-alive
68
+ X-Server-Response-Time:
69
+ - '51'
70
+ X-Dropbox-Request-Id:
71
+ - 4e31f0c8a730698088fd7f6eeb3c927e
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
+ - 265be6c4a8d459e8b0b4c6f0804c546d
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"hash": "bf88e23a6fa5e851915a2b37069faf3c", "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: Thu, 15 Aug 2013 19:07:56 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
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
+ - 4
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
+ - Thu, 15 Aug 2013 19:07:57 GMT
142
+ Content-Type:
143
+ - text/javascript
144
+ Transfer-Encoding:
145
+ - chunked
146
+ Connection:
147
+ - keep-alive
148
+ X-Server-Response-Time:
149
+ - '475'
150
+ X-Dropbox-Request-Id:
151
+ - 39fc450b46a31ec835ae203877f7cd01
152
+ Pragma:
153
+ - no-cache
154
+ Cache-Control:
155
+ - no-cache
156
+ X-Requestid:
157
+ - 8e08a2a4d7faad95b1fd32a05afb8664
158
+ body:
159
+ encoding: UTF-8
160
+ string: '{"expires": "Fri, 16 Aug 2013 19:07:57 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
161
+ "offset": 4}'
162
+ http_version:
163
+ recorded_at: Thu, 15 Aug 2013 19:07:57 GMT
164
+ - request:
165
+ method: put
166
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=4&upload_id=lgRg4wuGBWILQPoiWAT9ig
167
+ body:
168
+ encoding: ASCII-8BIT
169
+ string: ' is '
170
+ headers:
171
+ Content-Type:
172
+ - application/octet-stream
173
+ Accept-Encoding:
174
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
175
+ Accept:
176
+ - '*/*'
177
+ User-Agent:
178
+ - OfficialDropboxRubySDK/1.6.1
179
+ Content-Length:
180
+ - 4
181
+ Authorization:
182
+ - Bearer <DROPBOX_TOKEN>
183
+ response:
184
+ status:
185
+ code: 200
186
+ message: OK
187
+ headers:
188
+ Server:
189
+ - nginx
190
+ Date:
191
+ - Thu, 15 Aug 2013 19:07:59 GMT
192
+ Content-Type:
193
+ - text/javascript
194
+ Transfer-Encoding:
195
+ - chunked
196
+ Connection:
197
+ - keep-alive
198
+ X-Server-Response-Time:
199
+ - '557'
200
+ X-Dropbox-Request-Id:
201
+ - 5c1dc820256d802008e4b26aadf1be74
202
+ Pragma:
203
+ - no-cache
204
+ Cache-Control:
205
+ - no-cache
206
+ X-Requestid:
207
+ - 6caea593556b33a7f756daedbc998586
208
+ body:
209
+ encoding: UTF-8
210
+ string: '{"expires": "Fri, 16 Aug 2013 19:07:57 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
211
+ "offset": 8}'
212
+ http_version:
213
+ recorded_at: Thu, 15 Aug 2013 19:07:59 GMT
214
+ - request:
215
+ method: put
216
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=8&upload_id=lgRg4wuGBWILQPoiWAT9ig
217
+ body:
218
+ encoding: ASCII-8BIT
219
+ string: a fi
220
+ headers:
221
+ Content-Type:
222
+ - application/octet-stream
223
+ Accept-Encoding:
224
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
225
+ Accept:
226
+ - '*/*'
227
+ User-Agent:
228
+ - OfficialDropboxRubySDK/1.6.1
229
+ Content-Length:
230
+ - 4
231
+ Authorization:
232
+ - Bearer <DROPBOX_TOKEN>
233
+ response:
234
+ status:
235
+ code: 200
236
+ message: OK
237
+ headers:
238
+ Server:
239
+ - nginx
240
+ Date:
241
+ - Thu, 15 Aug 2013 19:08:00 GMT
242
+ Content-Type:
243
+ - text/javascript
244
+ Transfer-Encoding:
245
+ - chunked
246
+ Connection:
247
+ - keep-alive
248
+ X-Server-Response-Time:
249
+ - '460'
250
+ X-Dropbox-Request-Id:
251
+ - 87f398137ec69034f2089c982dda49ec
252
+ Pragma:
253
+ - no-cache
254
+ Cache-Control:
255
+ - no-cache
256
+ X-Requestid:
257
+ - 8fa86b251ebcd7f412bfd1ad177c65fc
258
+ body:
259
+ encoding: UTF-8
260
+ string: '{"expires": "Fri, 16 Aug 2013 19:07:59 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
261
+ "offset": 12}'
262
+ http_version:
263
+ recorded_at: Thu, 15 Aug 2013 19:08:00 GMT
264
+ - request:
265
+ method: put
266
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=12&upload_id=lgRg4wuGBWILQPoiWAT9ig
267
+ body:
268
+ encoding: ASCII-8BIT
269
+ string: le u
270
+ headers:
271
+ Content-Type:
272
+ - application/octet-stream
273
+ Accept-Encoding:
274
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
275
+ Accept:
276
+ - '*/*'
277
+ User-Agent:
278
+ - OfficialDropboxRubySDK/1.6.1
279
+ Content-Length:
280
+ - 4
281
+ Authorization:
282
+ - Bearer <DROPBOX_TOKEN>
283
+ response:
284
+ status:
285
+ code: 200
286
+ message: OK
287
+ headers:
288
+ Server:
289
+ - nginx
290
+ Date:
291
+ - Thu, 15 Aug 2013 19:08:01 GMT
292
+ Content-Type:
293
+ - text/javascript
294
+ Transfer-Encoding:
295
+ - chunked
296
+ Connection:
297
+ - keep-alive
298
+ X-Server-Response-Time:
299
+ - '557'
300
+ X-Dropbox-Request-Id:
301
+ - 0ebcc2a9f984a94e5fe435f4f431bd53
302
+ Pragma:
303
+ - no-cache
304
+ Cache-Control:
305
+ - no-cache
306
+ X-Requestid:
307
+ - 3364277f6f0ddfd586b0c3ba412eba76
308
+ body:
309
+ encoding: UTF-8
310
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:00 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
311
+ "offset": 16}'
312
+ http_version:
313
+ recorded_at: Thu, 15 Aug 2013 19:08:01 GMT
314
+ - request:
315
+ method: put
316
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=16&upload_id=lgRg4wuGBWILQPoiWAT9ig
317
+ body:
318
+ encoding: ASCII-8BIT
319
+ string: 'sed '
320
+ headers:
321
+ Content-Type:
322
+ - application/octet-stream
323
+ Accept-Encoding:
324
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
325
+ Accept:
326
+ - '*/*'
327
+ User-Agent:
328
+ - OfficialDropboxRubySDK/1.6.1
329
+ Content-Length:
330
+ - 4
331
+ Authorization:
332
+ - Bearer <DROPBOX_TOKEN>
333
+ response:
334
+ status:
335
+ code: 200
336
+ message: OK
337
+ headers:
338
+ Server:
339
+ - nginx
340
+ Date:
341
+ - Thu, 15 Aug 2013 19:08:02 GMT
342
+ Content-Type:
343
+ - text/javascript
344
+ Transfer-Encoding:
345
+ - chunked
346
+ Connection:
347
+ - keep-alive
348
+ X-Server-Response-Time:
349
+ - '537'
350
+ X-Dropbox-Request-Id:
351
+ - 68c521d4e6dad3ee11355ccff1758541
352
+ Pragma:
353
+ - no-cache
354
+ Cache-Control:
355
+ - no-cache
356
+ X-Requestid:
357
+ - 53ece173af699c172765eede49b340df
358
+ body:
359
+ encoding: UTF-8
360
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:01 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
361
+ "offset": 20}'
362
+ http_version:
363
+ recorded_at: Thu, 15 Aug 2013 19:08:02 GMT
364
+ - request:
365
+ method: put
366
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=20&upload_id=lgRg4wuGBWILQPoiWAT9ig
367
+ body:
368
+ encoding: ASCII-8BIT
369
+ string: 'for '
370
+ headers:
371
+ Content-Type:
372
+ - application/octet-stream
373
+ Accept-Encoding:
374
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
375
+ Accept:
376
+ - '*/*'
377
+ User-Agent:
378
+ - OfficialDropboxRubySDK/1.6.1
379
+ Content-Length:
380
+ - 4
381
+ Authorization:
382
+ - Bearer <DROPBOX_TOKEN>
383
+ response:
384
+ status:
385
+ code: 200
386
+ message: OK
387
+ headers:
388
+ Server:
389
+ - nginx
390
+ Date:
391
+ - Thu, 15 Aug 2013 19:08:04 GMT
392
+ Content-Type:
393
+ - text/javascript
394
+ Transfer-Encoding:
395
+ - chunked
396
+ Connection:
397
+ - keep-alive
398
+ X-Server-Response-Time:
399
+ - '545'
400
+ X-Dropbox-Request-Id:
401
+ - 131fbd1d791d9f4c62a62165ae032bf7
402
+ Pragma:
403
+ - no-cache
404
+ Cache-Control:
405
+ - no-cache
406
+ X-Requestid:
407
+ - 1b88d5608469d65e4e2d6b18567dc796
408
+ body:
409
+ encoding: UTF-8
410
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:02 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
411
+ "offset": 24}'
412
+ http_version:
413
+ recorded_at: Thu, 15 Aug 2013 19:08:03 GMT
414
+ - request:
415
+ method: put
416
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=24&upload_id=lgRg4wuGBWILQPoiWAT9ig
417
+ body:
418
+ encoding: ASCII-8BIT
419
+ string: RSpe
420
+ headers:
421
+ Content-Type:
422
+ - application/octet-stream
423
+ Accept-Encoding:
424
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
425
+ Accept:
426
+ - '*/*'
427
+ User-Agent:
428
+ - OfficialDropboxRubySDK/1.6.1
429
+ Content-Length:
430
+ - 4
431
+ Authorization:
432
+ - Bearer <DROPBOX_TOKEN>
433
+ response:
434
+ status:
435
+ code: 200
436
+ message: OK
437
+ headers:
438
+ Server:
439
+ - nginx
440
+ Date:
441
+ - Thu, 15 Aug 2013 19:08:05 GMT
442
+ Content-Type:
443
+ - text/javascript
444
+ Transfer-Encoding:
445
+ - chunked
446
+ Connection:
447
+ - keep-alive
448
+ X-Server-Response-Time:
449
+ - '613'
450
+ X-Dropbox-Request-Id:
451
+ - 691a3d61fe1b381df5f276c0164f1b13
452
+ Pragma:
453
+ - no-cache
454
+ Cache-Control:
455
+ - no-cache
456
+ X-Requestid:
457
+ - fc3ce5c7efbeaa1837f3b864aa6e5e70
458
+ body:
459
+ encoding: UTF-8
460
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:03 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
461
+ "offset": 28}'
462
+ http_version:
463
+ recorded_at: Thu, 15 Aug 2013 19:08:05 GMT
464
+ - request:
465
+ method: put
466
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=28&upload_id=lgRg4wuGBWILQPoiWAT9ig
467
+ body:
468
+ encoding: ASCII-8BIT
469
+ string: c te
470
+ headers:
471
+ Content-Type:
472
+ - application/octet-stream
473
+ Accept-Encoding:
474
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
475
+ Accept:
476
+ - '*/*'
477
+ User-Agent:
478
+ - OfficialDropboxRubySDK/1.6.1
479
+ Content-Length:
480
+ - 4
481
+ Authorization:
482
+ - Bearer <DROPBOX_TOKEN>
483
+ response:
484
+ status:
485
+ code: 200
486
+ message: OK
487
+ headers:
488
+ Server:
489
+ - nginx
490
+ Date:
491
+ - Thu, 15 Aug 2013 19:08:06 GMT
492
+ Content-Type:
493
+ - text/javascript
494
+ Transfer-Encoding:
495
+ - chunked
496
+ Connection:
497
+ - keep-alive
498
+ X-Server-Response-Time:
499
+ - '598'
500
+ X-Dropbox-Request-Id:
501
+ - 4b19801fccbdcf9329b59492d95152fc
502
+ Pragma:
503
+ - no-cache
504
+ Cache-Control:
505
+ - no-cache
506
+ X-Requestid:
507
+ - 924c85f9ff57a58c8c165dd43b47fa82
508
+ body:
509
+ encoding: UTF-8
510
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:05 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
511
+ "offset": 32}'
512
+ http_version:
513
+ recorded_at: Thu, 15 Aug 2013 19:08:06 GMT
514
+ - request:
515
+ method: put
516
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=32&upload_id=lgRg4wuGBWILQPoiWAT9ig
517
+ body:
518
+ encoding: ASCII-8BIT
519
+ string: 'sts '
520
+ headers:
521
+ Content-Type:
522
+ - application/octet-stream
523
+ Accept-Encoding:
524
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
525
+ Accept:
526
+ - '*/*'
527
+ User-Agent:
528
+ - OfficialDropboxRubySDK/1.6.1
529
+ Content-Length:
530
+ - 4
531
+ Authorization:
532
+ - Bearer <DROPBOX_TOKEN>
533
+ response:
534
+ status:
535
+ code: 200
536
+ message: OK
537
+ headers:
538
+ Server:
539
+ - nginx
540
+ Date:
541
+ - Thu, 15 Aug 2013 19:08:07 GMT
542
+ Content-Type:
543
+ - text/javascript
544
+ Transfer-Encoding:
545
+ - chunked
546
+ Connection:
547
+ - keep-alive
548
+ X-Server-Response-Time:
549
+ - '522'
550
+ X-Dropbox-Request-Id:
551
+ - 9c57193e566359a811e2c099d6e2d2ac
552
+ Pragma:
553
+ - no-cache
554
+ Cache-Control:
555
+ - no-cache
556
+ X-Requestid:
557
+ - a77de80697aa70673a4db2eeb0a843cc
558
+ body:
559
+ encoding: UTF-8
560
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:06 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
561
+ "offset": 36}'
562
+ http_version:
563
+ recorded_at: Thu, 15 Aug 2013 19:08:07 GMT
564
+ - request:
565
+ method: put
566
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=36&upload_id=lgRg4wuGBWILQPoiWAT9ig
567
+ body:
568
+ encoding: ASCII-8BIT
569
+ string: invo
570
+ headers:
571
+ Content-Type:
572
+ - application/octet-stream
573
+ Accept-Encoding:
574
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
575
+ Accept:
576
+ - '*/*'
577
+ User-Agent:
578
+ - OfficialDropboxRubySDK/1.6.1
579
+ Content-Length:
580
+ - 4
581
+ Authorization:
582
+ - Bearer <DROPBOX_TOKEN>
583
+ response:
584
+ status:
585
+ code: 200
586
+ message: OK
587
+ headers:
588
+ Server:
589
+ - nginx
590
+ Date:
591
+ - Thu, 15 Aug 2013 19:08:09 GMT
592
+ Content-Type:
593
+ - text/javascript
594
+ Transfer-Encoding:
595
+ - chunked
596
+ Connection:
597
+ - keep-alive
598
+ X-Server-Response-Time:
599
+ - '585'
600
+ X-Dropbox-Request-Id:
601
+ - cc7ad8a6d1b608db5c8226f998e45860
602
+ Pragma:
603
+ - no-cache
604
+ Cache-Control:
605
+ - no-cache
606
+ X-Requestid:
607
+ - 7898bd2c655d9cc4c67852d3dc49b8b7
608
+ body:
609
+ encoding: UTF-8
610
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:07 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
611
+ "offset": 40}'
612
+ http_version:
613
+ recorded_at: Thu, 15 Aug 2013 19:08:08 GMT
614
+ - request:
615
+ method: put
616
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=40&upload_id=lgRg4wuGBWILQPoiWAT9ig
617
+ body:
618
+ encoding: ASCII-8BIT
619
+ string: lvin
620
+ headers:
621
+ Content-Type:
622
+ - application/octet-stream
623
+ Accept-Encoding:
624
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
625
+ Accept:
626
+ - '*/*'
627
+ User-Agent:
628
+ - OfficialDropboxRubySDK/1.6.1
629
+ Content-Length:
630
+ - 4
631
+ Authorization:
632
+ - Bearer <DROPBOX_TOKEN>
633
+ response:
634
+ status:
635
+ code: 200
636
+ message: OK
637
+ headers:
638
+ Server:
639
+ - nginx
640
+ Date:
641
+ - Thu, 15 Aug 2013 19:08:10 GMT
642
+ Content-Type:
643
+ - text/javascript
644
+ Transfer-Encoding:
645
+ - chunked
646
+ Connection:
647
+ - keep-alive
648
+ X-Server-Response-Time:
649
+ - '488'
650
+ X-Dropbox-Request-Id:
651
+ - b0a4523b251af6f46cf5ab6325d32d88
652
+ Pragma:
653
+ - no-cache
654
+ Cache-Control:
655
+ - no-cache
656
+ X-Requestid:
657
+ - 49287b23c270431b31cdbaa859434155
658
+ body:
659
+ encoding: UTF-8
660
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:08 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
661
+ "offset": 44}'
662
+ http_version:
663
+ recorded_at: Thu, 15 Aug 2013 19:08:10 GMT
664
+ - request:
665
+ method: put
666
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=44&upload_id=lgRg4wuGBWILQPoiWAT9ig
667
+ body:
668
+ encoding: ASCII-8BIT
669
+ string: g Wo
670
+ headers:
671
+ Content-Type:
672
+ - application/octet-stream
673
+ Accept-Encoding:
674
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
675
+ Accept:
676
+ - '*/*'
677
+ User-Agent:
678
+ - OfficialDropboxRubySDK/1.6.1
679
+ Content-Length:
680
+ - 4
681
+ Authorization:
682
+ - Bearer <DROPBOX_TOKEN>
683
+ response:
684
+ status:
685
+ code: 200
686
+ message: OK
687
+ headers:
688
+ Server:
689
+ - nginx
690
+ Date:
691
+ - Thu, 15 Aug 2013 19:08:11 GMT
692
+ Content-Type:
693
+ - text/javascript
694
+ Transfer-Encoding:
695
+ - chunked
696
+ Connection:
697
+ - keep-alive
698
+ X-Server-Response-Time:
699
+ - '458'
700
+ X-Dropbox-Request-Id:
701
+ - a3a6a9bf0f3449a0401702ef50c2758c
702
+ Pragma:
703
+ - no-cache
704
+ Cache-Control:
705
+ - no-cache
706
+ X-Requestid:
707
+ - b6cc0a5054b9f3ccdaf1a227d29791ac
708
+ body:
709
+ encoding: UTF-8
710
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:10 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
711
+ "offset": 48}'
712
+ http_version:
713
+ recorded_at: Thu, 15 Aug 2013 19:08:11 GMT
714
+ - request:
715
+ method: put
716
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=48&upload_id=lgRg4wuGBWILQPoiWAT9ig
717
+ body:
718
+ encoding: ASCII-8BIT
719
+ string: roch
720
+ headers:
721
+ Content-Type:
722
+ - application/octet-stream
723
+ Accept-Encoding:
724
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
725
+ Accept:
726
+ - '*/*'
727
+ User-Agent:
728
+ - OfficialDropboxRubySDK/1.6.1
729
+ Content-Length:
730
+ - 4
731
+ Authorization:
732
+ - Bearer <DROPBOX_TOKEN>
733
+ response:
734
+ status:
735
+ code: 200
736
+ message: OK
737
+ headers:
738
+ Server:
739
+ - nginx
740
+ Date:
741
+ - Thu, 15 Aug 2013 19:08:12 GMT
742
+ Content-Type:
743
+ - text/javascript
744
+ Transfer-Encoding:
745
+ - chunked
746
+ Connection:
747
+ - keep-alive
748
+ X-Server-Response-Time:
749
+ - '457'
750
+ X-Dropbox-Request-Id:
751
+ - 51ce5ca390edbe397274fe642dcbab7e
752
+ Pragma:
753
+ - no-cache
754
+ Cache-Control:
755
+ - no-cache
756
+ X-Requestid:
757
+ - 769aadfed6b223520670956e774b4b46
758
+ body:
759
+ encoding: UTF-8
760
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:11 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
761
+ "offset": 52}'
762
+ http_version:
763
+ recorded_at: Thu, 15 Aug 2013 19:08:12 GMT
764
+ - request:
765
+ method: put
766
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=52&upload_id=lgRg4wuGBWILQPoiWAT9ig
767
+ body:
768
+ encoding: ASCII-8BIT
769
+ string: i::I
770
+ headers:
771
+ Content-Type:
772
+ - application/octet-stream
773
+ Accept-Encoding:
774
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
775
+ Accept:
776
+ - '*/*'
777
+ User-Agent:
778
+ - OfficialDropboxRubySDK/1.6.1
779
+ Content-Length:
780
+ - 4
781
+ Authorization:
782
+ - Bearer <DROPBOX_TOKEN>
783
+ response:
784
+ status:
785
+ code: 200
786
+ message: OK
787
+ headers:
788
+ Server:
789
+ - nginx
790
+ Date:
791
+ - Thu, 15 Aug 2013 19:08:13 GMT
792
+ Content-Type:
793
+ - text/javascript
794
+ Transfer-Encoding:
795
+ - chunked
796
+ Connection:
797
+ - keep-alive
798
+ X-Server-Response-Time:
799
+ - '532'
800
+ X-Dropbox-Request-Id:
801
+ - a651d716580e0bf57216d3b57e9c053c
802
+ Pragma:
803
+ - no-cache
804
+ Cache-Control:
805
+ - no-cache
806
+ X-Requestid:
807
+ - a78c8e75609b1c01a255b7cff2d2e841
808
+ body:
809
+ encoding: UTF-8
810
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:12 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
811
+ "offset": 56}'
812
+ http_version:
813
+ recorded_at: Thu, 15 Aug 2013 19:08:13 GMT
814
+ - request:
815
+ method: put
816
+ uri: https://api-content.dropbox.com/1/chunked_upload?offset=56&upload_id=lgRg4wuGBWILQPoiWAT9ig
817
+ body:
818
+ encoding: ASCII-8BIT
819
+ string: tem.
820
+ headers:
821
+ Content-Type:
822
+ - application/octet-stream
823
+ Accept-Encoding:
824
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
825
+ Accept:
826
+ - '*/*'
827
+ User-Agent:
828
+ - OfficialDropboxRubySDK/1.6.1
829
+ Content-Length:
830
+ - 4
831
+ Authorization:
832
+ - Bearer <DROPBOX_TOKEN>
833
+ response:
834
+ status:
835
+ code: 200
836
+ message: OK
837
+ headers:
838
+ Server:
839
+ - nginx
840
+ Date:
841
+ - Thu, 15 Aug 2013 19:08:14 GMT
842
+ Content-Type:
843
+ - text/javascript
844
+ Transfer-Encoding:
845
+ - chunked
846
+ Connection:
847
+ - keep-alive
848
+ X-Server-Response-Time:
849
+ - '499'
850
+ X-Dropbox-Request-Id:
851
+ - 0444eb1b551994ba7717461e29b000b1
852
+ Pragma:
853
+ - no-cache
854
+ Cache-Control:
855
+ - no-cache
856
+ X-Requestid:
857
+ - 88f4b3aac952529620477ef8f25078d7
858
+ body:
859
+ encoding: UTF-8
860
+ string: '{"expires": "Fri, 16 Aug 2013 19:08:13 +0000", "upload_id": "lgRg4wuGBWILQPoiWAT9ig",
861
+ "offset": 60}'
862
+ http_version:
863
+ recorded_at: Thu, 15 Aug 2013 19:08:14 GMT
864
+ - request:
865
+ method: post
866
+ uri: https://api-content.dropbox.com/1/commit_chunked_upload/auto/Dev/test/test_file?overwrite=true&parent_rev=&upload_id=lgRg4wuGBWILQPoiWAT9ig
867
+ body:
868
+ encoding: UTF-8
869
+ string: ''
870
+ headers:
871
+ Accept-Encoding:
872
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
873
+ Accept:
874
+ - '*/*'
875
+ User-Agent:
876
+ - OfficialDropboxRubySDK/1.6.1
877
+ Authorization:
878
+ - Bearer <DROPBOX_TOKEN>
879
+ response:
880
+ status:
881
+ code: 200
882
+ message: OK
883
+ headers:
884
+ Server:
885
+ - nginx
886
+ Date:
887
+ - Thu, 15 Aug 2013 19:08:16 GMT
888
+ Content-Type:
889
+ - text/javascript
890
+ Transfer-Encoding:
891
+ - chunked
892
+ Connection:
893
+ - keep-alive
894
+ X-Server-Response-Time:
895
+ - '1202'
896
+ X-Dropbox-Request-Id:
897
+ - cab4ebe49d6b8e1881bb809007e18829
898
+ Pragma:
899
+ - no-cache
900
+ Cache-Control:
901
+ - no-cache
902
+ X-Requestid:
903
+ - f175ae769776030313b4af1b5e79f1da
904
+ body:
905
+ encoding: UTF-8
906
+ string: '{"revision": 913531535, "rev": "3673628f002426b8", "thumb_exists":
907
+ false, "bytes": 60, "modified": "Thu, 15 Aug 2013 19:08:16 +0000", "client_mtime":
908
+ "Thu, 15 Aug 2013 19:08:16 +0000", "path": "/Dev/test/test_file", "is_dir":
909
+ false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
910
+ "size": "60 bytes"}'
911
+ http_version:
912
+ recorded_at: Thu, 15 Aug 2013 19:08:16 GMT
913
+ - request:
914
+ method: get
915
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test?file_limit=25000&include_deleted=false&list=true
916
+ body:
917
+ encoding: US-ASCII
918
+ string: ''
919
+ headers:
920
+ Accept-Encoding:
921
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
922
+ Accept:
923
+ - '*/*'
924
+ User-Agent:
925
+ - OfficialDropboxRubySDK/1.6.1
926
+ Authorization:
927
+ - Bearer <DROPBOX_TOKEN>
928
+ response:
929
+ status:
930
+ code: 200
931
+ message: OK
932
+ headers:
933
+ Server:
934
+ - nginx
935
+ Date:
936
+ - Thu, 15 Aug 2013 19:08:16 GMT
937
+ Content-Type:
938
+ - text/javascript
939
+ Transfer-Encoding:
940
+ - chunked
941
+ Connection:
942
+ - keep-alive
943
+ X-Server-Response-Time:
944
+ - '66'
945
+ X-Dropbox-Request-Id:
946
+ - 8cbe4e073eb72fa1cff9b47a12e8d712
947
+ Pragma:
948
+ - no-cache
949
+ Cache-Control:
950
+ - no-cache
951
+ X-Dropbox-Http-Protocol:
952
+ - None
953
+ X-Frame-Options:
954
+ - SAMEORIGIN
955
+ X-Requestid:
956
+ - 468060e346323411c68d65ca15b5106d
957
+ body:
958
+ encoding: UTF-8
959
+ string: '{"hash": "dcc372d55fd0d9f02464548e101f6ffc", "revision": 913527043,
960
+ "rev": "36735103002426b8", "thumb_exists": false, "bytes": 0, "modified":
961
+ "Fri, 09 Aug 2013 00:17:26 +0000", "path": "/Dev/test", "is_dir": true, "icon":
962
+ "folder", "root": "dropbox", "contents": [{"revision": 913527044, "rev": "36735104002426b8",
963
+ "thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28
964
+ +0000", "path": "/Dev/test/.git", "is_dir": true, "icon": "folder", "root":
965
+ "dropbox", "size": "0 bytes"}, {"revision": 913527128, "rev": "36735158002426b8",
966
+ "thumb_exists": false, "bytes": 18, "modified": "Fri, 09 Aug 2013 00:17:36
967
+ +0000", "client_mtime": "Thu, 08 Aug 2013 20:44:11 +0000", "path": "/Dev/test/file1",
968
+ "is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
969
+ "size": "18 bytes"}, {"revision": 913527046, "rev": "36735106002426b8", "thumb_exists":
970
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
971
+ "/Dev/test/folder1", "is_dir": true, "icon": "folder", "root": "dropbox",
972
+ "size": "0 bytes"}, {"revision": 913527047, "rev": "36735107002426b8", "thumb_exists":
973
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
974
+ "/Dev/test/folder2", "is_dir": true, "icon": "folder", "root": "dropbox",
975
+ "size": "0 bytes"}, {"revision": 913527045, "rev": "36735105002426b8", "thumb_exists":
976
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
977
+ "/Dev/test/folder3", "is_dir": true, "icon": "folder", "root": "dropbox",
978
+ "size": "0 bytes"}, {"revision": 913527152, "rev": "36735170002426b8", "thumb_exists":
979
+ false, "bytes": 1078, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
980
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/LICENSE", "is_dir":
981
+ false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
982
+ "size": "1.1 KB"}, {"revision": 913527129, "rev": "36735159002426b8", "thumb_exists":
983
+ false, "bytes": 20, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
984
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/README.md", "is_dir":
985
+ false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
986
+ "size": "20 bytes"}, {"revision": 913531535, "rev": "3673628f002426b8", "thumb_exists":
987
+ false, "bytes": 60, "modified": "Thu, 15 Aug 2013 19:08:16 +0000", "client_mtime":
988
+ "Thu, 15 Aug 2013 19:08:16 +0000", "path": "/Dev/test/test_file", "is_dir":
989
+ false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
990
+ "size": "60 bytes"}], "size": "0 bytes"}'
991
+ http_version:
992
+ recorded_at: Thu, 15 Aug 2013 19:08:16 GMT
993
+ - request:
994
+ method: post
995
+ uri: https://api.dropbox.com/1/fileops/delete?path=/Dev/test/test_file&root=auto
996
+ body:
997
+ encoding: UTF-8
998
+ string: ''
999
+ headers:
1000
+ Accept-Encoding:
1001
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1002
+ Accept:
1003
+ - '*/*'
1004
+ User-Agent:
1005
+ - OfficialDropboxRubySDK/1.6.1
1006
+ Authorization:
1007
+ - Bearer <DROPBOX_TOKEN>
1008
+ response:
1009
+ status:
1010
+ code: 200
1011
+ message: OK
1012
+ headers:
1013
+ Server:
1014
+ - nginx
1015
+ Date:
1016
+ - Thu, 15 Aug 2013 19:08:17 GMT
1017
+ Content-Type:
1018
+ - text/javascript
1019
+ Transfer-Encoding:
1020
+ - chunked
1021
+ Connection:
1022
+ - keep-alive
1023
+ Set-Cookie:
1024
+ - gvc=MTUwODU5NzA3NzY4NzkwOTcwNjg3NzE4Mjc3MDEyODE1Nzk4NTcx; expires=Tue, 14
1025
+ Aug 2018 19:08:17 GMT; Path=/; httponly
1026
+ X-Server-Response-Time:
1027
+ - '133'
1028
+ X-Dropbox-Request-Id:
1029
+ - 09903388977d2764a90821cc2e3f5549
1030
+ Pragma:
1031
+ - no-cache
1032
+ Cache-Control:
1033
+ - no-cache
1034
+ X-Dropbox-Http-Protocol:
1035
+ - None
1036
+ X-Frame-Options:
1037
+ - SAMEORIGIN
1038
+ X-Requestid:
1039
+ - d165e9cccd5bafe165e2f546a4238bd3
1040
+ body:
1041
+ encoding: UTF-8
1042
+ string: '{"is_deleted": true, "revision": 913531536, "rev": "36736290002426b8",
1043
+ "thumb_exists": false, "bytes": 0, "modified": "Thu, 15 Aug 2013 19:08:17
1044
+ +0000", "client_mtime": "Wed, 31 Dec 1969 23:59:59 +0000", "path": "/Dev/test/test_file",
1045
+ "is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
1046
+ "size": "0 bytes"}'
1047
+ http_version:
1048
+ recorded_at: Thu, 15 Aug 2013 19:08:17 GMT
1049
+ recorded_with: VCR 2.5.0