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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ac029ee67d7be0c983643817461d0a4b9fdb910
4
- data.tar.gz: a9e4a18773f41691657b1b723581d6ef48c72483
3
+ metadata.gz: 986239384ddff9a5fef44810768837a817c2832d
4
+ data.tar.gz: 2731cc2f0426eaed27e276aa6976bfce5cb14f71
5
5
  SHA512:
6
- metadata.gz: ed3bbcd03aff826ca9c392c375e22ac86df073533b28875f29d40616c0e133ca23148eca7a6c33e91ae0683b9f3f3444820bfb84ed297b7b361260fef1596fb8
7
- data.tar.gz: 5ddf0d0b93bbb0dfbaa4a44185bbbc7e9d8a6fca57e38350ea9ac45f3c19e4c2d38dfac41c7fce7acde417e5cdf52773df86a45e07f2c55c7ec82a2c73793542
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.12)
5
- aws-sdk (~> 1.52.0)
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 (1.52.0)
12
- aws-sdk-v1 (= 1.52.0)
13
- aws-sdk-v1 (1.52.0)
14
- json (~> 1.4)
15
- nokogiri (>= 1.4.4)
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
- mini_portile2 (2.0.0)
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.12'
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', '~>1.52.0'
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'
@@ -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.buckets[bucket_name]
8
+ bucket = s3_service.bucket(bucket_name)
9
9
 
10
10
  logger.print "Reading file \"#{file_name}\" from bucket \"#{bucket_name}\"..."
11
- contents = bucket.objects[file_name].read.force_encoding('utf-8')
11
+ contents = bucket.object(file_name).get.body.read
12
12
  logger.puts 'done.'
13
13
 
14
14
  contents
15
- rescue AWS::S3::Errors::NoSuchKey
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.buckets[bucket_name]
26
+ bucket = s3_service.bucket(bucket_name)
27
27
 
28
- bucket.objects["#{file_name}"].write(file_contents.to_s, write_options)
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.buckets[bucket_name]
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.with_prefix(prefix).each(:limit => 1000) do |obj|
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.buckets[bucket_name]
64
+ bucket = s3_service.bucket(bucket_name)
64
65
  logger.print "Deleting file \"#{file_name}\" from bucket \"#{bucket_name}\"..."
