fog-dropbox 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 (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rubocop.yml +20 -0
  4. data/.ruby-env.example +1 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/CONTRIBUTING.md +18 -0
  8. data/CONTRIBUTORS.md +47 -0
  9. data/Gemfile +4 -0
  10. data/LICENSE.md +20 -0
  11. data/README.md +73 -0
  12. data/Rakefile +12 -0
  13. data/fog-dropbox.gemspec +33 -0
  14. data/lib/fog/bin/dropbox.rb +70 -0
  15. data/lib/fog/dropbox.rb +17 -0
  16. data/lib/fog/dropbox/models/storage/directories.rb +26 -0
  17. data/lib/fog/dropbox/models/storage/directory.rb +40 -0
  18. data/lib/fog/dropbox/models/storage/file.rb +78 -0
  19. data/lib/fog/dropbox/models/storage/files.rb +41 -0
  20. data/lib/fog/dropbox/storage.rb +44 -0
  21. data/lib/fog/dropbox/version.rb +5 -0
  22. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/all.yml +170 -0
  23. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/get.yml +207 -0
  24. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/destroy.yml +171 -0
  25. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/files.yml +262 -0
  26. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/save.yml +208 -0
  27. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/destroy.yml +287 -0
  28. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/large_file.yml +278 -0
  29. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/small_file.yml +239 -0
  30. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/string.yml +519 -0
  31. data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/files.yml +554 -0
  32. data/spec/fog/dropbox/models/storage/directories_spec.rb +49 -0
  33. data/spec/fog/dropbox/models/storage/directory_spec.rb +65 -0
  34. data/spec/fog/dropbox/models/storage/file_spec.rb +106 -0
  35. data/spec/fog/dropbox/models/storage/files_spec.rb +90 -0
  36. data/spec/fog/dropbox/storage_spec.rb +15 -0
  37. data/spec/spec_helper.rb +8 -0
  38. metadata +210 -0
@@ -0,0 +1,239 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/FileTests?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.4
16
+ Authorization:
17
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 04 Apr 2015 01:13:01 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Set-Cookie:
36
+ - gvc=MTY3NTExOTk3MTE0MzY2NjExMjY4MDM3OTU2NzgwOTE5NjA0NTE3; expires=Thu, 02
37
+ Apr 2020 01:13:01 GMT; httponly; Path=/; secure
38
+ X-Server-Response-Time:
39
+ - '71'
40
+ X-Dropbox-Request-Id:
41
+ - 852edc1eb01517d95a2856fc588b3f55
42
+ Pragma:
43
+ - no-cache
44
+ Cache-Control:
45
+ - no-cache
46
+ X-Dropbox-Http-Protocol:
47
+ - None
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ body:
51
+ encoding: UTF-8
52
+ string: '{"size": "0 bytes", "hash": "377a7926af986958fdadc3c93c22f68e", "rev":
53
+ "a0341cc98e", "thumb_exists": false, "bytes": 0, "modified": "Fri, 03 Apr
54
+ 2015 23:53:14 +0000", "path": "/FileTests", "is_dir": true, "icon": "folder",
55
+ "root": "app_folder", "contents": [{"rev": "e1341cc98e", "thumb_exists": false,
56
+ "path": "/FileTests/Testfile", "is_dir": false, "client_mtime": "Sat, 04 Apr
57
+ 2015 01:12:59 +0000", "icon": "page_white", "bytes": 13, "modified": "Sat,
58
+ 04 Apr 2015 01:12:59 +0000", "size": "13 bytes", "root": "app_folder", "mime_type":
59
+ "application/octet-stream", "revision": 225}, {"rev": "a3341cc98e", "thumb_exists":
60
+ false, "path": "/FileTests/Testfile (1)", "is_dir": false, "client_mtime":
61
+ "Sat, 04 Apr 2015 00:21:12 +0000", "icon": "page_white", "bytes": 6291456,
62
+ "modified": "Sat, 04 Apr 2015 00:21:12 +0000", "size": "6 MB", "root": "app_folder",
63
+ "mime_type": "application/octet-stream", "revision": 163}], "revision": 160}'
64
+ http_version:
65
+ recorded_at: Sat, 04 Apr 2015 01:13:01 GMT
66
+ - request:
67
+ method: get
68
+ uri: https://api.dropbox.com/1/metadata/auto/FileTests/Testfile?file_limit=25000&include_deleted=false&list=true
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers:
73
+ Accept-Encoding:
74
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
75
+ Accept:
76
+ - "*/*"
77
+ User-Agent:
78
+ - OfficialDropboxRubySDK/1.6.4
79
+ Authorization:
80
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Server:
87
+ - nginx
88
+ Date:
89
+ - Sat, 04 Apr 2015 01:13:01 GMT
90
+ Content-Type:
91
+ - text/javascript
92
+ Transfer-Encoding:
93
+ - chunked
94
+ Connection:
95
+ - keep-alive
96
+ X-Content-Type-Options:
97
+ - nosniff
98
+ Set-Cookie:
99
+ - gvc=MTgxNjA5NjcwNjcwNzk0MzMyMDkyMTc5NDc5MTMzMDY2MDMwMjk5; expires=Thu, 02
100
+ Apr 2020 01:13:01 GMT; httponly; Path=/; secure
101
+ X-Server-Response-Time:
102
+ - '112'
103
+ X-Dropbox-Request-Id:
104
+ - c3e6a64d67562e8e6a3525890f17e5c9
105
+ Pragma:
106
+ - no-cache
107
+ Cache-Control:
108
+ - no-cache
109
+ X-Dropbox-Http-Protocol:
110
+ - None
111
+ X-Frame-Options:
112
+ - SAMEORIGIN
113
+ body:
114
+ encoding: UTF-8
115
+ string: '{"revision": 225, "bytes": 13, "thumb_exists": false, "rev": "e1341cc98e",
116
+ "modified": "Sat, 04 Apr 2015 01:12:59 +0000", "mime_type": "application/octet-stream",
117
+ "path": "/FileTests/Testfile", "is_dir": false, "size": "13 bytes", "root":
118
+ "app_folder", "client_mtime": "Sat, 04 Apr 2015 01:12:59 +0000", "icon": "page_white"}'
119
+ http_version:
120
+ recorded_at: Sat, 04 Apr 2015 01:13:01 GMT
121
+ - request:
122
+ method: put
123
+ uri: https://api-content.dropbox.com/1/files_put/auto/FileTests/Testfile?overwrite=true
124
+ body:
125
+ encoding: UTF-8
126
+ string: Bellaire Rose
127
+ headers:
128
+ Content-Type:
129
+ - application/octet-stream
130
+ Accept-Encoding:
131
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
132
+ Accept:
133
+ - "*/*"
134
+ User-Agent:
135
+ - OfficialDropboxRubySDK/1.6.4
136
+ Content-Length:
137
+ - 13
138
+ Authorization:
139
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Server:
146
+ - nginx
147
+ Date:
148
+ - Sat, 04 Apr 2015 01:13:02 GMT
149
+ Content-Type:
150
+ - text/javascript
151
+ Transfer-Encoding:
152
+ - chunked
153
+ Connection:
154
+ - keep-alive
155
+ X-Server-Response-Time:
156
+ - '427'
157
+ X-Dropbox-Request-Id:
158
+ - 93fd4c8486f04b8fea933c721976a26c
159
+ Pragma:
160
+ - no-cache
161
+ Cache-Control:
162
+ - no-cache
163
+ X-Robots-Tag:
164
+ - noindex, nofollow, noimageindex
165
+ body:
166
+ encoding: UTF-8
167
+ string: '{"revision": 225, "bytes": 13, "thumb_exists": false, "rev": "e1341cc98e",
168
+ "modified": "Sat, 04 Apr 2015 01:12:59 +0000", "mime_type": "application/octet-stream",
169
+ "path": "/FileTests/Testfile", "is_dir": false, "size": "13 bytes", "root":
170
+ "app_folder", "client_mtime": "Sat, 04 Apr 2015 01:12:59 +0000", "icon": "page_white"}'
171
+ http_version:
172
+ recorded_at: Sat, 04 Apr 2015 01:13:02 GMT
173
+ - request:
174
+ method: get
175
+ uri: https://api-content.dropbox.com/1/files/auto/FileTests/Testfile
176
+ body:
177
+ encoding: US-ASCII
178
+ string: ''
179
+ headers:
180
+ Accept-Encoding:
181
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
182
+ Accept:
183
+ - "*/*"
184
+ User-Agent:
185
+ - OfficialDropboxRubySDK/1.6.4
186
+ Authorization:
187
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
188
+ response:
189
+ status:
190
+ code: 200
191
+ message: OK
192
+ headers:
193
+ Server:
194
+ - nginx
195
+ Date:
196
+ - Sat, 04 Apr 2015 01:13:02 GMT
197
+ Content-Type:
198
+ - text/plain; charset=utf-8
199
+ Content-Length:
200
+ - '13'
201
+ Connection:
202
+ - keep-alive
203
+ Content-Security-Policy:
204
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
205
+ no-referrer;
206
+ Accept-Ranges:
207
+ - bytes
208
+ X-Dropbox-Metadata:
209
+ - '{"rev": "e1341cc98e", "thumb_exists": false, "path": "/FileTests/Testfile",
210
+ "is_dir": false, "client_mtime": "Sat, 04 Apr 2015 01:12:59 +0000", "icon":
211
+ "page_white", "bytes": 13, "modified": "Sat, 04 Apr 2015 01:12:59 +0000",
212
+ "size": "13 bytes", "root": "app_folder", "mime_type": "application/octet-stream",
213
+ "revision": 225}'
214
+ X-Server-Response-Time:
215
+ - '187'
216
+ Content-Security-Policy-Report-Only:
217
+ - default-src *; script-src 'none'; report-uri https://www.dropbox.com/csp_log
218
+ Etag:
219
+ - 225n
220
+ X-Dropbox-Request-Id:
221
+ - ebfa12bda4e94ea0c788857f2a0c74ab
222
+ Pragma:
223
+ - public
224
+ Cache-Control:
225
+ - max-age=0
226
+ X-Content-Security-Policy:
227
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
228
+ no-referrer;
229
+ X-Webkit-Csp:
230
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
231
+ no-referrer;
232
+ X-Robots-Tag:
233
+ - noindex, nofollow, noimageindex
234
+ body:
235
+ encoding: UTF-8
236
+ string: Bellaire Rose
237
+ http_version:
238
+ recorded_at: Sat, 04 Apr 2015 01:13:02 GMT
239
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,519 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.dropbox.com/1/metadata/auto/FileTests/Testfile?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.4
16
+ Authorization:
17
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 04 Apr 2015 01:13:00 GMT
27
+ Content-Type:
28
+ - text/javascript
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Set-Cookie:
36
+ - gvc=Mjk5NjkzOTQ2NzU3NDk4ODI0NzY2OTgxNjk2OTAwNDI3NjM0Mzk5; expires=Thu, 02
37
+ Apr 2020 01:13:00 GMT; httponly; Path=/; secure
38
+ X-Server-Response-Time:
39
+ - '61'
40
+ X-Dropbox-Request-Id:
41
+ - 96d5b6dde84446540e1c3904773a4492
42
+ Pragma:
43
+ - no-cache
44
+ Cache-Control:
45
+ - no-cache
46
+ X-Dropbox-Http-Protocol:
47
+ - None
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ body:
51
+ encoding: UTF-8
52
+ string: '{"revision": 225, "bytes": 13, "thumb_exists": false, "rev": "e1341cc98e",
53
+ "modified": "Sat, 04 Apr 2015 01:12:59 +0000", "mime_type": "application/octet-stream",
54
+ "path": "/FileTests/Testfile", "is_dir": false, "size": "13 bytes", "root":
55
+ "app_folder", "client_mtime": "Sat, 04 Apr 2015 01:12:59 +0000", "icon": "page_white"}'
56
+ http_version:
57
+ recorded_at: Sat, 04 Apr 2015 01:13:00 GMT
58
+ - request:
59
+ method: get
60
+ uri: https://api-content.dropbox.com/1/files/auto/FileTests/Testfile
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
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.4
71
+ Authorization:
72
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - nginx
80
+ Date:
81
+ - Sat, 04 Apr 2015 01:13:00 GMT
82
+ Content-Type:
83
+ - text/plain; charset=utf-8
84
+ Content-Length:
85
+ - '13'
86
+ Connection:
87
+ - keep-alive
88
+ Content-Security-Policy:
89
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
90
+ no-referrer;
91
+ Accept-Ranges:
92
+ - bytes
93
+ X-Dropbox-Metadata:
94
+ - '{"rev": "e1341cc98e", "thumb_exists": false, "path": "/FileTests/Testfile",
95
+ "is_dir": false, "client_mtime": "Sat, 04 Apr 2015 01:12:59 +0000", "icon":
96
+ "page_white", "bytes": 13, "modified": "Sat, 04 Apr 2015 01:12:59 +0000",
97
+ "size": "13 bytes", "root": "app_folder", "mime_type": "application/octet-stream",
98
+ "revision": 225}'
99
+ X-Server-Response-Time:
100
+ - '182'
101
+ Content-Security-Policy-Report-Only:
102
+ - default-src *; script-src 'none'; report-uri https://www.dropbox.com/csp_log
103
+ Etag:
104
+ - 225n
105
+ X-Dropbox-Request-Id:
106
+ - 773e4b92616248824406539097acdbbf
107
+ Pragma:
108
+ - public
109
+ Cache-Control:
110
+ - max-age=0
111
+ X-Content-Security-Policy:
112
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
113
+ no-referrer;
114
+ X-Webkit-Csp:
115
+ - sandbox allow-scripts allow-forms allow-popups allow-top-navigation; referrer
116
+ no-referrer;
117
+ X-Robots-Tag:
118
+ - noindex, nofollow, noimageindex
119
+ body:
120
+ encoding: UTF-8
121
+ string: Bellaire Rose
122
+ http_version:
123
+ recorded_at: Sat, 04 Apr 2015 01:13:00 GMT
124
+ - request:
125
+ method: put
126
+ uri: https://api-content.dropbox.com/1/files_put/auto/FileTests/Testfile?overwrite=true
127
+ body:
128
+ encoding: UTF-8
129
+ string: Bellaire Rose
130
+ headers:
131
+ Content-Type:
132
+ - application/octet-stream
133
+ Accept-Encoding:
134
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
135
+ Accept:
136
+ - "*/*"
137
+ User-Agent:
138
+ - OfficialDropboxRubySDK/1.6.4
139
+ Content-Length:
140
+ - 13
141
+ Authorization:
142
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Server:
149
+ - nginx
150
+ Date:
151
+ - Sat, 04 Apr 2015 01:13:12 GMT
152
+ Content-Type:
153
+ - text/javascript
154
+ Transfer-Encoding:
155
+ - chunked
156
+ Connection:
157
+ - keep-alive
158
+ X-Server-Response-Time:
159
+ - '617'
160
+ X-Dropbox-Request-Id:
161
+ - 46d625fc430f6e3f3cfcf73bdd112f0b
162
+ Pragma:
163
+ - no-cache
164
+ Cache-Control:
165
+ - no-cache
166
+ X-Robots-Tag:
167
+ - noindex, nofollow, noimageindex
168
+ body:
169
+ encoding: UTF-8
170
+ string: '{"revision": 227, "bytes": 13, "thumb_exists": false, "rev": "e3341cc98e",
171
+ "modified": "Sat, 04 Apr 2015 01:13:11 +0000", "mime_type": "application/octet-stream",
172
+ "path": "/FileTests/Testfile", "is_dir": false, "size": "13 bytes", "root":
173
+ "app_folder", "client_mtime": "Sat, 04 Apr 2015 01:13:11 +0000", "icon": "page_white"}'
174
+ http_version:
175
+ recorded_at: Sat, 04 Apr 2015 01:13:12 GMT
176
+ - request:
177
+ method: get
178
+ uri: https://api.dropbox.com/1/metadata/auto/FileTests?file_limit=25000&include_deleted=false&list=true
179
+ body:
180
+ encoding: US-ASCII
181
+ string: ''
182
+ headers:
183
+ Accept-Encoding:
184
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
185
+ Accept:
186
+ - "*/*"
187
+ User-Agent:
188
+ - OfficialDropboxRubySDK/1.6.4
189
+ Authorization:
190
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
191
+ response:
192
+ status:
193
+ code: 200
194
+ message: OK
195
+ headers:
196
+ Server:
197
+ - nginx
198
+ Date:
199
+ - Sat, 04 Apr 2015 01:13:12 GMT
200
+ Content-Type:
201
+ - text/javascript
202
+ Transfer-Encoding:
203
+ - chunked
204
+ Connection:
205
+ - keep-alive
206
+ X-Content-Type-Options:
207
+ - nosniff
208
+ Set-Cookie:
209
+ - gvc=MzEzMDcwNTY3MTE1MzkyMzUxOTE1NjE2OTMzMzc3OTE2MTk0MzQ0; expires=Thu, 02
210
+ Apr 2020 01:13:12 GMT; httponly; Path=/; secure
211
+ X-Server-Response-Time:
212
+ - '72'
213
+ X-Dropbox-Request-Id:
214
+ - a57e48b717c9b28856f734b4708cdf8d
215
+ Pragma:
216
+ - no-cache
217
+ Cache-Control:
218
+ - no-cache
219
+ X-Dropbox-Http-Protocol:
220
+ - None
221
+ X-Frame-Options:
222
+ - SAMEORIGIN
223
+ body:
224
+ encoding: UTF-8
225
+ string: '{"size": "0 bytes", "hash": "8cf3ea26d25be69a01f6dc19bdf50700", "rev":
226
+ "a0341cc98e", "thumb_exists": false, "bytes": 0, "modified": "Fri, 03 Apr
227
+ 2015 23:53:14 +0000", "path": "/FileTests", "is_dir": true, "icon": "folder",
228
+ "root": "app_folder", "contents": [{"rev": "e3341cc98e", "thumb_exists": false,
229
+ "path": "/FileTests/Testfile", "is_dir": false, "client_mtime": "Sat, 04 Apr
230
+ 2015 01:13:11 +0000", "icon": "page_white", "bytes": 13, "modified": "Sat,
231
+ 04 Apr 2015 01:13:11 +0000", "size": "13 bytes", "root": "app_folder", "mime_type":
232
+ "application/octet-stream", "revision": 227}, {"rev": "a3341cc98e", "thumb_exists":
233
+ false, "path": "/FileTests/Testfile (1)", "is_dir": false, "client_mtime":
234
+ "Sat, 04 Apr 2015 00:21:12 +0000", "icon": "page_white", "bytes": 6291456,
235
+ "modified": "Sat, 04 Apr 2015 00:21:12 +0000", "size": "6 MB", "root": "app_folder",
236
+ "mime_type": "application/octet-stream", "revision": 163}], "revision": 160}'
237
+ http_version:
238
+ recorded_at: Sat, 04 Apr 2015 01:13:12 GMT
239
+ - request:
240
+ method: get
241
+ uri: https://api.dropbox.com/1/metadata/auto/FileTests/Testfile?file_limit=25000&include_deleted=false&list=true
242
+ body:
243
+ encoding: US-ASCII
244
+ string: ''
245
+ headers:
246
+ Accept-Encoding:
247
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
248
+ Accept:
249
+ - "*/*"
250
+ User-Agent:
251
+ - OfficialDropboxRubySDK/1.6.4
252
+ Authorization:
253
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
254
+ response:
255
+ status:
256
+ code: 200
257
+ message: OK
258
+ headers:
259
+ Server:
260
+ - nginx
261
+ Date:
262
+ - Sat, 04 Apr 2015 01:13:12 GMT
263
+ Content-Type:
264
+ - text/javascript
265
+ Transfer-Encoding:
266
+ - chunked
267
+ Connection:
268
+ - keep-alive
269
+ X-Content-Type-Options:
270
+ - nosniff
271
+ Set-Cookie:
272
+ - gvc=Mzc2MjIzNzk3MDc0NzIzMDMwODA2MTU2NjY4MTMzMzk4Mzg2NjQ%3D; expires=Thu, 02
273
+ Apr 2020 01:13:12 GMT; httponly; Path=/; secure
274
+ X-Server-Response-Time:
275
+ - '47'
276
+ X-Dropbox-Request-Id:
277
+ - fc44ea3335b7189520c7ad0ebfa4ddbe
278
+ Pragma:
279
+ - no-cache
280
+ Cache-Control:
281
+ - no-cache
282
+ X-Dropbox-Http-Protocol:
283
+ - None
284
+ X-Frame-Options:
285
+ - SAMEORIGIN
286
+ body:
287
+ encoding: UTF-8
288
+ string: '{"revision": 227, "bytes": 13, "thumb_exists": false, "rev": "e3341cc98e",
289
+ "modified": "Sat, 04 Apr 2015 01:13:11 +0000", "mime_type": "application/octet-stream",
290
+ "path": "/FileTests/Testfile", "is_dir": false, "size": "13 bytes", "root":
291
+ "app_folder", "client_mtime": "Sat, 04 Apr 2015 01:13:11 +0000", "icon": "page_white"}'
292
+ http_version:
293
+ recorded_at: Sat, 04 Apr 2015 01:13:12 GMT
294
+ - request:
295
+ method: get
296
+ uri: https://api.dropbox.com/1/shares/auto/FileTests/Testfile
297
+ body:
298
+ encoding: US-ASCII
299
+ string: ''
300
+ headers:
301
+ Accept-Encoding:
302
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
303
+ Accept:
304
+ - "*/*"
305
+ User-Agent:
306
+ - OfficialDropboxRubySDK/1.6.4
307
+ Authorization:
308
+ - Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
309
+ response:
310
+ status:
311
+ code: 200
312
+ message: OK
313
+ headers:
314
+ Server:
315
+ - nginx
316
+ Date:
317
+ - Sat, 04 Apr 2015 01:13:12 GMT
318
+ Content-Type:
319
+ - text/javascript
320
+ Transfer-Encoding:
321
+ - chunked
322
+ Connection:
323
+ - keep-alive
324
+ X-Content-Type-Options:
325
+ - nosniff
326
+ Set-Cookie:
327
+ - gvc=MzMwODAwOTI4NTg1MTY1MjY1MTIzMjI2MjA5MjkzNDMzNjkyMzA2; expires=Thu, 02
328
+ Apr 2020 01:13:12 GMT; httponly; Path=/; secure
329
+ X-Server-Response-Time:
330
+ - '144'
331
+ X-Dropbox-Request-Id:
332
+ - 6c9274b0acf8faaeab6c34409ca476c9
333
+ Pragma:
334
+ - no-cache
335
+ Cache-Control:
336
+ - no-cache
337
+ X-Dropbox-Http-Protocol:
338
+ - None
339
+ X-Frame-Options:
340
+ - SAMEORIGIN
341
+ body:
342
+ encoding: UTF-8
343
+ string: '{"url": "https://db.tt/dBQN0I0l", "expires": "Tue, 01 Jan 2030 00:00:00
344
+ +0000", "visibility": "PUBLIC"}'
345
+ http_version:
346
+ recorded_at: Sat, 04 Apr 2015 01:13:12 GMT
347
+ - request:
348
+ method: get
349
+ uri: https://db.tt/dBQN0I0l
350
+ body:
351
+ encoding: US-ASCII
352
+ string: ''
353
+ headers:
354
+ Accept-Encoding:
355
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
356
+ Accept:
357
+ - "*/*"
358
+ User-Agent:
359
+ - Ruby
360
+ response:
361
+ status:
362
+ code: 302
363
+ message: FOUND
364
+ headers:
365
+ Server:
366
+ - nginx
367
+ Date:
368
+ - Sat, 04 Apr 2015 01:13:12 GMT
369
+ Content-Type:
370
+ - text/html; charset=utf-8
371
+ Transfer-Encoding:
372
+ - chunked
373
+ Connection:
374
+ - keep-alive
375
+ Location:
376
+ - https://www.dropbox.com/s/o5xfb8ugn14436e/Testfile?dl=0
377
+ Pragma:
378
+ - no-cache
379
+ Cache-Control:
380
+ - no-cache
381
+ body:
382
+ encoding: UTF-8
383
+ string: "<html>\r\n <head><title>Found</title></head>\r\n <body>\r\n <h1>Found</h1>\r\n
384
+ \ <p>The resource was found at <a href=\"https://www.dropbox.com/s/o5xfb8ugn14436e/Testfile?dl=0\">https://www.dropbox.com/s/o5xfb8ugn14436e/Testfile?dl=0</a>;\r\nyou
385
+ should be redirected automatically.\r\n\r\n<!-- --></p>\r\n <hr noshade>\r\n
386
+ \ <div align=\"right\">WSGI Server</div>\r\n </body>\r\n</html>\r\n"
387
+ http_version:
388
+ recorded_at: Sat, 04 Apr 2015 01:13:12 GMT
389
+ - request:
390
+ method: get
391
+ uri: https://www.dropbox.com/s/o5xfb8ugn14436e/Testfile?dl=1
392
+ body:
393
+ encoding: US-ASCII
394
+ string: ''
395
+ headers:
396
+ Accept-Encoding:
397
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
398
+ Accept:
399
+ - "*/*"
400
+ User-Agent:
401
+ - Ruby
402
+ response:
403
+ status:
404
+ code: 302
405
+ message: FOUND
406
+ headers:
407
+ Server:
408
+ - nginx
409
+ Date:
410
+ - Sat, 04 Apr 2015 01:13:13 GMT
411
+ Content-Type:
412
+ - text/html; charset=utf-8
413
+ Transfer-Encoding:
414
+ - chunked
415
+ Connection:
416
+ - keep-alive
417
+ X-Xss-Protection:
418
+ - 1; mode=block
419
+ X-Robots-Tag:
420
+ - noindex, nofollow, noimageindex
421
+ Content-Security-Policy:
422
+ - 'img-src https://* data: ; connect-src https://* ws://127.0.0.1:*/ws ; media-src
423
+ https://* ; object-src https://cf.dropboxstatic.com/static/ https://www.dropboxstatic.com
424
+ ''self'' https://flash.dropboxstatic.com https://swf.dropboxstatic.com https://dbxlocal.dropboxstatic.com
425
+ https://dl-doc.dropboxusercontent.com https://dl-web.dropbox.com https://dl.dropboxusercontent.com
426
+ ; default-src ''none'' ; font-src https://* data: ; frame-src https://* carousel://*
427
+ dbapi-6://* itms-apps://* itms-appss://* ; style-src https://* ''unsafe-inline''
428
+ ''unsafe-eval'' ; report-uri https://www.dropbox.com/csp_log ; script-src
429
+ https://ajax.googleapis.com/ajax/libs/jquery/ ''unsafe-inline'' ''unsafe-eval''
430
+ ''self'' https://cf.dropboxstatic.com/static/javascript/ https://cf.dropboxstatic.com/static/coffee/compiled/
431
+ https://www.dropboxstatic.com/static/javascript/ https://www.dropboxstatic.com/static/coffee/
432
+ https://www.google.com/recaptcha/api/ ''nonce-7753742237934177050'' ;'
433
+ Set-Cookie:
434
+ - gvc=MjYyMTg4NDgyODk5MDYwNzg2MDk2ODgzMjg1Njg0NDkwNTY3Njg2; expires=Thu, 02
435
+ Apr 2020 01:13:13 GMT; httponly; Path=/; secure
436
+ - js_csrf=J0_bt-FXCn5PZeq01O9WVVu6; Domain=www.dropbox.com; expires=Mon, 04
437
+ May 2015 01:13:13 GMT; Path=/; secure
438
+ - locale=en; Domain=dropbox.com; expires=Thu, 02 Apr 2020 01:13:13 GMT; Path=/;
439
+ secure
440
+ - t=J0_bt-FXCn5PZeq01O9WVVu6; Domain=dropbox.com; expires=Mon, 04 May 2015 01:13:13
441
+ GMT; httponly; Path=/; secure
442
+ X-Dropbox-Request-Id:
443
+ - 23245bcb0cbdd906cc01045eae0540e2
444
+ Pragma:
445
+ - no-cache
446
+ Cache-Control:
447
+ - no-cache
448
+ X-Dropbox-Http-Protocol:
449
+ - None
450
+ X-Frame-Options:
451
+ - SAMEORIGIN
452
+ X-Content-Type-Options:
453
+ - nosniff
454
+ Location:
455
+ - https://dl.dropboxusercontent.com/content_link/VoIKH97a8FThWqmNRWcXyQh7o94LLYFr6b8W2TdXfXqYsNKFZ7rSwTNMLHx2wDgb?dl=1
456
+ Strict-Transport-Security:
457
+ - max-age=15552000; includeSubDomains
458
+ body:
459
+ encoding: UTF-8
460
+ string: "<html>\r\n <head><title>Found</title></head>\r\n <body>\r\n <h1>Found</h1>\r\n
461
+ \ <p>The resource was found at <a href=\"https://dl.dropboxusercontent.com/content_link/VoIKH97a8FThWqmNRWcXyQh7o94LLYFr6b8W2TdXfXqYsNKFZ7rSwTNMLHx2wDgb?dl=1\">https://dl.dropboxusercontent.com/content_link/VoIKH97a8FThWqmNRWcXyQh7o94LLYFr6b8W2TdXfXqYsNKFZ7rSwTNMLHx2wDgb?dl=1</a>;\r\nyou
462
+ should be redirected automatically.\r\n\r\n<!-- --></p>\r\n <hr noshade>\r\n
463
+ \ <div align=\"right\">WSGI Server</div>\r\n </body>\r\n</html>\r\n"
464
+ http_version:
465
+ recorded_at: Sat, 04 Apr 2015 01:13:13 GMT
466
+ - request:
467
+ method: get
468
+ uri: https://dl.dropboxusercontent.com/content_link/VoIKH97a8FThWqmNRWcXyQh7o94LLYFr6b8W2TdXfXqYsNKFZ7rSwTNMLHx2wDgb?dl=1
469
+ body:
470
+ encoding: US-ASCII
471
+ string: ''
472
+ headers:
473
+ Accept-Encoding:
474
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
475
+ Accept:
476
+ - "*/*"
477
+ User-Agent:
478
+ - Ruby
479
+ response:
480
+ status:
481
+ code: 200
482
+ message: OK
483
+ headers:
484
+ Accept-Ranges:
485
+ - none
486
+ Cache-Control:
487
+ - max-age=0
488
+ Content-Disposition:
489
+ - attachment; filename="Testfile"; filename*=UTF-8''Testfile
490
+ Content-Type:
491
+ - text/plain; charset=utf-8
492
+ Date:
493
+ - Sat, 04 Apr 2015 01:13:13 GMT
494
+ Etag:
495
+ - 227d
496
+ Pragma:
497
+ - public
498
+ Server:
499
+ - nginx
500
+ Set-Cookie:
501
+ - uc_session=RVMiL8ss6Uat3sIcBEmBHBzaLZVLknUHXjBIBP05s7t6LBfTsw2K03lbx6er2Yo8;
502
+ Domain=dropboxusercontent.com; httponly; Path=/; secure
503
+ X-Dropbox-Request-Id:
504
+ - 5c95ea557b2580e58af6dbde28b7d35b
505
+ X-Robots-Tag:
506
+ - noindex, nofollow
507
+ - noindex, nofollow, noimageindex
508
+ X-Server-Response-Time:
509
+ - '198'
510
+ Content-Length:
511
+ - '13'
512
+ Connection:
513
+ - keep-alive
514
+ body:
515
+ encoding: UTF-8
516
+ string: Bellaire Rose
517
+ http_version:
518
+ recorded_at: Sat, 04 Apr 2015 01:13:13 GMT
519
+ recorded_with: VCR 2.9.3