aws-sdk-core 3.110.0 → 3.112.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,7 +97,7 @@ module Aws
97
97
  # @return [String]
98
98
  attr_reader :pattern
99
99
 
100
- # Given a resopnse, this will format a log message and return it as a
100
+ # Given a response, this will format a log message and return it as a
101
101
  # string according to {#pattern}.
102
102
  # @param [Seahorse::Client::Response] response
103
103
  # @return [String]
@@ -21,8 +21,7 @@ to default service endpoint when available.
21
21
  class Handler < Seahorse::Client::Handler
22
22
 
23
23
  def call(context)
24
- if context.config.regional_endpoint &&
25
- !context.config.disable_host_prefix_injection
24
+ if !context.config.disable_host_prefix_injection
26
25
  endpoint_trait = context.operation.endpoint_pattern
27
26
  if endpoint_trait && !endpoint_trait.empty?
28
27
  _apply_endpoint_trait(context, endpoint_trait)
@@ -176,11 +176,12 @@ a clock skew correction and retry requests with skewed client clocks.
176
176
  end
177
177
 
178
178
  def self.resolve_max_attempts(cfg)
179
- value = (ENV['AWS_MAX_ATTEMPTS'] && ENV['AWS_MAX_ATTEMPTS'].to_i) ||
179
+ value = (ENV['AWS_MAX_ATTEMPTS']) ||
180
180
  Aws.shared_config.max_attempts(profile: cfg.profile) ||
181
- 3
181
+ '3'
182
+ value = value.to_i
182
183
  # Raise if provided value is not a positive integer
183
- if !value.is_a?(Integer) || value <= 0
184
+ if value <= 0
184
185
  raise ArgumentError,
185
186
  'Must provide a positive integer for max_attempts profile '\
186
187
  'option or for ENV[\'AWS_MAX_ATTEMPTS\']'
@@ -70,6 +70,11 @@ module Aws
70
70
  [:ox, :oga, :libxml, :nokogiri, :rexml].each do |name|
71
71
  @engine ||= try_load_engine(name)
72
72
  end
73
+ unless @engine
74
+ raise 'Unable to find a compatible xml library. ' \
75
+ 'Ensure that you have installed or added to your Gemfile one of ' \
76
+ 'ox, oga, libxml, nokogiri or rexml'
77
+ end
73
78
  end
74
79
 
75
80
  private
@@ -1,8 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ use_system_rexml = ((RUBY_VERSION <=> "2.0.0") < 0)
4
+ if use_system_rexml
5
+ require "rbconfig"
6
+ $LOAD_PATH.unshift(RbConfig::CONFIG["rubylibdir"])
7
+ end
8
+
3
9
  require 'rexml/document'
4
10
  require 'rexml/streamlistener'
5
11
 
12
+ $LOAD_PATH.shift if use_system_rexml
13
+
6
14
  module Aws
7
15
  module Xml
8
16
  class Parser
data/lib/aws-sdk-sso.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sso/customizations'
50
50
  # @!group service
51
51
  module Aws::SSO
52
52
 
53
- GEM_VERSION = '3.110.0'
53
+ GEM_VERSION = '3.112.1'
54
54
 
55
55
  end
@@ -523,7 +523,7 @@ module Aws::SSO
523
523
  params: params,
524
524
  config: config)
525
525
  context[:gem_name] = 'aws-sdk-core'
526
- context[:gem_version] = '3.110.0'
526
+ context[:gem_version] = '3.112.1'
527
527
  Seahorse::Client::Request.new(handlers, context)
528
528
  end
529
529
 
@@ -11,7 +11,7 @@ module Aws
11
11
 
12
12
  class Handler < Seahorse::Client::Handler
13
13
  def call(context)
14
- # Some SSO operations break when given an empty content-type header.
14
+ # Some operations break when given an empty content-type header.
15
15
  # The SDK adds this blank content-type header
16
16
  # since Net::HTTP provides a default that can break services.
17
17
  # We're setting one here even though it's not used or necessary.
data/lib/aws-sdk-sts.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sts/customizations'
50
50
  # @!group service
51
51
  module Aws::STS
52
52
 
53
- GEM_VERSION = '3.110.0'
53
+ GEM_VERSION = '3.112.1'
54
54
 
55
55
  end
@@ -2204,7 +2204,7 @@ module Aws::STS
2204
2204
  params: params,
2205
2205
  config: config)
2206
2206
  context[:gem_name] = 'aws-sdk-core'
2207
- context[:gem_version] = '3.110.0'
2207
+ context[:gem_version] = '3.112.1'
2208
2208
  Seahorse::Client::Request.new(handlers, context)
2209
2209
  end
2210
2210
 
@@ -75,7 +75,7 @@ module Seahorse
75
75
  def connect(endpoint)
76
76
  @mutex.synchronize {
77
77
  if @status == :ready
78
- tcp, addr = _tcp_socket(endpoint)
78
+ tcp, addr = _tcp_socket(endpoint)
79
79
  debug_output("opening connection to #{endpoint.host}:#{endpoint.port} ...")
80
80
  _nonblocking_connect(tcp, addr)
81
81
  debug_output('opened')
@@ -245,4 +245,3 @@ module Seahorse
245
245
  end
246
246
  end
247
247
  end
248
-
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.110.0
4
+ version: 3.112.1
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: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -85,6 +85,8 @@ executables: []
85
85
  extensions: []
86
86
  extra_rdoc_files: []
87
87
  files:
88
+ - CHANGELOG.md
89
+ - LICENSE.txt
88
90
  - VERSION
89
91
  - ca-bundle.crt
90
92
  - lib/aws-sdk-core.rb
@@ -108,6 +110,7 @@ files:
108
110
  - lib/aws-sdk-core/credentials.rb
109
111
  - lib/aws-sdk-core/deprecations.rb
110
112
  - lib/aws-sdk-core/eager_loader.rb
113
+ - lib/aws-sdk-core/ec2_metadata.rb
111
114
  - lib/aws-sdk-core/ecs_credentials.rb
112
115
  - lib/aws-sdk-core/endpoint_cache.rb
113
116
  - lib/aws-sdk-core/errors.rb