65
- bucket.objects[file_name].delete
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
- AWS.config(
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
- service = AWS::S3.new
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({bucket: 'file-manager-tests', silent: true})
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/?max-keys=1000&prefix=
5
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
6
6
  body:
7
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
16
- Date:
17
- - Thu, 21 Jan 2016 18:48:35 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:I3QbWLo5qv7Nhjxxr0F+i8oVLuM=
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
- - "/SG+AXdcaTlnVbOD59whQH1MG4tq6cbvHU3uV4YW3fGFfD/avUmwHhZYZK237VlS4PhMJnKVGyw="
35
+ - F5r5zWJ1HG6MlJtnB8jgO/ZWvoeQAHn517jOdgp4g1/crUcGs9/Ib5+IkldOZ4WlgeTfjJD6pfE=
29
36
  X-Amz-Request-Id:
30
- - 0945BA84B73FB376
37
+ - EDE8622F19AE0E69
31
38
  Date:
32
- - Thu, 21 Jan 2016 18:48:36 GMT
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, 21 Jan 2016 18:48:35 GMT
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: ASCII-8BIT
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
63
- Date:
64
- - Thu, 21 Jan 2016 18:48:35 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:njJCq1g+W5xUwdNQ2ZGRTbN7EI4=
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
- - hCA1pOn0S/axbaguS5H92XH8v0GWyVUQsdNvC6T33aB7FUb2HAkQIBVOWKiQ2kQVZM8+L2twcwk=
91
+ - j3ea88PswL6jTNqNcS3Db7kaJtsBT2wMr6WttKN7Wu18IGpeY0J13azaB/sNpoEO3W8ZFr8v9WM=
76
92
  X-Amz-Request-Id:
77
- - F6C6DEA609D8B12D
93
+ - AFBBC5527755A6BF
78
94
  Date:
79
- - Thu, 21 Jan 2016 18:48:37 GMT
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, 21 Jan 2016 18:48:36 GMT
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/?max-keys=1000&prefix=other_prefix
109
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=other_prefix
94
110
  body:
95
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
104
- Date:
105
- - Thu, 21 Jan 2016 18:48:36 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:n3YdESwY09CtNE3eoJz6fvwX9t0=
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
- - 8PPsLrH2Gf1d254jtD5+nu0zPhmIGP0feSSRFQr7J6ClC64pPgcoB6ZLyh6yjXNwEUl+pkukPuI=
139
+ - 1E7dLKJMbcjVKPgOuX5YgmOsWPB09C3Okknm1n8fUiq6MLMjpjUOT0vO8p8dqEh6fD2p3YSDIB4=
117
140
  X-Amz-Request-Id:
118
- - 2873F5D84B861415
141
+ - 4973B828C916F7D1
119
142
  Date:
120
- - Thu, 21 Jan 2016 18:48:38 GMT
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, 21 Jan 2016 18:48:37 GMT
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/?max-keys=1000&prefix=sav
161
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=sav
139
162
  body:
140
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
149
- Date:
150
- - Thu, 21 Jan 2016 18:48:37 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:H1K1hevwOzlJ0yAkwfmbuaGUixY=
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
- - uUXUDoqdc/wrYh6sf3+l9SKXB+Xe7uhgeH154vi1oIFiJRJ8ha95Tud+R/ffKM3bnkFGf2xn0Ns=
191
+ - aH3d02DmUxPL35Hx/OLy6KXObk4MxVeiU9f+HoqwvWg0D+ubZBGBLg8f6Kf/K7eaXKaqYYT5reQ=
162
192
  X-Amz-Request-Id:
163
- - B1867452CF87B73C
193
+ - E783F8A6CB09562A
164
194
  Date:
165
- - Thu, 21 Jan 2016 18:48:38 GMT
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-21T18:48:37.000Z</LastModified><ETag>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
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>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</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, 21 Jan 2016 18:48:38 GMT
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/?max-keys=1000&prefix=
213
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
184
214
  body:
185
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
194
- Date:
195
- - Thu, 21 Jan 2016 18:48:38 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:vXu/ifgZA7sGpAd90kZtkWk+JOA=
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
- - aRukz38q+xTItQDAsjDqpdFsvQvHq4HRoGr5CUp0wFQk6AEz3vJ6+K1NMpbgaFiW8JvRwB0nuMY=
243
+ - hj1DE5N+yKv2DjKqeB03lNGBMRRadNO8FlKNvkwATE+TZvaQIqAvVZV09Kxlm2tiZfgF9ABESRY=
207
244
  X-Amz-Request-Id:
208
- - 388810BDBBBE0F40
245
+ - F9DB87D86719B793
209
246
  Date:
210
- - Thu, 21 Jan 2016 18:48:39 GMT
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-21T18:48:37.000Z</LastModified><ETag>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
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>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</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, 21 Jan 2016 18:48:39 GMT
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/?max-keys=1000&prefix=sav
265
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=sav
229
266
  body:
230
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
239
- Date:
240
- - Thu, 21 Jan 2016 18:48:39 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:49hSzx8k+HBWpPPGU68DHVBx3B0=
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
- - klcQlvAOHJ6Vw3TSoVKS7y95nkyghMgjC3ixbTJOqGxOB+Q8Fq5nQDivXPBtjceEe4F7LnHcpy4=
295
+ - 343Gn/Z6EJ8l519aUvVVjd3fCRKbP63qhOClGWYI7tb5c3x2uEITTgmedfi5G5rpqEqh+Mtfy3M=
252
296
  X-Amz-Request-Id:
253
- - B35532BBE22B2B14
297
+ - D93B2F4DFE598340
254
298
  Date:
255
- - Thu, 21 Jan 2016 18:48:40 GMT
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-21T18:48:37.000Z</LastModified><ETag>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</ETag><Size>7</Size><Owner><ID>93aef73ec9e2412194b36d6a763c119d46a9f0b0cf053130937741f42856242c</ID><DisplayName>desenvolvimento.bedel</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
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>&quot;9a0364b9e99bb480dd25e1f0284c8555&quot;</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, 21 Jan 2016 18:48:39 GMT
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: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
284
- Date:
285
- - Thu, 21 Jan 2016 18:48:39 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:I1C8k6LEwHhHzoMxduZPZXehV6s=
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
- - JuSGiJyOHlf79BAmJAekqE5bGOC+fu2baTv4fNwzPJMSBa36WNf87CM6KdQlgbErAM5LAwZuVVk=
347
+ - 5upe6GqIxXm2uDW3HACj9csSJ4XSxnq7ufphY9NXHaCy+8HVTK9nMVkDwgHavD06n9K0ZyijfpQ=
297
348
  X-Amz-Request-Id:
298
- - A0217398933F3126
349
+ - B6768BA41B58E72B
299
350
  Date:
300
- - Thu, 21 Jan 2016 18:48:41 GMT
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, 21 Jan 2016 18:48:40 GMT
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/?max-keys=1000&prefix=
361
+ uri: https://file-manager-tests.s3-us-west-2.amazonaws.com/?encoding-type=url&prefix=
311
362
  body:
312
- encoding: US-ASCII
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-ruby/1.52.0 ruby/2.2.1 x86_64-darwin14
321
- Date:
322
- - Thu, 21 Jan 2016 18:48:40 GMT
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
- - AWS AKIAJ73G6IOWSUPCKP5A:G4NHjq6JS7WyBceo4rKLobttaFc=
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
- - XQX6ueyH8W56S4MOxUt0lO5FwJRLEHfHOWYfUPciCFUXmn0ZuhCXMY+DVzK4HBTRuCw3bZEaiOk=
391
+ - tqL7ZnZKrcdXboU2QhlpTsaOrAcFu7Ajll553m+2iIJrLUFATdDFpUnIIHcmOC3TLR0P37hXWvw=
334
392
  X-Amz-Request-Id:
335
- - 9DA34D601F40F2A7
393
+ - 5D29B49763EC19EC
336
394
  Date:
337
- - Thu, 21 Jan 2016 18:48:42 GMT
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, 21 Jan 2016 18:48:41 GMT
410
+ recorded_at: Thu, 28 Jan 2016 19:35:14 GMT
353
411
  recorded_with: VCR 3.0.1