file-manager 0.0.12 → 0.1.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 +10 -11
- data/file-manager.gemspec +2 -2
- data/lib/s3_file_manager.rb +14 -14
- data/test/s3_test.rb +6 -1
- data/test/vcr_cassettes/test_listing_files.yml +146 -88
- data/test/vcr_cassettes/test_listing_files_in_sub_dir.yml +146 -88
- data/test/vcr_cassettes/test_reading.yml +92 -55
- data/test/vcr_cassettes/test_reading_in_sub_dir.yml +92 -55
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986239384ddff9a5fef44810768837a817c2832d
|
4
|
+
data.tar.gz: 2731cc2f0426eaed27e276aa6976bfce5cb14f71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc26621f3661287ccd08b54d978cc720ecd25959c65534303f13753174ec7080b0b1b600197212fe7e2fdb4d36b20207214ba90a5b5a6c9d414bbe7e851a865
|
7
|
+
data.tar.gz: 6542f9eb7e6bff8c5f67807bf28b826937cf57d88981c423d12381575e0f17db4938b8c2b8aee25c619d10ee0c11ca3b6b48f7c1bb5c6ffba7d1522a61866ca5
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
file-manager (0.0
|
5
|
-
aws-sdk (
|
4
|
+
file-manager (0.1.0)
|
5
|
+
aws-sdk (= 2.2.13)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
addressable (2.4.0)
|
11
|
-
aws-sdk (
|
12
|
-
aws-sdk-
|
13
|
-
aws-sdk-
|
14
|
-
|
15
|
-
|
11
|
+
aws-sdk (2.2.13)
|
12
|
+
aws-sdk-resources (= 2.2.13)
|
13
|
+
aws-sdk-core (2.2.13)
|
14
|
+
jmespath (~> 1.0)
|
15
|
+
aws-sdk-resources (2.2.13)
|
16
|
+
aws-sdk-core (= 2.2.13)
|
16
17
|
codeclimate-test-reporter (0.4.8)
|
17
18
|
simplecov (>= 0.7.1, < 1.0.0)
|
18
19
|
crack (0.4.3)
|
19
20
|
safe_yaml (~> 1.0.0)
|
20
21
|
docile (1.1.5)
|
21
22
|
hashdiff (0.2.3)
|
23
|
+
jmespath (1.1.3)
|
22
24
|
json (1.8.3)
|
23
|
-
|
24
|
-
minitest (5.8.3)
|
25
|
-
nokogiri (1.6.7.2)
|
26
|
-
mini_portile2 (~> 2.0.0.rc2)
|
25
|
+
minitest (5.8.4)
|
27
26
|
rake (10.5.0)
|
28
27
|
safe_yaml (1.0.4)
|
29
28
|
simplecov (0.11.1)
|
data/file-manager.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "file-manager"
|
6
|
-
spec.version = '0.0
|
6
|
+
spec.version = '0.1.0'
|
7
7
|
spec.authors = ["Francisco Barroso / Marlus Saraiva"]
|
8
8
|
spec.email = ["franciscobarroso@grupofortes.com.br"]
|
9
9
|
spec.description = 'File manager, access S3 or local'
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.homepage = 'https://github.com/fortesinformatica/file-manager'
|
18
18
|
|
19
|
-
spec.add_dependency 'aws-sdk', '
|
19
|
+
spec.add_dependency 'aws-sdk', '2.2.13'
|
20
20
|
spec.add_development_dependency "bundler", "~> 1.3"
|
21
21
|
spec.add_development_dependency "rake"
|
22
22
|
spec.add_development_dependency 'minitest'
|
data/lib/s3_file_manager.rb
CHANGED
@@ -5,14 +5,14 @@ class S3FileManager < FileManager
|
|
5
5
|
|
6
6
|
def read_file file_name
|
7
7
|
s3_service = connect_s3_service
|
8
|
-
bucket = s3_service.
|
8
|
+
bucket = s3_service.bucket(bucket_name)
|
9
9
|
|
10
10
|
logger.print "Reading file \"#{file_name}\" from bucket \"#{bucket_name}\"..."
|
11
|
-
contents = bucket.
|
11
|
+
contents = bucket.object(file_name).get.body.read
|
12
12
|
logger.puts 'done.'
|
13
13
|
|
14
14
|
contents
|
15
|
-
rescue
|
15
|
+
rescue Aws::S3::Errors::NoSuchKey
|
16
16
|
raise FileNotFoundError.new("#{bucket_name}/#{file_name}")
|
17
17
|
end
|
18
18
|
|
@@ -23,9 +23,10 @@ class S3FileManager < FileManager
|
|
23
23
|
def save_file(file_name, file_contents, write_options = {})
|
24
24
|
logger.print "Saving file \"#{file_name}\" to bucket \"#{bucket_name}\"..."
|
25
25
|
s3_service = connect_s3_service
|
26
|
-
bucket = s3_service.
|
26
|
+
bucket = s3_service.bucket(bucket_name)
|
27
27
|
|
28
|
-
bucket.
|
28
|
+
obj = bucket.object(file_name)
|
29
|
+
obj.put(write_options.merge(body: file_contents.to_s))
|
29
30
|
logger.puts 'done.'
|
30
31
|
end
|
31
32
|
|
@@ -44,12 +45,12 @@ class S3FileManager < FileManager
|
|
44
45
|
# end
|
45
46
|
|
46
47
|
s3_service = connect_s3_service
|
47
|
-
bucket = s3_service.
|
48
|
+
bucket = s3_service.bucket(bucket_name)
|
48
49
|
|
49
50
|
logger.print "Listing \"#{prefix}*.#{file_extension}\" from bucket \"#{bucket_name}\"..."
|
50
51
|
|
51
52
|
files = []
|
52
|
-
bucket.objects
|
53
|
+
bucket.objects(prefix: prefix).each do |obj|
|
53
54
|
if file_extension == '*' || obj.key.end_with?(".#{file_extension}")
|
54
55
|
files << obj.key
|
55
56
|
end
|
@@ -60,9 +61,9 @@ class S3FileManager < FileManager
|
|
60
61
|
|
61
62
|
def delete_file file_name
|
62
63
|
s3_service = connect_s3_service
|
63
|
-
bucket = s3_service.
|
64
|
+
bucket = s3_service.bucket(bucket_name)
|
64
65
|
logger.print "Deleting file \"#{file_name}\" from bucket \"#{bucket_name}\"..."
|
65
|
-
bucket.
|
66
|
+
bucket.object(file_name).delete
|
66
67
|
logger.puts 'done.'
|
67
68
|
end
|
68
69
|
|
@@ -71,12 +72,11 @@ class S3FileManager < FileManager
|
|
71
72
|
def connect_s3_service
|
72
73
|
logger.print "Accessing S3 service..."
|
73
74
|
|
74
|
-
|
75
|
-
:access_key_id => options[:access_key_id],
|
76
|
-
:secret_access_key => options[:secret_access_key]
|
77
|
-
)
|
75
|
+
credentials = Aws::Credentials.new(options[:access_key_id], options[:secret_access_key])
|
78
76
|
|
79
|
-
|
77
|
+
client = Aws::S3::Client.new(region:'us-west-2', credentials: credentials)
|
78
|
+
|
79
|
+
service = Aws::S3::Resource.new(client: client)
|
80
80
|
logger.puts 'done.'
|
81
81
|
service
|
82
82
|
end
|
data/test/s3_test.rb
CHANGED
@@ -13,7 +13,12 @@ class S3FileManagerTest < Minitest::Test
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def setup
|
16
|
-
@manager = S3FileManager.new(
|
16
|
+
@manager = S3FileManager.new(
|
17
|
+
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
|
18
|
+
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
|
19
|
+
bucket: 'file-manager-tests',
|
20
|
+
silent: true,
|
21
|
+
)
|
17
22
|
end
|
18
23
|
|
19
24
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
5
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: ASCII-8BIT
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
@@ -12,11 +12,18 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- ''
|
14
14
|
User-Agent:
|
15
|
-
- aws-sdk-
|
16
|
-
Date:
|
17
|
-
-
|
15
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
16
|
+
X-Amz-Date:
|
17
|
+
- 20160128T193504Z
|
18
|
+
Host:
|
19
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
20
|
+
X-Amz-Content-Sha256:
|
21
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
18
22
|
Authorization:
|
19
|
-
-
|
23
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
24
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=02d213bac7ef9673c40ee3f6488339f417e2ae9d8be5ba928152dbaa9b85cc2e
|
25
|
+
Content-Length:
|
26
|
+
- '0'
|
20
27
|
Accept:
|
21
28
|
- "*/*"
|
22
29
|
response:
|
@@ -25,11 +32,11 @@ http_interactions:
|
|
25
32
|
message: OK
|
26
33
|
headers:
|
27
34
|
X-Amz-Id-2:
|
28
|
-
-
|
35
|
+
- F5r5zWJ1HG6MlJtnB8jgO/ZWvoeQAHn517jOdgp4g1/crUcGs9/Ib5+IkldOZ4WlgeTfjJD6pfE=
|
29
36
|
X-Amz-Request-Id:
|
30
|
-
-
|
37
|
+
- EDE8622F19AE0E69
|
31
38
|
Date:
|
32
|
-
- Thu,
|
39
|
+
- Thu, 28 Jan 2016 19:35:08 GMT
|
33
40
|
X-Amz-Bucket-Region:
|
34
41
|
- us-west-2
|
35
42
|
Content-Type:
|
@@ -42,28 +49,37 @@ http_interactions:
|
|
42
49
|
encoding: UTF-8
|
43
50
|
string: |-
|
44
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
52
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>
|
46
53
|
http_version:
|
47
|
-
recorded_at: Thu,
|
54
|
+
recorded_at: Thu, 28 Jan 2016 19:35:06 GMT
|
48
55
|
- request:
|
49
56
|
method: put
|
50
|
-
uri: https://file-manager-tests.s3.amazonaws.com/saved.*
|
57
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved.*
|
51
58
|
body:
|
52
|
-
encoding:
|
59
|
+
encoding: UTF-8
|
53
60
|
string: content
|
54
61
|
headers:
|
55
62
|
Content-Type:
|
56
63
|
- ''
|
57
64
|
Accept-Encoding:
|
58
65
|
- ''
|
59
|
-
Content-Length:
|
60
|
-
- '7'
|
61
66
|
User-Agent:
|
62
|
-
- aws-sdk-
|
63
|
-
|
64
|
-
-
|
67
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
68
|
+
Expect:
|
69
|
+
- 100-continue
|
70
|
+
Content-Md5:
|
71
|
+
- mgNkuembtIDdJeHwKEyFVQ==
|
72
|
+
X-Amz-Date:
|
73
|
+
- 20160128T193506Z
|
74
|
+
Host:
|
75
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
76
|
+
X-Amz-Content-Sha256:
|
77
|
+
- ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73
|
65
78
|
Authorization:
|
66
|
-
-
|
79
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
80
|
+
SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=e4632e5e3f0bfdc358b889fd2682484144f9d4576ab959104ad313b7e66013df
|
81
|
+
Content-Length:
|
82
|
+
- '7'
|
67
83
|
Accept:
|
68
84
|
- "*/*"
|
69
85
|
response:
|
@@ -72,11 +88,11 @@ http_interactions:
|
|
72
88
|
message: OK
|
73
89
|
headers:
|
74
90
|
X-Amz-Id-2:
|
75
|
-
-
|
91
|
+
- j3ea88PswL6jTNqNcS3Db7kaJtsBT2wMr6WttKN7Wu18IGpeY0J13azaB/sNpoEO3W8ZFr8v9WM=
|
76
92
|
X-Amz-Request-Id:
|
77
|
-
-
|
93
|
+
- AFBBC5527755A6BF
|
78
94
|
Date:
|
79
|
-
- Thu,
|
95
|
+
- Thu, 28 Jan 2016 19:35:09 GMT
|
80
96
|
Etag:
|
81
97
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
82
98
|
Content-Length:
|
@@ -87,12 +103,12 @@ http_interactions:
|
|
87
103
|
encoding: UTF-8
|
88
104
|
string: ''
|
89
105
|
http_version:
|
90
|
-
recorded_at: Thu,
|
106
|
+
recorded_at: Thu, 28 Jan 2016 19:35:07 GMT
|
91
107
|
- request:
|
92
108
|
method: get
|
93
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
109
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=other_prefix
|
94
110
|
body:
|
95
|
-
encoding:
|
111
|
+
encoding: ASCII-8BIT
|
96
112
|
string: ''
|
97
113
|
headers:
|
98
114
|
Content-Type:
|
@@ -100,11 +116,18 @@ http_interactions:
|
|
100
116
|
Accept-Encoding:
|
101
117
|
- ''
|
102
118
|
User-Agent:
|
103
|
-
- aws-sdk-
|
104
|
-
Date:
|
105
|
-
-
|
119
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
120
|
+
X-Amz-Date:
|
121
|
+
- 20160128T193507Z
|
122
|
+
Host:
|
123
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
124
|
+
X-Amz-Content-Sha256:
|
125
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
106
126
|
Authorization:
|
107
|
-
-
|
127
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
128
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=e45b1fe70e7ea8377705c236637d0a3186e76f235e233d37fa43ffd987028b89
|
129
|
+
Content-Length:
|
130
|
+
- '0'
|
108
131
|
Accept:
|
109
132
|
- "*/*"
|
110
133
|
response:
|
@@ -113,11 +136,11 @@ http_interactions:
|
|
113
136
|
message: OK
|
114
137
|
headers:
|
115
138
|
X-Amz-Id-2:
|
116
|
-
-
|
139
|
+
- 1E7dLKJMbcjVKPgOuX5YgmOsWPB09C3Okknm1n8fUiq6MLMjpjUOT0vO8p8dqEh6fD2p3YSDIB4=
|
117
140
|
X-Amz-Request-Id:
|
118
|
-
-
|
141
|
+
- 4973B828C916F7D1
|
119
142
|
Date:
|
120
|
-
- Thu,
|
143
|
+
- Thu, 28 Jan 2016 19:35:10 GMT
|
121
144
|
X-Amz-Bucket-Region:
|
122
145
|
- us-west-2
|
123
146
|
Content-Type:
|
@@ -130,14 +153,14 @@ http_interactions:
|
|
130
153
|
encoding: UTF-8
|
131
154
|
string: |-
|
132
155
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>other_prefix</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
156
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>other_prefix</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>
|
134
157
|
http_version:
|
135
|
-
recorded_at: Thu,
|
158
|
+
recorded_at: Thu, 28 Jan 2016 19:35:07 GMT
|
136
159
|
- request:
|
137
160
|
method: get
|
138
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
161
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=sav
|
139
162
|
body:
|
140
|
-
encoding:
|
163
|
+
encoding: ASCII-8BIT
|
141
164
|
string: ''
|
142
165
|
headers:
|
143
166
|
Content-Type:
|
@@ -145,11 +168,18 @@ http_interactions:
|
|
145
168
|
Accept-Encoding:
|
146
169
|
- ''
|
147
170
|
User-Agent:
|
148
|
-
- aws-sdk-
|
149
|
-
Date:
|
150
|
-
-
|
171
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
172
|
+
X-Amz-Date:
|
173
|
+
- 20160128T193507Z
|
174
|
+
Host:
|
175
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
176
|
+
X-Amz-Content-Sha256:
|
177
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
151
178
|
Authorization:
|
152
|
-
-
|
179
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
180
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=978da4a8547635351c2a3df9ee908fc420441e8ff0de164919c304cb86b54510
|
181
|
+
Content-Length:
|
182
|
+
- '0'
|
153
183
|
Accept:
|
154
184
|
- "*/*"
|
155
185
|
response:
|
@@ -158,11 +188,11 @@ http_interactions:
|
|
158
188
|
message: OK
|
159
189
|
headers:
|
160
190
|
X-Amz-Id-2:
|
161
|
-
-
|
191
|
+
- aH3d02DmUxPL35Hx/OLy6KXObk4MxVeiU9f+HoqwvWg0D+ubZBGBLg8f6Kf/K7eaXKaqYYT5reQ=
|
162
192
|
X-Amz-Request-Id:
|
163
|
-
-
|
193
|
+
- E783F8A6CB09562A
|
164
194
|
Date:
|
165
|
-
- Thu,
|
195
|
+
- Thu, 28 Jan 2016 19:35:12 GMT
|
166
196
|
X-Amz-Bucket-Region:
|
167
197
|
- us-west-2
|
168
198
|
Content-Type:
|
@@ -175,14 +205,14 @@ http_interactions:
|
|
175
205
|
encoding: UTF-8
|
176
206
|
string: |-
|
177
207
|
<?xml version="1.0" encoding="UTF-8"?>
|
178
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-
|
208
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-28T19:35:09.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
179
209
|
http_version:
|
180
|
-
recorded_at: Thu,
|
210
|
+
recorded_at: Thu, 28 Jan 2016 19:35:10 GMT
|
181
211
|
- request:
|
182
212
|
method: get
|
183
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
213
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
|
184
214
|
body:
|
185
|
-
encoding:
|
215
|
+
encoding: ASCII-8BIT
|
186
216
|
string: ''
|
187
217
|
headers:
|
188
218
|
Content-Type:
|
@@ -190,11 +220,18 @@ http_interactions:
|
|
190
220
|
Accept-Encoding:
|
191
221
|
- ''
|
192
222
|
User-Agent:
|
193
|
-
- aws-sdk-
|
194
|
-
Date:
|
195
|
-
-
|
223
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
224
|
+
X-Amz-Date:
|
225
|
+
- 20160128T193510Z
|
226
|
+
Host:
|
227
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
228
|
+
X-Amz-Content-Sha256:
|
229
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
196
230
|
Authorization:
|
197
|
-
-
|
231
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
232
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=0a69ae2912d1499c5c0e0939d04d7ef8377c14be4b1a9be7ea1e0674aa382349
|
233
|
+
Content-Length:
|
234
|
+
- '0'
|
198
235
|
Accept:
|
199
236
|
- "*/*"
|
200
237
|
response:
|
@@ -203,11 +240,11 @@ http_interactions:
|
|
203
240
|
message: OK
|
204
241
|
headers:
|
205
242
|
X-Amz-Id-2:
|
206
|
-
-
|
243
|
+
- hj1DE5N+yKv2DjKqeB03lNGBMRRadNO8FlKNvkwATE+TZvaQIqAvVZV09Kxlm2tiZfgF9ABESRY=
|
207
244
|
X-Amz-Request-Id:
|
208
|
-
-
|
245
|
+
- F9DB87D86719B793
|
209
246
|
Date:
|
210
|
-
- Thu,
|
247
|
+
- Thu, 28 Jan 2016 19:35:14 GMT
|
211
248
|
X-Amz-Bucket-Region:
|
212
249
|
- us-west-2
|
213
250
|
Content-Type:
|
@@ -220,14 +257,14 @@ http_interactions:
|
|
220
257
|
encoding: UTF-8
|
221
258
|
string: |-
|
222
259
|
<?xml version="1.0" encoding="UTF-8"?>
|
223
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-
|
260
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-28T19:35:09.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
224
261
|
http_version:
|
225
|
-
recorded_at: Thu,
|
262
|
+
recorded_at: Thu, 28 Jan 2016 19:35:11 GMT
|
226
263
|
- request:
|
227
264
|
method: get
|
228
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
265
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=sav
|
229
266
|
body:
|
230
|
-
encoding:
|
267
|
+
encoding: ASCII-8BIT
|
231
268
|
string: ''
|
232
269
|
headers:
|
233
270
|
Content-Type:
|
@@ -235,11 +272,18 @@ http_interactions:
|
|
235
272
|
Accept-Encoding:
|
236
273
|
- ''
|
237
274
|
User-Agent:
|
238
|
-
- aws-sdk-
|
239
|
-
Date:
|
240
|
-
-
|
275
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
276
|
+
X-Amz-Date:
|
277
|
+
- 20160128T193511Z
|
278
|
+
Host:
|
279
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
280
|
+
X-Amz-Content-Sha256:
|
281
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
241
282
|
Authorization:
|
242
|
-
-
|
283
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
284
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=504de7fbae9e9b6ce0c766bfa12f93401c26e6b066ebd5c4e66fb5d558b3b723
|
285
|
+
Content-Length:
|
286
|
+
- '0'
|
243
287
|
Accept:
|
244
288
|
- "*/*"
|
245
289
|
response:
|
@@ -248,11 +292,11 @@ http_interactions:
|
|
248
292
|
message: OK
|
249
293
|
headers:
|
250
294
|
X-Amz-Id-2:
|
251
|
-
-
|
295
|
+
- 343Gn/Z6EJ8l519aUvVVjd3fCRKbP63qhOClGWYI7tb5c3x2uEITTgmedfi5G5rpqEqh+Mtfy3M=
|
252
296
|
X-Amz-Request-Id:
|
253
|
-
-
|
297
|
+
- D93B2F4DFE598340
|
254
298
|
Date:
|
255
|
-
- Thu,
|
299
|
+
- Thu, 28 Jan 2016 19:35:15 GMT
|
256
300
|
X-Amz-Bucket-Region:
|
257
301
|
- us-west-2
|
258
302
|
Content-Type:
|
@@ -265,14 +309,14 @@ http_interactions:
|
|
265
309
|
encoding: UTF-8
|
266
310
|
string: |-
|
267
311
|
<?xml version="1.0" encoding="UTF-8"?>
|
268
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-
|
312
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2016-01-28T19:35:09.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
269
313
|
http_version:
|
270
|
-
recorded_at: Thu,
|
314
|
+
recorded_at: Thu, 28 Jan 2016 19:35:12 GMT
|
271
315
|
- request:
|
272
316
|
method: delete
|
273
|
-
uri: https://file-manager-tests.s3.amazonaws.com/saved.*
|
317
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/saved.*
|
274
318
|
body:
|
275
|
-
encoding:
|
319
|
+
encoding: ASCII-8BIT
|
276
320
|
string: ''
|
277
321
|
headers:
|
278
322
|
Content-Type:
|
@@ -280,11 +324,18 @@ http_interactions:
|
|
280
324
|
Accept-Encoding:
|
281
325
|
- ''
|
282
326
|
User-Agent:
|
283
|
-
- aws-sdk-
|
284
|
-
Date:
|
285
|
-
-
|
327
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
328
|
+
X-Amz-Date:
|
329
|
+
- 20160128T193512Z
|
330
|
+
Host:
|
331
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
332
|
+
X-Amz-Content-Sha256:
|
333
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
286
334
|
Authorization:
|
287
|
-
-
|
335
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
336
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=c3ca525a857b81f455296060a8e3fc196998a046d67c209ac9f8f57a4ba66a25
|
337
|
+
Content-Length:
|
338
|
+
- '0'
|
288
339
|
Accept:
|
289
340
|
- "*/*"
|
290
341
|
response:
|
@@ -293,23 +344,23 @@ http_interactions:
|
|
293
344
|
message: No Content
|
294
345
|
headers:
|
295
346
|
X-Amz-Id-2:
|
296
|
-
-
|
347
|
+
- 5upe6GqIxXm2uDW3HACj9csSJ4XSxnq7ufphY9NXHaCy+8HVTK9nMVkDwgHavD06n9K0ZyijfpQ=
|
297
348
|
X-Amz-Request-Id:
|
298
|
-
-
|
349
|
+
- B6768BA41B58E72B
|
299
350
|
Date:
|
300
|
-
- Thu,
|
351
|
+
- Thu, 28 Jan 2016 19:35:16 GMT
|
301
352
|
Server:
|
302
353
|
- AmazonS3
|
303
354
|
body:
|
304
355
|
encoding: UTF-8
|
305
356
|
string: ''
|
306
357
|
http_version:
|
307
|
-
recorded_at: Thu,
|
358
|
+
recorded_at: Thu, 28 Jan 2016 19:35:13 GMT
|
308
359
|
- request:
|
309
360
|
method: get
|
310
|
-
uri: https://file-manager-tests.s3.amazonaws.com/?
|
361
|
+
uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
|
311
362
|
body:
|
312
|
-
encoding:
|
363
|
+
encoding: ASCII-8BIT
|
313
364
|
string: ''
|
314
365
|
headers:
|
315
366
|
Content-Type:
|
@@ -317,11 +368,18 @@ http_interactions:
|
|
317
368
|
Accept-Encoding:
|
318
369
|
- ''
|
319
370
|
User-Agent:
|
320
|
-
- aws-sdk-
|
321
|
-
Date:
|
322
|
-
-
|
371
|
+
- aws-sdk-ruby2/2.2.13 ruby/2.2.3 x86_64-darwin15
|
372
|
+
X-Amz-Date:
|
373
|
+
- 20160128T193513Z
|
374
|
+
Host:
|
375
|
+
- file-manager-tests.s3-us-west-2.amazonaws.com
|
376
|
+
X-Amz-Content-Sha256:
|
377
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
323
378
|
Authorization:
|
324
|
-
-
|
379
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20160128/us-west-2/s3/aws4_request,
|
380
|
+
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=158d6c58ea289901f7ad98ca7dc57b207ab2f6ddc8755e024165fd5a4fc89881
|
381
|
+
Content-Length:
|
382
|
+
- '0'
|
325
383
|
Accept:
|
326
384
|
- "*/*"
|
327
385
|
response:
|
@@ -330,11 +388,11 @@ http_interactions:
|
|
330
388
|
message: OK
|
331
389
|
headers:
|
332
390
|
X-Amz-Id-2:
|
333
|
-
-
|
391
|
+
- tqL7ZnZKrcdXboU2QhlpTsaOrAcFu7Ajll553m+2iIJrLUFATdDFpUnIIHcmOC3TLR0P37hXWvw=
|
334
392
|
X-Amz-Request-Id:
|
335
|
-
-
|
393
|
+
- 5D29B49763EC19EC
|
336
394
|
Date:
|
337
|
-
- Thu,
|
395
|
+
- Thu, 28 Jan 2016 19:35:17 GMT
|
338
396
|
X-Amz-Bucket-Region:
|
339
397
|
- us-west-2
|
340
398
|
Content-Type:
|
@@ -347,7 +405,7 @@ http_interactions:
|
|
347
405
|
encoding: UTF-8
|
348
406
|
string: |-
|
349
407
|
<?xml version="1.0" encoding="UTF-8"?>
|
350
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
408
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>
|
351
409
|
http_version:
|
352
|
-
recorded_at: Thu,
|
410
|
+
recorded_at: Thu, 28 Jan 2016 19:35:14 GMT
|
353
411
|
recorded_with: VCR 3.0.1
|