aws-sdk-core 3.119.0 → 3.121.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/json/json_engine.rb +10 -8
- data/lib/aws-sdk-core/json/oj_engine.rb +33 -6
- data/lib/aws-sdk-core/json.rb +8 -26
- data/lib/aws-sdk-core/shared_config.rb +2 -1
- data/lib/aws-sdk-core/structure.rb +1 -1
- data/lib/aws-sdk-core/xml/parser/engines/rexml.rb +0 -8
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/h2/connection.rb +3 -5
- data/lib/seahorse/client/h2/handler.rb +4 -5
- data/lib/seahorse/client/net_http/patches.rb +1 -88
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6045e01344ede12d88ef25ca9815ce3b267a0b08335e9f97753e5fd357f05a83
|
4
|
+
data.tar.gz: f0e783887c602e49acfa7837f0434a39936b786325846553e5db075f4c48b416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ffa8d2716f3ecc99d5d52139811ef43d82250350be7b8db687bfa9cc25c8d046be6102f62dce196e9b85394c0b0c1db9df8356ff106c793ab232118e26682b2
|
7
|
+
data.tar.gz: 3c14caf81ef5425d0d5ee7f1b1d3f1dab3df5dfdb5673cbbe023120cef954fde6cdbf26e52cfcf74a62ef3863d14cf5d3dad6105007fc15960f8e60ab5b2a1a9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.121.1 (2021-09-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Fix error in finding union member for boolean shapes with `false` values.
|
8
|
+
|
9
|
+
3.121.0 (2021-09-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support for S3 Multi-region access point configuration.
|
13
|
+
|
14
|
+
3.120.0 (2021-09-01)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - AWS SDK for Ruby no longer supports Ruby runtime versions 1.9, 2.0, 2.1, and 2.2.
|
18
|
+
|
19
|
+
3.119.1 (2021-08-20)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Issue - Refactored `Aws::Json::Engine` to remove dead code and replaced usage of `JSON.load` with `JSON.parse`.
|
23
|
+
|
4
24
|
3.119.0 (2021-07-30)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.121.1
|
@@ -2,16 +2,18 @@
|
|
2
2
|
|
3
3
|
module Aws
|
4
4
|
module Json
|
5
|
-
|
5
|
+
module JSONEngine
|
6
|
+
class << self
|
7
|
+
def load(json)
|
8
|
+
JSON.parse(json)
|
9
|
+
rescue JSON::ParserError => e
|
10
|
+
raise ParseError.new(e)
|
11
|
+
end
|
6
12
|
|
7
|
-
|
8
|
-
|
13
|
+
def dump(value)
|
14
|
+
JSON.dump(value)
|
15
|
+
end
|
9
16
|
end
|
10
|
-
|
11
|
-
def self.dump(value)
|
12
|
-
JSON.dump(value)
|
13
|
-
end
|
14
|
-
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -2,16 +2,43 @@
|
|
2
2
|
|
3
3
|
module Aws
|
4
4
|
module Json
|
5
|
-
|
5
|
+
module OjEngine
|
6
|
+
# @api private
|
7
|
+
LOAD_OPTIONS = { mode: :compat, symbol_keys: false, empty_string: false }.freeze
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
9
|
+
# @api private
|
10
|
+
DUMP_OPTIONS = { mode: :compat }.freeze
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def load(json)
|
14
|
+
Oj.load(json, LOAD_OPTIONS)
|
15
|
+
rescue *PARSE_ERRORS => e
|
16
|
+
raise ParseError.new(e)
|
17
|
+
end
|
18
|
+
|
19
|
+
def dump(value)
|
20
|
+
Oj.dump(value, DUMP_OPTIONS)
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
# Oj before 1.4.0 does not define Oj::ParseError and instead raises
|
26
|
+
# SyntaxError on failure
|
27
|
+
def detect_oj_parse_errors
|
28
|
+
require 'oj'
|
10
29
|
|
11
|
-
|
12
|
-
|
30
|
+
if Oj.const_defined?(:ParseError)
|
31
|
+
[Oj::ParseError, EncodingError, JSON::ParserError]
|
32
|
+
else
|
33
|
+
[SyntaxError]
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
nil
|
37
|
+
end
|
13
38
|
end
|
14
39
|
|
40
|
+
# @api private
|
41
|
+
PARSE_ERRORS = detect_oj_parse_errors
|
15
42
|
end
|
16
43
|
end
|
17
44
|
end
|
data/lib/aws-sdk-core/json.rb
CHANGED
@@ -5,6 +5,8 @@ require_relative 'json/builder'
|
|
5
5
|
require_relative 'json/error_handler'
|
6
6
|
require_relative 'json/handler'
|
7
7
|
require_relative 'json/parser'
|
8
|
+
require_relative 'json/json_engine'
|
9
|
+
require_relative 'json/oj_engine'
|
8
10
|
|
9
11
|
module Aws
|
10
12
|
# @api private
|
@@ -20,9 +22,7 @@ module Aws
|
|
20
22
|
|
21
23
|
class << self
|
22
24
|
def load(json)
|
23
|
-
ENGINE.load(json
|
24
|
-
rescue *ENGINE_ERRORS => e
|
25
|
-
raise ParseError, e
|
25
|
+
ENGINE.load(json)
|
26
26
|
end
|
27
27
|
|
28
28
|
def load_file(path)
|
@@ -30,38 +30,20 @@ module Aws
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def dump(value)
|
33
|
-
ENGINE.dump(value
|
33
|
+
ENGINE.dump(value)
|
34
34
|
end
|
35
35
|
|
36
36
|
private
|
37
37
|
|
38
|
-
def
|
38
|
+
def select_engine
|
39
39
|
require 'oj'
|
40
|
-
|
41
|
-
Oj,
|
42
|
-
[{ mode: :compat, symbol_keys: false, empty_string: false }],
|
43
|
-
[{ mode: :compat }],
|
44
|
-
oj_parse_error
|
45
|
-
]
|
40
|
+
OjEngine
|
46
41
|
rescue LoadError
|
47
|
-
|
48
|
-
end
|
49
|
-
|
50
|
-
def json_engine
|
51
|
-
[JSON, [], [], [JSON::ParserError]]
|
52
|
-
end
|
53
|
-
|
54
|
-
def oj_parse_error
|
55
|
-
if Oj.const_defined?('ParseError')
|
56
|
-
[Oj::ParseError, EncodingError, JSON::ParserError]
|
57
|
-
else
|
58
|
-
[SyntaxError]
|
59
|
-
end
|
42
|
+
JSONEngine
|
60
43
|
end
|
61
44
|
end
|
62
45
|
|
63
46
|
# @api private
|
64
|
-
ENGINE
|
65
|
-
oj_engine || json_engine
|
47
|
+
ENGINE = select_engine
|
66
48
|
end
|
67
49
|
end
|
@@ -1,16 +1,8 @@
|
|
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
|
-
|
9
3
|
require 'rexml/document'
|
10
4
|
require 'rexml/streamlistener'
|
11
5
|
|
12
|
-
$LOAD_PATH.shift if use_system_rexml
|
13
|
-
|
14
6
|
module Aws
|
15
7
|
module Xml
|
16
8
|
class Parser
|
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -2303,7 +2303,7 @@ module Aws::STS
|
|
2303
2303
|
params: params,
|
2304
2304
|
config: config)
|
2305
2305
|
context[:gem_name] = 'aws-sdk-core'
|
2306
|
-
context[:gem_version] = '3.
|
2306
|
+
context[:gem_version] = '3.121.1'
|
2307
2307
|
Seahorse::Client::Request.new(handlers, context)
|
2308
2308
|
end
|
2309
2309
|
|
data/lib/aws-sdk-sts.rb
CHANGED
@@ -12,96 +12,9 @@ module Seahorse
|
|
12
12
|
|
13
13
|
def self.apply!
|
14
14
|
return unless RUBY_VERSION < '2.5'
|
15
|
-
|
16
|
-
Net::HTTP::IDEMPOTENT_METHODS_.clear
|
17
|
-
return
|
18
|
-
end
|
19
|
-
# no further patches needed for above versions
|
20
|
-
|
21
|
-
if RUBY_VERSION >= '2.0'
|
22
|
-
Net::HTTP.send(:include, Ruby_2)
|
23
|
-
Net::HTTP::IDEMPOTENT_METHODS_.clear
|
24
|
-
elsif RUBY_VERSION >= '1.9.3'
|
25
|
-
Net::HTTP.send(:include, Ruby_1_9_3)
|
26
|
-
end
|
27
|
-
Net::HTTP.send(:alias_method, :old_transport_request, :transport_request)
|
28
|
-
Net::HTTP.send(:alias_method, :transport_request, :new_transport_request)
|
15
|
+
Net::HTTP::IDEMPOTENT_METHODS_.clear
|
29
16
|
end
|
30
17
|
|
31
|
-
module Ruby_2
|
32
|
-
def new_transport_request(req)
|
33
|
-
count = 0
|
34
|
-
begin
|
35
|
-
begin_transport req
|
36
|
-
res = catch(:response) {
|
37
|
-
req.exec @socket, @curr_http_version, edit_path(req.path)
|
38
|
-
begin
|
39
|
-
res = Net::HTTPResponse.read_new(@socket)
|
40
|
-
res.decode_content = req.decode_content
|
41
|
-
end while res.kind_of?(Net::HTTPInformation)
|
42
|
-
|
43
|
-
res.uri = req.uri
|
44
|
-
|
45
|
-
res
|
46
|
-
}
|
47
|
-
res.reading_body(@socket, req.response_body_permitted?) {
|
48
|
-
yield res if block_given?
|
49
|
-
}
|
50
|
-
rescue Net::OpenTimeout
|
51
|
-
raise
|
52
|
-
rescue Net::ReadTimeout, IOError, EOFError,
|
53
|
-
Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE,
|
54
|
-
# avoid a dependency on OpenSSL
|
55
|
-
defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : IOError,
|
56
|
-
Timeout::Error => exception
|
57
|
-
if count == 0 && Net::HTTP::IDEMPOTENT_METHODS_.include?(req.method)
|
58
|
-
count += 1
|
59
|
-
@socket.close if @socket and not @socket.closed?
|
60
|
-
D "Conn close because of error #{exception}, and retry"
|
61
|
-
if req.body_stream
|
62
|
-
if req.body_stream.respond_to?(:rewind)
|
63
|
-
req.body_stream.rewind
|
64
|
-
else
|
65
|
-
raise
|
66
|
-
end
|
67
|
-
end
|
68
|
-
retry
|
69
|
-
end
|
70
|
-
D "Conn close because of error #{exception}"
|
71
|
-
@socket.close if @socket and not @socket.closed?
|
72
|
-
raise
|
73
|
-
end
|
74
|
-
|
75
|
-
end_transport req, res
|
76
|
-
res
|
77
|
-
rescue => exception
|
78
|
-
D "Conn close because of error #{exception}"
|
79
|
-
@socket.close if @socket and not @socket.closed?
|
80
|
-
raise exception
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
module Ruby_1_9_3
|
85
|
-
def new_transport_request(req)
|
86
|
-
begin_transport req
|
87
|
-
res = catch(:response) {
|
88
|
-
req.exec @socket, @curr_http_version, edit_path(req.path)
|
89
|
-
begin
|
90
|
-
res = Net::HTTPResponse.read_new(@socket)
|
91
|
-
end while res.kind_of?(Net::HTTPContinue)
|
92
|
-
res
|
93
|
-
}
|
94
|
-
res.reading_body(@socket, req.response_body_permitted?) {
|
95
|
-
yield res if block_given?
|
96
|
-
}
|
97
|
-
end_transport req, res
|
98
|
-
res
|
99
|
-
rescue => exception
|
100
|
-
D "Conn close because of error #{exception}"
|
101
|
-
@socket.close if @socket and not @socket.closed?
|
102
|
-
raise exception
|
103
|
-
end
|
104
|
-
end
|
105
18
|
end
|
106
19
|
end
|
107
20
|
end
|
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.
|
4
|
+
version: 3.121.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: 2021-
|
11
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -300,7 +300,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
300
300
|
requirements:
|
301
301
|
- - ">="
|
302
302
|
- !ruby/object:Gem::Version
|
303
|
-
version: '
|
303
|
+
version: '2.3'
|
304
304
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
306
|
- - ">="
|