aws-sdk-core 3.0.0.rc2 → 3.0.0.rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,10 @@ module Seahorse
32
32
  end
33
33
 
34
34
  # @api private
35
- DNS_ERROR_MESSAGE = 'getaddrinfo: nodename nor servname provided, or not known'
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 == DNS_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
- @canonical_name, @gem_name = plugin.to_s.split('.').reverse
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.rc2
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: 2016-12-10 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath