aws-sdk-s3 1.0.0.rc8 → 1.0.0.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +4 -2
- data/lib/aws-sdk-s3/plugins/s3_host_id.rb +28 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819838a83ffb3a1668d6206a60bb87ce60bdd3c7
|
4
|
+
data.tar.gz: 78e7f5d4cfe1ca1defe81ed593cfe042c22337ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f5373f8235052332123579e0a86bbd9699da390d576121c53eeaf2760b1545b37a16194bb7cd7a2d438231977c31ca3bf11747a50c48e5daf81848223261302
|
7
|
+
data.tar.gz: f63211eb010ece09fbb6230cb3ebad6584f42a861d049858a50635afcff0748d5da6a7040ccaf7eaeb9b1f10141fe6be65c28273c2405c740248f590f4b45066
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -25,6 +25,7 @@ require 'aws-sdk-s3/plugins/dualstack.rb'
|
|
25
25
|
require 'aws-sdk-s3/plugins/bucket_dns.rb'
|
26
26
|
require 'aws-sdk-s3/plugins/expect_100_continue.rb'
|
27
27
|
require 'aws-sdk-s3/plugins/http_200_errors.rb'
|
28
|
+
require 'aws-sdk-s3/plugins/s3_host_id.rb'
|
28
29
|
require 'aws-sdk-s3/plugins/get_bucket_location_fix.rb'
|
29
30
|
require 'aws-sdk-s3/plugins/location_constraint.rb'
|
30
31
|
require 'aws-sdk-s3/plugins/md5s.rb'
|
@@ -65,6 +66,7 @@ module Aws::S3
|
|
65
66
|
add_plugin(Aws::S3::Plugins::BucketDns)
|
66
67
|
add_plugin(Aws::S3::Plugins::Expect100Continue)
|
67
68
|
add_plugin(Aws::S3::Plugins::Http200Errors)
|
69
|
+
add_plugin(Aws::S3::Plugins::S3HostId)
|
68
70
|
add_plugin(Aws::S3::Plugins::GetBucketLocationFix)
|
69
71
|
add_plugin(Aws::S3::Plugins::LocationConstraint)
|
70
72
|
add_plugin(Aws::S3::Plugins::Md5s)
|
@@ -1602,7 +1604,7 @@ module Aws::S3
|
|
1602
1604
|
#
|
1603
1605
|
# @return [Types::GetBucketPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1604
1606
|
#
|
1605
|
-
# * {Types::GetBucketPolicyOutput#policy #policy} =>
|
1607
|
+
# * {Types::GetBucketPolicyOutput#policy #policy} => IO
|
1606
1608
|
#
|
1607
1609
|
# @example Request syntax with placeholder values
|
1608
1610
|
#
|
@@ -4363,7 +4365,7 @@ module Aws::S3
|
|
4363
4365
|
params: params,
|
4364
4366
|
config: config)
|
4365
4367
|
context[:gem_name] = 'aws-sdk-s3'
|
4366
|
-
context[:gem_version] = '1.0.0.
|
4368
|
+
context[:gem_version] = '1.0.0.rc9'
|
4367
4369
|
Seahorse::Client::Request.new(handlers, context)
|
4368
4370
|
end
|
4369
4371
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Aws
|
2
|
+
module S3
|
3
|
+
module Plugins
|
4
|
+
|
5
|
+
# Support S3 host id, more information, see:
|
6
|
+
# http://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html#sdk-request-ids
|
7
|
+
#
|
8
|
+
# This plugin adds :host_id for s3 responses when available
|
9
|
+
# @api private
|
10
|
+
class S3HostId < Seahorse::Client::Plugin
|
11
|
+
|
12
|
+
class Handler < Seahorse::Client::Handler
|
13
|
+
|
14
|
+
def call(context)
|
15
|
+
response = @handler.call(context)
|
16
|
+
h = context.http_response.headers
|
17
|
+
context[:s3_host_id] = h['x-amz-id-2']
|
18
|
+
response
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
handler(Handler, step: :sign)
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0.0.
|
47
|
+
version: 3.0.0.rc13
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.0.
|
54
|
+
version: 3.0.0.rc13
|
55
55
|
description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
|
56
56
|
This gem is part of the AWS SDK for Ruby.
|
57
57
|
email:
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/aws-sdk-s3/plugins/location_constraint.rb
|
121
121
|
- lib/aws-sdk-s3/plugins/md5s.rb
|
122
122
|
- lib/aws-sdk-s3/plugins/redirects.rb
|
123
|
+
- lib/aws-sdk-s3/plugins/s3_host_id.rb
|
123
124
|
- lib/aws-sdk-s3/plugins/s3_signer.rb
|
124
125
|
- lib/aws-sdk-s3/plugins/sse_cpk.rb
|
125
126
|
- lib/aws-sdk-s3/plugins/url_encoded_keys.rb
|