aws-sdk-sso 1.0.0 → 1.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: ea683ddb427161679e649f7dc5a90edc9609b726060469a056d04909d2fdc11c
4
- data.tar.gz: 57e63898c1a090f46c311cd49ea39aeb71c257f6376211c5e531d62032ab2bb3
2
+ SHA1:
3
+ metadata.gz: fd628c39fbee98bad02ffeb8889374c0e7ea4a66
4
+ data.tar.gz: f0d04954c20c25b8b5c4bfc48b99d3bae40a3a53
5
5
  SHA512:
6
- metadata.gz: 4da10aab29aa94deaa69832b47d3884f03465689f02c8490199108abde854a494b1cd37db105a7414bb45d3946473afd69c269f5fc4ec0dc6212c31cfbc3f62d
7
- data.tar.gz: 4c47cd84dcb6200f1acdccf83e95015d991dd3f925b5e370485816a296fefceae0be1de61dccdccb14f27d862ef7e2d719f29c7860abfcfaf87c3327211c316b
6
+ metadata.gz: bcd1fa02f659c89733e25dc479a2e6b597bfcc12fbe98cd6213bf8bf22d000fd30116fa0d9e0d9ac6c778ebabadb3fc3630bb9cbea7d229112bf4da12e9deb89
7
+ data.tar.gz: 8ac1b10982689e708b038550e096a8a87b6c1640080b0b3e7c6e3692d51eb1d91e640081816b7f2da5dd030add61b7fba36346d28bf9d2c54bc3426552e4cb9b
data/lib/aws-sdk-sso.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-sso/customizations'
42
42
  # @service
43
43
  module Aws::SSO
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.1'
46
46
 
47
47
  end
@@ -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.0.0'
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.0.0
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: 2019-11-08 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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