worochi 0.0.6 → 0.0.7

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 (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/worochi/agent.rb +18 -5
  3. data/lib/worochi/version.rb +1 -1
  4. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +5 -5
  5. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml +4 -4
  6. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +79 -0
  7. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +155 -0
  8. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +5 -5
  9. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +5 -5
  10. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +79 -0
  11. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +17 -17
  12. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +17 -17
  13. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +133 -0
  14. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +263 -0
  15. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +17 -17
  16. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +15 -15
  17. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +133 -0
  18. data/spec/support/shared_exampes_for_agents.rb +15 -0
  19. metadata +13 -9
  20. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +0 -60
  21. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +0 -60
  22. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +0 -133
  23. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +0 -133
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ced6c5957b0f77a03ab8f4ee40344b669c4f7522
4
- data.tar.gz: fb3ad6209ff2f943396550bd2c31b33032639eba
3
+ metadata.gz: 5aa10b9332e68182b3a9dbed21aff7f1fcc79c78
4
+ data.tar.gz: 451929c1f40471004dc786839f1897965f04a803
5
5
  SHA512:
6
- metadata.gz: 180caac70cd082e086f8f058af7386c5779d58c58474b1204e3561a4782ae32639eff6b495344eb02b0cade48b32f4896c4dd21192f7a591ab9c803b706fe15b
7
- data.tar.gz: 0055e94e663dc6a8cf7e128692e90266dedb00b34b906808c61c7f6e65f8259f3cb13f0958478e6102e434e0c834d4f3448ec03b999c94ca52f9ccf6cbb26c33
6
+ metadata.gz: 1c76eb196eb3a1c759ea9fbde0c75e23e3a34af09176086c2f91ee65aadb69de98df0ba5eb9e7cff769187d061d92f864f31dc72d83f458cd376bd0c25eb7e49
7
+ data.tar.gz: 740a453516871166e8fe34b7f28b8e31d351d8d3f4bd796f4217978720a6bca2ccf0c9f763a39d711de9ea11e74eb3610d71e7ba506845de9ef40b18cb57ad8c
data/lib/worochi/agent.rb CHANGED
@@ -76,7 +76,7 @@ class Worochi
76
76
  # # { name: "t.txt", type: "file", path: "/abc/t.txt"}
77
77
  # # ]
78
78
  def files(*args)
79
- list_helper(true, args)
79
+ list_helper(:files, args)
80
80
  end
81
81
 
82
82
  # Returns a list of subdirectories at the remote path specified by
@@ -89,7 +89,11 @@ class Worochi
89
89
  # agent = Worochi.create(:dropbox, 'sfsFj41na89cx', dir: '/abc')
90
90
  # agent.folders # => ["folder1", "folder2"]
91
91
  def folders(*args)
92
- list_helper(false, args)
92
+ list_helper(:folders, args)
93
+ end
94
+
95
+ def files_and_folders(*args)
96
+ list_helper(:both, args)
93
97
  end
94
98
 
95
99
  # Updates {.options} using `opts`.
@@ -123,16 +127,25 @@ class Worochi
123
127
  private
124
128
  # Parses the arguments for {#files} and {#folders}.
125
129
  #
126
- # @param file_only [Boolean] filters files or folders
130
+ # @param mode [Symbol] display files, folders, or both
127
131
  # @param args [Array] argument list
128
132
  # @return [Array<String>, Array<Hash>] list of files or folders
129
- def list_helper(file_only, args)
133
+ def list_helper(mode, args)
130
134
  details = true if args.first == true
131
135
  if args.first.kind_of?(String)
132
136
  path = args.first
133
137
  details = true if args[1] == true
134
138
  end
135
- excluded = file_only ? 'folder' : 'file'
139
+
140
+ case mode
141
+ when :files
142
+ excluded = 'folder'
143
+ when :folders
144
+ excluded = 'file'
145
+ else
146
+ excluded = nil
147
+ end
148
+
136
149
  result = list(path).reject { |elem| elem[:type] == excluded }
137
150
  result.map! { |elem| elem[:name] } unless details
138
151
  result
@@ -1,4 +1,4 @@
1
1
  class Worochi
2
2
  # Current version of the gem
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Fri, 09 Aug 2013 23:19:42 GMT
26
+ - Tue, 13 Aug 2013 00:17:40 GMT
27
27
  Content-Type:
28
28
  - text/javascript
29
29
  Transfer-Encoding:
@@ -31,9 +31,9 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  X-Server-Response-Time:
34
- - '68'
34
+ - '53'
35
35
  X-Dropbox-Request-Id:
36
- - d2b01a94165ab3129245fd042136263e
36
+ - 0ecd296a38ef63875722e01e77c7a2dd
37
37
  Pragma:
38
38
  - no-cache
39
39
  Cache-Control:
@@ -43,7 +43,7 @@ http_interactions:
43
43
  X-Frame-Options:
44
44
  - SAMEORIGIN
45
45
  X-Requestid:
46
- - 6402bcb70e87d0514fa6fb7cd52a95c6
46
+ - ccd50b8c8d38e0278f95e18c97c6aa8a
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
@@ -56,5 +56,5 @@ http_interactions:
56
56
  "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
57
  "0 bytes"}'
