ding_sdk 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb69849fbc805057aebafadda603ae7bae993ce59d1952a5b38d347302fc9371
4
- data.tar.gz: 0e48cc411f768539ff266cc03a9abe8c051b1ce87fdde470e38ba8be13810c92
3
+ metadata.gz: 7755a7ea92b578f0c69edb551acfcfcd5a401e206797afad149fe4b51058f0f3
4
+ data.tar.gz: a7f9cde017fcff6632826a2f6fc41784474e2d0f8a23e6925b104ded01db7101
5
5
  SHA512:
6
- metadata.gz: 356b5f24b64f9b232792f007849fa8f7c12b3fdedd340061a5648da62f7d256ee196078678b492118c28a775848b5c5edbfe9b781d7a686dd139c498336268e3
7
- data.tar.gz: d003aa8e82c0db9539d953687dee9219d6d9a75cb3e0866df78cb4b628d0d70cbbaaecc59c4e926f951ddd0a88d8b8ecc3df5bf0fdb58c0f4ee06c8ed9bcb84c
6
+ metadata.gz: cfe8b01a2266cc5c8ca8e10705381ba9a9c1a337783feaf954c8212017f08e862b4db34354ae59dcaadab3cc18217f0e1d817f993a16d72942cdfba507f1c583
7
+ data.tar.gz: cba5aa01398ff9bc4cf28751aa9aa3365cb4a3b759f0f6e134aef187854f862e784868d40fff0f183b34bf031690f85010b6947aa7ae4dd7b90c632d731d780a
@@ -38,9 +38,9 @@ module DingSDK
38
38
  @server = server_url.nil? ? '' : server_url
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.5.2'
42
- @gen_version = '2.234.3'
43
- @user_agent = 'speakeasy-sdk/ruby 0.5.2 2.234.3 1.0.0 ding_sdk'
41
+ @sdk_version = '0.5.3'
42
+ @gen_version = '2.237.2'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.5.3 2.237.2 1.0.0 ding_sdk'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -448,9 +448,9 @@ module DingSDK
448
448
  raise StandardError, 'not supported'
449
449
  end
450
450
  when 'openIdConnect'
451
- req.headers[header_name] = value
451
+ req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
452
452
  when 'oauth2'
453
- req.headers[header_name] = value
453
+ req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
454
454
  when 'http'
455
455
  if sub_type == 'bearer'
456
456
  req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ding_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-17 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday