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 +4 -4
- data/lib/ding/sdkconfiguration.rb +3 -3
- data/lib/ding/utils/utils.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7755a7ea92b578f0c69edb551acfcfcd5a401e206797afad149fe4b51058f0f3
|
4
|
+
data.tar.gz: a7f9cde017fcff6632826a2f6fc41784474e2d0f8a23e6925b104ded01db7101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.5.
|
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]]) }
|
data/lib/ding/utils/utils.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|