58
58
  http_version:
59
- recorded_at: Fri, 09 Aug 2013 23:19:42 GMT
59
+ recorded_at: Tue, 13 Aug 2013 00:17:40 GMT
60
60
  recorded_with: VCR 2.5.0
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Fri, 09 Aug 2013 23:04:20 GMT
26
+ - Tue, 13 Aug 2013 00:17:39 GMT
27
27
  Content-Type:
28
28
  - text/javascript
29
29
  Transfer-Encoding:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Server-Response-Time:
34
34
  - '53'
35
35
  X-Dropbox-Request-Id:
36
- - 528947e35d908e7ff4e92dd56098d4a6
36
+ - f7b8691ffc3a00219a1f6d4b62a80730
37
37
  Pragma:
38
38
  - no-cache
39
39
  Cache-Control:
@@ -43,7 +43,7 @@ http_interactions:
43
43
  X-Frame-Options:
44
44
  - SAMEORIGIN
45
45
  X-Requestid:
46
- - de641c7a263442b98174f561d0484e1c
46
+ - 324a3dba8a1bb4232638c0d97e4efd2c
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"hash": "bf88e23a6fa5e851915a2b37069faf3c", "revision": 913527043,
@@ -75,5 +75,5 @@ http_interactions:
75
75
  false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
76
76
  "size": "20 bytes"}], "size": "0 bytes"}'
77
77
  http_version:
78
- recorded_at: Fri, 09 Aug 2013 23:04:20 GMT
78
+ recorded_at: Tue, 13 Aug 2013 00:17:39 GMT
79
79
  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
+ - Tue, 13 Aug 2013 00:17:39 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '60'
35
+ X-Dropbox-Request-Id:
36
+ - 8823bfb357f9c55d5999e136c0c49f30
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
+ - 2b84abfb39a95dffc40cf080b077e699
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: Tue, 13 Aug 2013 00:17:39 GMT
79
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,155 @@
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
+ - Tue, 13 Aug 2013 00:17:41 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '51'
35
+ X-Dropbox-Request-Id:
36
+ - 8c4a77c2d19a3e70a69f9b21390669ef
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
+ - 872444f300d6d118f1258d98d045797a
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: Tue, 13 Aug 2013 00:17:41 GMT
79
+ - request:
80
+ method: get
81
+ uri: https://api.dropbox.com/1/metadata/auto/Dev/test?file_limit=25000&include_deleted=false&list=true
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ''
85
+ headers:
86
+ Accept-Encoding:
87
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
88
+ Accept:
89
+ - '*/*'
90
+ User-Agent:
91
+ - OfficialDropboxRubySDK/1.6.1
92
+ Authorization:
93
+ - Bearer <DROPBOX_TOKEN>
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Server:
100
+ - nginx
101
+ Date:
102
+ - Tue, 13 Aug 2013 00:17:41 GMT
103
+ Content-Type:
104
+ - text/javascript
105
+ Transfer-Encoding:
106
+ - chunked
107
+ Connection:
108
+ - keep-alive
109
+ X-Server-Response-Time:
110
+ - '61'
111
+ X-Dropbox-Request-Id:
112
+ - 9108f65463a51779905a4b40f5b23c2b
113
+ Pragma:
114
+ - no-cache
115
+ Cache-Control:
116
+ - no-cache
117
+ X-Dropbox-Http-Protocol:
118
+ - None
119
+ X-Frame-Options:
120
+ - SAMEORIGIN
121
+ X-Requestid:
122
+ - 0754817983347df4660439f961b702b4
123
+ body:
124
+ encoding: UTF-8
125
+ string: '{"hash": "bf88e23a6fa5e851915a2b37069faf3c", "revision": 913527043,
126
+ "rev": "36735103002426b8", "thumb_exists": false, "bytes": 0, "modified":
127
+ "Fri, 09 Aug 2013 00:17:26 +0000", "path": "/Dev/test", "is_dir": true, "icon":
128
+ "folder", "root": "dropbox", "contents": [{"revision": 913527044, "rev": "36735104002426b8",
129
+ "thumb_exists": false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28
130
+ +0000", "path": "/Dev/test/.git", "is_dir": true, "icon": "folder", "root":
131
+ "dropbox", "size": "0 bytes"}, {"revision": 913527128, "rev": "36735158002426b8",
132
+ "thumb_exists": false, "bytes": 18, "modified": "Fri, 09 Aug 2013 00:17:36
133
+ +0000", "client_mtime": "Thu, 08 Aug 2013 20:44:11 +0000", "path": "/Dev/test/file1",
134
+ "is_dir": false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
135
+ "size": "18 bytes"}, {"revision": 913527046, "rev": "36735106002426b8", "thumb_exists":
136
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
137
+ "/Dev/test/folder1", "is_dir": true, "icon": "folder", "root": "dropbox",
138
+ "size": "0 bytes"}, {"revision": 913527047, "rev": "36735107002426b8", "thumb_exists":
139
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
140
+ "/Dev/test/folder2", "is_dir": true, "icon": "folder", "root": "dropbox",
141
+ "size": "0 bytes"}, {"revision": 913527045, "rev": "36735105002426b8", "thumb_exists":
142
+ false, "bytes": 0, "modified": "Fri, 09 Aug 2013 00:17:28 +0000", "path":
143
+ "/Dev/test/folder3", "is_dir": true, "icon": "folder", "root": "dropbox",
144
+ "size": "0 bytes"}, {"revision": 913527152, "rev": "36735170002426b8", "thumb_exists":
145
+ false, "bytes": 1078, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
146
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/LICENSE", "is_dir":
147
+ false, "icon": "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
148
+ "size": "1.1 KB"}, {"revision": 913527129, "rev": "36735159002426b8", "thumb_exists":
149
+ false, "bytes": 20, "modified": "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime":
150
+ "Thu, 08 Aug 2013 20:38:22 +0000", "path": "/Dev/test/README.md", "is_dir":
151
+ false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
152
+ "size": "20 bytes"}], "size": "0 bytes"}'
153
+ http_version:
154
+ recorded_at: Tue, 13 Aug 2013 00:17:41 GMT
155
+ recorded_with: VCR 2.5.0
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Fri, 09 Aug 2013 23:19:43 GMT
26
+ - Tue, 13 Aug 2013 00:17:41 GMT
27
27
  Content-Type:
