aws-sdk-core 3.0.0.rc2 → 3.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/log/param_filter.rb +1 -1
- data/lib/aws-sdk-core/plugins/retry_errors.rb +1 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +1 -1
- data/lib/aws-sdk-core/rest/request/endpoint.rb +1 -1
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1213 -1152
- data/lib/aws-sdk-sts/client_api.rb +254 -256
- data/lib/aws-sdk-sts/errors.rb +4 -13
- data/lib/aws-sdk-sts/resource.rb +12 -14
- data/lib/aws-sdk-sts/types.rb +859 -828
- data/lib/seahorse/client/net_http/handler.rb +5 -2
- data/lib/seahorse/client/plugin_list.rb +3 -1
- metadata +2 -2
@@ -32,7 +32,10 @@ module Seahorse
|
|
32
32
|
end
|
33
33
|
|
34
34
|
# @api private
|
35
|
-
|
35
|
+
DNS_ERROR_MESSAGES = [
|
36
|
+
'getaddrinfo: nodename nor servname provided, or not known', # MacOS
|
37
|
+
'getaddrinfo: Name or service not known' # GNU
|
38
|
+
]
|
36
39
|
|
37
40
|
# Raised when a {Handler} cannot construct a `Net::HTTP::Request`
|
38
41
|
# from the given http verb.
|
@@ -54,7 +57,7 @@ module Seahorse
|
|
54
57
|
private
|
55
58
|
|
56
59
|
def error_message(req, error)
|
57
|
-
if error.is_a?(SocketError) && error.message
|
60
|
+
if error.is_a?(SocketError) && DNS_ERROR_MESSAGES.include?(error.message)
|
58
61
|
host = req.endpoint.host
|
59
62
|
"unable to connect to `#{host}`; SocketError: #{error.message}"
|
60
63
|
else
|
@@ -87,7 +87,9 @@ module Seahorse
|
|
87
87
|
@canonical_name = plugin.name || plugin.object_id
|
88
88
|
@plugin = plugin
|
89
89
|
when Symbol, String
|
90
|
-
|
90
|
+
words = plugin.to_s.split('.')
|
91
|
+
@canonical_name = words.pop
|
92
|
+
@gem_name = words.empty? ? nil : words.join('.')
|
91
93
|
@plugin = nil
|
92
94
|
else
|
93
95
|
@canonical_name = plugin.object_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.rc3
|
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:
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|