aws-sdk-sso 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +3 -1
- data/lib/aws-sdk-sso/plugins/content_type.rb +23 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd628c39fbee98bad02ffeb8889374c0e7ea4a66
|
4
|
+
data.tar.gz: f0d04954c20c25b8b5c4bfc48b99d3bae40a3a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd1fa02f659c89733e25dc479a2e6b597bfcc12fbe98cd6213bf8bf22d000fd30116fa0d9e0d9ac6c778ebabadb3fc3630bb9cbea7d229112bf4da12e9deb89
|
7
|
+
data.tar.gz: 8ac1b10982689e708b038550e096a8a87b6c1640080b0b3e7c6e3692d51eb1d91e640081816b7f2da5dd030add61b7fba36346d28bf9d2c54bc3426552e4cb9b
|
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED
@@ -26,6 +26,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
27
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
28
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
|
+
require 'aws-sdk-sso/plugins/content_type.rb'
|
29
30
|
|
30
31
|
Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
|
31
32
|
|
@@ -59,6 +60,7 @@ module Aws::SSO
|
|
59
60
|
add_plugin(Aws::Plugins::TransferEncoding)
|
60
61
|
add_plugin(Aws::Plugins::SignatureV4)
|
61
62
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
63
|
+
add_plugin(Aws::SSO::Plugins::ContentType)
|
62
64
|
|
63
65
|
# @overload initialize(options)
|
64
66
|
# @param [Hash] options
|
@@ -444,7 +446,7 @@ module Aws::SSO
|
|
444
446
|
params: params,
|
445
447
|
config: config)
|
446
448
|
context[:gem_name] = 'aws-sdk-sso'
|
447
|
-
context[:gem_version] = '1.
|
449
|
+
context[:gem_version] = '1.1.1'
|
448
450
|
Seahorse::Client::Request.new(handlers, context)
|
449
451
|
end
|
450
452
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Aws
|
2
|
+
module SSO
|
3
|
+
module Plugins
|
4
|
+
class ContentType < Seahorse::Client::Plugin
|
5
|
+
|
6
|
+
def add_handlers(handlers, config)
|
7
|
+
handlers.add(Handler)
|
8
|
+
end
|
9
|
+
|
10
|
+
class Handler < Seahorse::Client::Handler
|
11
|
+
def call(context)
|
12
|
+
# Some SSO operations break when given an empty content-type header.
|
13
|
+
# The SDK adds this blank content-type header
|
14
|
+
# since Net::HTTP provides a default that can break services.
|
15
|
+
# We're setting one here even though it's not used or necessary.
|
16
|
+
context.http_request.headers['content-type'] = 'application/json'
|
17
|
+
@handler.call(context)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.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:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/aws-sdk-sso/client_api.rb
|
58
58
|
- lib/aws-sdk-sso/customizations.rb
|
59
59
|
- lib/aws-sdk-sso/errors.rb
|
60
|
+
- lib/aws-sdk-sso/plugins/content_type.rb
|
60
61
|
- lib/aws-sdk-sso/resource.rb
|
61
62
|
- lib/aws-sdk-sso/types.rb
|
62
63
|
homepage: https://github.com/aws/aws-sdk-ruby
|
@@ -80,7 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
81
|
- !ruby/object:Gem::Version
|
81
82
|
version: '0'
|
82
83
|
requirements: []
|
83
|
-
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.5.2.3
|
84
86
|
signing_key:
|
85
87
|
specification_version: 4
|
86
88
|
summary: AWS SDK for Ruby - SSO
|