28
28
  - text/javascript
29
29
  Transfer-Encoding:
@@ -31,9 +31,9 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  X-Server-Response-Time:
34
- - '49'
34
+ - '41'
35
35
  X-Dropbox-Request-Id:
36
- - d50044111e93d7d62f7cad786f25cb10
36
+ - 3aa994c65959b914f61be86cf4215910
37
37
  Pragma:
38
38
  - no-cache
39
39
  Cache-Control:
@@ -43,7 +43,7 @@ http_interactions:
43
43
  X-Frame-Options:
44
44
  - SAMEORIGIN
45
45
  X-Requestid:
46
- - dfc0ce433084bfdb0e14ac69dccea6e4
46
+ - 909f28e74172c7d97746b5a7a8e01b0d
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
@@ -56,5 +56,5 @@ http_interactions:
56
56
  "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
57
  "0 bytes"}'
58
58
  http_version:
59
- recorded_at: Fri, 09 Aug 2013 23:19:43 GMT
59
+ recorded_at: Tue, 13 Aug 2013 00:17:41 GMT
60
60
  recorded_with: VCR 2.5.0
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Fri, 09 Aug 2013 23:04:21 GMT
26
+ - Tue, 13 Aug 2013 00:17:40 GMT
27
27
  Content-Type:
28
28
  - text/javascript
29
29
  Transfer-Encoding:
@@ -31,9 +31,9 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  X-Server-Response-Time:
34
- - '60'
34
+ - '74'
35
35
  X-Dropbox-Request-Id:
36
- - 4bb445e6280dbda2242297deaccf6d1e
36
+ - 3b857616b4e07862900a7fb135c873e3
37
37
  Pragma:
38
38
  - no-cache
39
39
  Cache-Control:
@@ -43,7 +43,7 @@ http_interactions:
43
43
  X-Frame-Options:
44
44
  - SAMEORIGIN
45
45
  X-Requestid:
46
- - 51c179468646c793498cba5611400e72
46
+ - 4f3bb034e7489b2e4bafffa02041ccb7
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"hash": "bf88e23a6fa5e851915a2b37069faf3c", "revision": 913527043,
@@ -75,5 +75,5 @@ http_interactions:
75
75
  false, "icon": "page_white_text", "root": "dropbox", "mime_type": "application/octet-stream",
76
76
  "size": "20 bytes"}], "size": "0 bytes"}'
77
77
  http_version:
78
- recorded_at: Fri, 09 Aug 2013 23:04:21 GMT
78
+ recorded_at: Tue, 13 Aug 2013 00:17:40 GMT
79
79
  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
+ - Tue, 13 Aug 2013 00:17:40 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Server-Response-Time:
34
+ - '72'
35
+ X-Dropbox-Request-Id:
36
+ - 3a2cf15b5e9468310efff32dde8f601c
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
+ - badacf042c028f26cf1103f744c22e9a
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: Tue, 13 Aug 2013 00:17:40 GMT
79
+ recorded_with: VCR 2.5.0