file-manager 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/file-manager.gemspec +1 -1
- data/lib/file_manager.rb +4 -0
- data/lib/local_file_manager.rb +11 -0
- data/lib/memory_file_manager.rb +9 -0
- data/lib/s3_file_manager.rb +18 -0
- data/test/file_manager_test.rb +14 -0
- data/test/vcr_cassettes/test_downloading_to_temp_file.yml +207 -0
- data/test/vcr_cassettes/test_listing_files.yml +92 -84
- data/test/vcr_cassettes/test_listing_files_in_sub_dir.yml +91 -83
- data/test/vcr_cassettes/test_reading.yml +59 -54
- data/test/vcr_cassettes/test_reading_in_sub_dir.yml +59 -54
- metadata +5 -4
@@ -12,48 +12,49 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- ''
|
14
14
|
User-Agent:
|
15
|
-
- aws-sdk-ruby2/2.2.13
|
15
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
16
16
|
X-Amz-Date:
|
17
|
-
-
|
17
|
+
- 20170905T193114Z
|
18
18
|
Host:
|
19
19
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
20
20
|
X-Amz-Content-Sha256:
|
21
21
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
22
22
|
Authorization:
|
23
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
23
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
24
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=1e6d6d9804f0e81eff1420360c5a69381378bae89815ac3bec6ab4aa29673b21
|
24
25
|
Content-Length:
|
25
26
|
- '0'
|
26
27
|
Accept:
|
27
|
-
-
|
28
|
+
- "*/*"
|
28
29
|
response:
|
29
30
|
status:
|
30
31
|
code: 404
|
31
32
|
message: Not Found
|
32
33
|
headers:
|
33
34
|
X-Amz-Request-Id:
|
34
|
-
-
|
35
|
+
- AD76AE1BEC8EB2D9
|
35
36
|
X-Amz-Id-2:
|
36
|
-
-
|
37
|
+
- 3IoluOFr3GMeWgbgK7iCr9YXA1hPQm95+lLKJ9fgGm0JksC7ScykDwyfGKOOuEYTyHYumItHAnE=
|
37
38
|
Content-Type:
|
38
39
|
- application/xml
|
39
40
|
Transfer-Encoding:
|
40
41
|
- chunked
|
41
42
|
Date:
|
42
|
-
-
|
43
|
+
- Tue, 05 Sep 2017 19:31:14 GMT
|
43
44
|
Server:
|
44
45
|
- AmazonS3
|
45
46
|
body:
|
46
|
-
encoding:
|
47
|
+
encoding: UTF-8
|
47
48
|
string: |-
|
48
49
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>not_saved</Key><RequestId>
|
50
|
-
http_version:
|
51
|
-
recorded_at:
|
50
|
+
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>not_saved</Key><RequestId>AD76AE1BEC8EB2D9</RequestId><HostId>3IoluOFr3GMeWgbgK7iCr9YXA1hPQm95+lLKJ9fgGm0JksC7ScykDwyfGKOOuEYTyHYumItHAnE=</HostId></Error>
|
51
|
+
http_version:
|
52
|
+
recorded_at: Tue, 05 Sep 2017 19:31:15 GMT
|
52
53
|
- request:
|
53
54
|
method: put
|
54
55
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved
|
55
56
|
body:
|
56
|
-
encoding:
|
57
|
+
encoding: UTF-8
|
57
58
|
string: content
|
58
59
|
headers:
|
59
60
|
Content-Type:
|
@@ -61,34 +62,35 @@ http_interactions:
|
|
61
62
|
Accept-Encoding:
|
62
63
|
- ''
|
63
64
|
User-Agent:
|
64
|
-
- aws-sdk-ruby2/2.2.13
|
65
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
65
66
|
Expect:
|
66
67
|
- 100-continue
|
67
68
|
Content-Md5:
|
68
69
|
- mgNkuembtIDdJeHwKEyFVQ==
|
69
70
|
X-Amz-Date:
|
70
|
-
-
|
71
|
+
- 20170905T193115Z
|
71
72
|
Host:
|
72
73
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
73
74
|
X-Amz-Content-Sha256:
|
74
75
|
- ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73
|
75
76
|
Authorization:
|
76
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
77
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
78
|
+
SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=e910535847ad770f0216e71511f6c2c5ad74fa6d9673b6518deb84623a4de253
|
77
79
|
Content-Length:
|
78
80
|
- '7'
|
79
81
|
Accept:
|
80
|
-
-
|
82
|
+
- "*/*"
|
81
83
|
response:
|
82
84
|
status:
|
83
85
|
code: 200
|
84
86
|
message: OK
|
85
87
|
headers:
|
86
88
|
X-Amz-Id-2:
|
87
|
-
-
|
89
|
+
- onUdLRsx35Dm85dNQqv00ZFPxyGLWIvkFcfErDZQDgBaccNN1V164kLAoG09vEvtQUJDzAqRMy8=
|
88
90
|
X-Amz-Request-Id:
|
89
|
-
-
|
91
|
+
- A9BD7D0362896E09
|
90
92
|
Date:
|
91
|
-
-
|
93
|
+
- Tue, 05 Sep 2017 19:31:17 GMT
|
92
94
|
Etag:
|
93
95
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
94
96
|
Content-Length:
|
@@ -96,10 +98,10 @@ http_interactions:
|
|
96
98
|
Server:
|
97
99
|
- AmazonS3
|
98
100
|
body:
|
99
|
-
encoding:
|
101
|
+
encoding: UTF-8
|
100
102
|
string: ''
|
101
|
-
http_version:
|
102
|
-
recorded_at:
|
103
|
+
http_version:
|
104
|
+
recorded_at: Tue, 05 Sep 2017 19:31:16 GMT
|
103
105
|
- request:
|
104
106
|
method: get
|
105
107
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved
|
@@ -112,32 +114,33 @@ http_interactions:
|
|
112
114
|
Accept-Encoding:
|
113
115
|
- ''
|
114
116
|
User-Agent:
|
115
|
-
- aws-sdk-ruby2/2.2.13
|
117
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
116
118
|
X-Amz-Date:
|
117
|
-
-
|
119
|
+
- 20170905T193116Z
|
118
120
|
Host:
|
119
121
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
120
122
|
X-Amz-Content-Sha256:
|
121
123
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
122
124
|
Authorization:
|
123
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
125
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
126
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=a7178c952aaa3e01b64969ba20e4aa230571f067648e82b35af9f941ef950d74
|
124
127
|
Content-Length:
|
125
128
|
- '0'
|
126
129
|
Accept:
|
127
|
-
-
|
130
|
+
- "*/*"
|
128
131
|
response:
|
129
132
|
status:
|
130
133
|
code: 200
|
131
134
|
message: OK
|
132
135
|
headers:
|
133
136
|
X-Amz-Id-2:
|
134
|
-
-
|
137
|
+
- Ym4+s7pyir1KIzyyPGSumZaDC9SQa4ooxPPiaxw0RoKAvmZMqdH1mVXJXlEPk2gHmULL6BubOIE=
|
135
138
|
X-Amz-Request-Id:
|
136
|
-
-
|
139
|
+
- ED59411FE4752FB1
|
137
140
|
Date:
|
138
|
-
-
|
141
|
+
- Tue, 05 Sep 2017 19:31:17 GMT
|
139
142
|
Last-Modified:
|
140
|
-
-
|
143
|
+
- Tue, 05 Sep 2017 19:31:17 GMT
|
141
144
|
Etag:
|
142
145
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
143
146
|
Accept-Ranges:
|
@@ -149,10 +152,10 @@ http_interactions:
|
|
149
152
|
Server:
|
150
153
|
- AmazonS3
|
151
154
|
body:
|
152
|
-
encoding:
|
155
|
+
encoding: UTF-8
|
153
156
|
string: content
|
154
|
-
http_version:
|
155
|
-
recorded_at:
|
157
|
+
http_version:
|
158
|
+
recorded_at: Tue, 05 Sep 2017 19:31:17 GMT
|
156
159
|
- request:
|
157
160
|
method: delete
|
158
161
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved
|
@@ -165,37 +168,38 @@ http_interactions:
|
|
165
168
|
Accept-Encoding:
|
166
169
|
- ''
|
167
170
|
User-Agent:
|
168
|
-
- aws-sdk-ruby2/2.2.13
|
171
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
169
172
|
X-Amz-Date:
|
170
|
-
-
|
173
|
+
- 20170905T193117Z
|
171
174
|
Host:
|
172
175
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
173
176
|
X-Amz-Content-Sha256:
|
174
177
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
175
178
|
Authorization:
|
176
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
179
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
180
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=129102e679227078584c2718cc3937c16aa542f00cfa0b23b9f19755e6cd407e
|
177
181
|
Content-Length:
|
178
182
|
- '0'
|
179
183
|
Accept:
|
180
|
-
-
|
184
|
+
- "*/*"
|
181
185
|
response:
|
182
186
|
status:
|
183
187
|
code: 204
|
184
188
|
message: No Content
|
185
189
|
headers:
|
186
190
|
X-Amz-Id-2:
|
187
|
-
-
|
191
|
+
- fN0TbD5X+L1N9n1CAI5gzwJNM32Xing7Iow8PBgBlq8UI3e+zA037hFVTObuiYm7JmM9Nu0AOdA=
|
188
192
|
X-Amz-Request-Id:
|
189
|
-
-
|
193
|
+
- FB7B938D0FEFD1D8
|
190
194
|
Date:
|
191
|
-
-
|
195
|
+
- Tue, 05 Sep 2017 19:31:18 GMT
|
192
196
|
Server:
|
193
197
|
- AmazonS3
|
194
198
|
body:
|
195
|
-
encoding:
|
199
|
+
encoding: UTF-8
|
196
200
|
string: ''
|
197
|
-
http_version:
|
198
|
-
recorded_at:
|
201
|
+
http_version:
|
202
|
+
recorded_at: Tue, 05 Sep 2017 19:31:17 GMT
|
199
203
|
- request:
|
200
204
|
method: get
|
201
205
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved
|
@@ -208,41 +212,42 @@ http_interactions:
|
|
208
212
|
Accept-Encoding:
|
209
213
|
- ''
|
210
214
|
User-Agent:
|
211
|
-
- aws-sdk-ruby2/2.2.13
|
215
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
212
216
|
X-Amz-Date:
|
213
|
-
-
|
217
|
+
- 20170905T193117Z
|
214
218
|
Host:
|
215
219
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
216
220
|
X-Amz-Content-Sha256:
|
217
221
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
218
222
|
Authorization:
|
219
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
223
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
224
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=48579a30590dda3821888e98ccdb6084736386155f6aeb932f84b5272d5d7917
|
220
225
|
Content-Length:
|
221
226
|
- '0'
|
222
227
|
Accept:
|
223
|
-
-
|
228
|
+
- "*/*"
|
224
229
|
response:
|
225
230
|
status:
|
226
231
|
code: 404
|
227
232
|
message: Not Found
|
228
233
|
headers:
|
229
234
|
X-Amz-Request-Id:
|
230
|
-
-
|
235
|
+
- 79212B043646F1EB
|
231
236
|
X-Amz-Id-2:
|
232
|
-
-
|
237
|
+
- vKoUnrJ5czc8qPUQ0ZjJDrFV8QlfA3lQBeKMHCjot7pzO/ctTAb30R20leWcUAV2BFXwl3hlIco=
|
233
238
|
Content-Type:
|
234
239
|
- application/xml
|
235
240
|
Transfer-Encoding:
|
236
241
|
- chunked
|
237
242
|
Date:
|
238
|
-
-
|
243
|
+
- Tue, 05 Sep 2017 19:31:18 GMT
|
239
244
|
Server:
|
240
245
|
- AmazonS3
|
241
246
|
body:
|
242
|
-
encoding:
|
247
|
+
encoding: UTF-8
|
243
248
|
string: |-
|
244
249
|
<?xml version="1.0" encoding="UTF-8"?>
|
245
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>saved</Key><RequestId>
|
246
|
-
http_version:
|
247
|
-
recorded_at:
|
250
|
+
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>saved</Key><RequestId>79212B043646F1EB</RequestId><HostId>vKoUnrJ5czc8qPUQ0ZjJDrFV8QlfA3lQBeKMHCjot7pzO/ctTAb30R20leWcUAV2BFXwl3hlIco=</HostId></Error>
|
251
|
+
http_version:
|
252
|
+
recorded_at: Tue, 05 Sep 2017 19:31:18 GMT
|
248
253
|
recorded_with: VCR 3.0.1
|
@@ -12,48 +12,49 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- ''
|
14
14
|
User-Agent:
|
15
|
-
- aws-sdk-ruby2/2.2.13
|
15
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
16
16
|
X-Amz-Date:
|
17
|
-
-
|
17
|
+
- 20170905T193101Z
|
18
18
|
Host:
|
19
19
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
20
20
|
X-Amz-Content-Sha256:
|
21
21
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
22
22
|
Authorization:
|
23
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
23
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
24
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=8e6fabe1bd91528eac9a45870fae963b035e4306a055a3054687b6a1d2dac050
|
24
25
|
Content-Length:
|
25
26
|
- '0'
|
26
27
|
Accept:
|
27
|
-
-
|
28
|
+
- "*/*"
|
28
29
|
response:
|
29
30
|
status:
|
30
31
|
code: 404
|
31
32
|
message: Not Found
|
32
33
|
headers:
|
33
34
|
X-Amz-Request-Id:
|
34
|
-
-
|
35
|
+
- 69665843E0C8E6CF
|
35
36
|
X-Amz-Id-2:
|
36
|
-
-
|
37
|
+
- OrKCTxdIGldeERRtih4nwMw95V5nc6jsN29FMYFluDN3cdK4TXv1vELrXTn5QVo9Kh9mdYA0e2Y=
|
37
38
|
Content-Type:
|
38
39
|
- application/xml
|
39
40
|
Transfer-Encoding:
|
40
41
|
- chunked
|
41
42
|
Date:
|
42
|
-
-
|
43
|
+
- Tue, 05 Sep 2017 19:31:01 GMT
|
43
44
|
Server:
|
44
45
|
- AmazonS3
|
45
46
|
body:
|
46
|
-
encoding:
|
47
|
+
encoding: UTF-8
|
47
48
|
string: |-
|
48
49
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>sub_dir/not_saved</Key><RequestId>
|
50
|
-
http_version:
|
51
|
-
recorded_at:
|
50
|
+
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>sub_dir/not_saved</Key><RequestId>69665843E0C8E6CF</RequestId><HostId>OrKCTxdIGldeERRtih4nwMw95V5nc6jsN29FMYFluDN3cdK4TXv1vELrXTn5QVo9Kh9mdYA0e2Y=</HostId></Error>
|
51
|
+
http_version:
|
52
|
+
recorded_at: Tue, 05 Sep 2017 19:31:01 GMT
|
52
53
|
- request:
|
53
54
|
method: put
|
54
55
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/sub_dir/saved
|
55
56
|
body:
|
56
|
-
encoding:
|
57
|
+
encoding: UTF-8
|
57
58
|
string: content
|
58
59
|
headers:
|
59
60
|
Content-Type:
|
@@ -61,34 +62,35 @@ http_interactions:
|
|
61
62
|
Accept-Encoding:
|
62
63
|
- ''
|
63
64
|
User-Agent:
|
64
|
-
- aws-sdk-ruby2/2.2.13
|
65
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
65
66
|
Expect:
|
66
67
|
- 100-continue
|
67
68
|
Content-Md5:
|
68
69
|
- mgNkuembtIDdJeHwKEyFVQ==
|
69
70
|
X-Amz-Date:
|
70
|
-
-
|
71
|
+
- 20170905T193101Z
|
71
72
|
Host:
|
72
73
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
73
74
|
X-Amz-Content-Sha256:
|
74
75
|
- ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73
|
75
76
|
Authorization:
|
76
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
77
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
78
|
+
SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=3f66a48d4d2e550ba199b11d38a017fa9d632e00552d6a24a0e704c5c12017b4
|
77
79
|
Content-Length:
|
78
80
|
- '7'
|
79
81
|
Accept:
|
80
|
-
-
|
82
|
+
- "*/*"
|
81
83
|
response:
|
82
84
|
status:
|
83
85
|
code: 200
|
84
86
|
message: OK
|
85
87
|
headers:
|
86
88
|
X-Amz-Id-2:
|
87
|
-
-
|
89
|
+
- TgGv1tRxObbFlhBup69GfDbj7UvtCBg9/nQ51C/s/snEM5MgFEWKlt0yoYBxRx+XBTavhfq3X1I=
|
88
90
|
X-Amz-Request-Id:
|
89
|
-
-
|
91
|
+
- CD92434719CE582E
|
90
92
|
Date:
|
91
|
-
-
|
93
|
+
- Tue, 05 Sep 2017 19:31:03 GMT
|
92
94
|
Etag:
|
93
95
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
94
96
|
Content-Length:
|
@@ -96,10 +98,10 @@ http_interactions:
|
|
96
98
|
Server:
|
97
99
|
- AmazonS3
|
98
100
|
body:
|
99
|
-
encoding:
|
101
|
+
encoding: UTF-8
|
100
102
|
string: ''
|
101
|
-
http_version:
|
102
|
-
recorded_at:
|
103
|
+
http_version:
|
104
|
+
recorded_at: Tue, 05 Sep 2017 19:31:02 GMT
|
103
105
|
- request:
|
104
106
|
method: get
|
105
107
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/sub_dir/saved
|
@@ -112,32 +114,33 @@ http_interactions:
|
|
112
114
|
Accept-Encoding:
|
113
115
|
- ''
|
114
116
|
User-Agent:
|
115
|
-
- aws-sdk-ruby2/2.2.13
|
117
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
116
118
|
X-Amz-Date:
|
117
|
-
-
|
119
|
+
- 20170905T193102Z
|
118
120
|
Host:
|
119
121
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
120
122
|
X-Amz-Content-Sha256:
|
121
123
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
122
124
|
Authorization:
|
123
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
125
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
126
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=dce975cfe89ba22dcf134b17a44662ece0df406fc00733b6c92adca9a27dc16a
|
124
127
|
Content-Length:
|
125
128
|
- '0'
|
126
129
|
Accept:
|
127
|
-
-
|
130
|
+
- "*/*"
|
128
131
|
response:
|
129
132
|
status:
|
130
133
|
code: 200
|
131
134
|
message: OK
|
132
135
|
headers:
|
133
136
|
X-Amz-Id-2:
|
134
|
-
-
|
137
|
+
- 6bnFUAMONS+2FuZ811u+vR10AimXmuw858u5Oq/WONUkfJn38V5B8Pr4Ljsit1E5orLCZ1lUe2E=
|
135
138
|
X-Amz-Request-Id:
|
136
|
-
-
|
139
|
+
- 59F5190E66456AB7
|
137
140
|
Date:
|
138
|
-
-
|
141
|
+
- Tue, 05 Sep 2017 19:31:04 GMT
|
139
142
|
Last-Modified:
|
140
|
-
-
|
143
|
+
- Tue, 05 Sep 2017 19:31:03 GMT
|
141
144
|
Etag:
|
142
145
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
143
146
|
Accept-Ranges:
|
@@ -149,10 +152,10 @@ http_interactions:
|
|
149
152
|
Server:
|
150
153
|
- AmazonS3
|
151
154
|
body:
|
152
|
-
encoding:
|
155
|
+
encoding: UTF-8
|
153
156
|
string: content
|
154
|
-
http_version:
|
155
|
-
recorded_at:
|
157
|
+
http_version:
|
158
|
+
recorded_at: Tue, 05 Sep 2017 19:31:03 GMT
|
156
159
|
- request:
|
157
160
|
method: delete
|
158
161
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/sub_dir/saved
|
@@ -165,37 +168,38 @@ http_interactions:
|
|
165
168
|
Accept-Encoding:
|
166
169
|
- ''
|
167
170
|
User-Agent:
|
168
|
-
- aws-sdk-ruby2/2.2.13
|
171
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
169
172
|
X-Amz-Date:
|
170
|
-
-
|
173
|
+
- 20170905T193103Z
|
171
174
|
Host:
|
172
175
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
173
176
|
X-Amz-Content-Sha256:
|
174
177
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
175
178
|
Authorization:
|
176
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
179
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
180
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=4d5000b67cace8872673a585a30f478bf124f6ed6d0e1dfce18c1bff6bdf66a8
|
177
181
|
Content-Length:
|
178
182
|
- '0'
|
179
183
|
Accept:
|
180
|
-
-
|
184
|
+
- "*/*"
|
181
185
|
response:
|
182
186
|
status:
|
183
187
|
code: 204
|
184
188
|
message: No Content
|
185
189
|
headers:
|
186
190
|
X-Amz-Id-2:
|
187
|
-
-
|
191
|
+
- QsUlJ9DJS5ONLLO2SPPR6i4NmNe1IJn4A2oqOexGb6BHNp29FsYRDJKlbINkfCs6F3Q9boDPGB4=
|
188
192
|
X-Amz-Request-Id:
|
189
|
-
-
|
193
|
+
- BC370881A655AB03
|
190
194
|
Date:
|
191
|
-
-
|
195
|
+
- Tue, 05 Sep 2017 19:31:05 GMT
|
192
196
|
Server:
|
193
197
|
- AmazonS3
|
194
198
|
body:
|
195
|
-
encoding:
|
199
|
+
encoding: UTF-8
|
196
200
|
string: ''
|
197
|
-
http_version:
|
198
|
-
recorded_at:
|
201
|
+
http_version:
|
202
|
+
recorded_at: Tue, 05 Sep 2017 19:31:04 GMT
|
199
203
|
- request:
|
200
204
|
method: get
|
201
205
|
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/sub_dir/saved
|
@@ -208,41 +212,42 @@ http_interactions:
|
|
208
212
|
Accept-Encoding:
|
209
213
|
- ''
|
210
214
|
User-Agent:
|
211
|
-
- aws-sdk-ruby2/2.2.13
|
215
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin14
|
212
216
|
X-Amz-Date:
|
213
|
-
-
|
217
|
+
- 20170905T193104Z
|
214
218
|
Host:
|
215
219
|
- file-manager-tests.s3-us-west-2.amazonaws.com
|
216
220
|
X-Amz-Content-Sha256:
|
217
221
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
218
222
|
Authorization:
|
219
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
223
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20170905/us-west-2/s3/aws4_request,
|
224
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=305b493da3628a5145cc2b68643b148b3a2ce96db34ee7a8df70327ddc23bcb3
|
220
225
|
Content-Length:
|
221
226
|
- '0'
|
222
227
|
Accept:
|
223
|
-
-
|
228
|
+
- "*/*"
|
224
229
|
response:
|
225
230
|
status:
|
226
231
|
code: 404
|
227
232
|
message: Not Found
|
228
233
|
headers:
|
229
234
|
X-Amz-Request-Id:
|
230
|
-
-
|
235
|
+
- 3709A97254DAEDB5
|
231
236
|
X-Amz-Id-2:
|
232
|
-
-
|
237
|
+
- vRS6tX1x75h/4fk/r3UHp4RmoKtf0kuUm3d62AON9Fx2gckriC9lJT1A0LS65LlV6dBmuO4FKlI=
|
233
238
|
Content-Type:
|
234
239
|
- application/xml
|
235
240
|
Transfer-Encoding:
|
236
241
|
- chunked
|
237
242
|
Date:
|
238
|
-
-
|
243
|
+
- Tue, 05 Sep 2017 19:31:04 GMT
|
239
244
|
Server:
|
240
245
|
- AmazonS3
|
241
246
|
body:
|
242
|
-
encoding:
|
247
|
+
encoding: UTF-8
|
243
248
|
string: |-
|
244
249
|
<?xml version="1.0" encoding="UTF-8"?>
|
245
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>sub_dir/saved</Key><RequestId>
|
246
|
-
http_version:
|
247
|
-
recorded_at:
|
250
|
+
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>sub_dir/saved</Key><RequestId>3709A97254DAEDB5</RequestId><HostId>vRS6tX1x75h/4fk/r3UHp4RmoKtf0kuUm3d62AON9Fx2gckriC9lJT1A0LS65LlV6dBmuO4FKlI=</HostId></Error>
|
251
|
+
http_version:
|
252
|
+
recorded_at: Tue, 05 Sep 2017 19:31:04 GMT
|
248
253
|
recorded_with: VCR 3.0.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Barroso / Marlus Saraiva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- test/memory_test.rb
|
135
135
|
- test/s3_test.rb
|
136
136
|
- test/test_helper.rb
|
137
|
+
- test/vcr_cassettes/test_downloading_to_temp_file.yml
|
137
138
|
- test/vcr_cassettes/test_listing_files.yml
|
138
139
|
- test/vcr_cassettes/test_listing_files_in_sub_dir.yml
|
139
140
|
- test/vcr_cassettes/test_reading.yml
|
@@ -158,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
159
|
version: '0'
|
159
160
|
requirements: []
|
160
161
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.6.13
|
162
163
|
signing_key:
|
163
164
|
specification_version: 4
|
164
165
|
summary: File manager, access S3 or local
|
@@ -168,9 +169,9 @@ test_files:
|
|
168
169
|
- test/memory_test.rb
|
169
170
|
- test/s3_test.rb
|
170
171
|
- test/test_helper.rb
|
172
|
+
- test/vcr_cassettes/test_downloading_to_temp_file.yml
|
171
173
|
- test/vcr_cassettes/test_listing_files.yml
|
172
174
|
- test/vcr_cassettes/test_listing_files_in_sub_dir.yml
|
173
175
|
- test/vcr_cassettes/test_reading.yml
|
174
176
|
- test/vcr_cassettes/test_reading_in_sub_dir.yml
|
175
177
|
- test/vcr_cassettes/test_remove_not_existing_file_dont_raise.yml
|
176
|
-
has_rdoc:
|