aws-sdk-core 2.6.41 → 2.6.42

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.6.41'
2
+ VERSION = '2.6.42'
3
3
  end
@@ -30,7 +30,10 @@ module Seahorse
30
30
  end
31
31
 
32
32
  # @api private
33
- DNS_ERROR_MESSAGE = 'getaddrinfo: nodename nor servname provided, or not known'
33
+ DNS_ERROR_MESSAGES = [
34
+ 'getaddrinfo: nodename nor servname provided, or not known', # MacOS
35
+ 'getaddrinfo: Name or service not known' # GNU
36
+ ]
34
37
 
35
38
  # Raised when a {Handler} cannot construct a `Net::HTTP::Request`
36
39
  # from the given http verb.
@@ -52,7 +55,7 @@ module Seahorse
52
55
  private
53
56
 
54
57
  def error_message(req, error)
55
- if error.is_a?(SocketError) && error.message == DNS_ERROR_MESSAGE
58
+ if error.is_a?(SocketError) && DNS_ERROR_MESSAGES.include?(error.message)
56
59
  host = req.endpoint.host
57
60
  "unable to connect to `#{host}`; SocketError: #{error.message}"
58
61
  else
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: 2.6.41
4
+ version: 2.6.42
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: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2016-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath