ding_sdk 0.6.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ding_sdk/sdkconfiguration.rb +3 -3
- data/lib/ding_sdk/utils/utils.rb +5 -3
- 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: 93c9d2cee7763f36984e7bc84475b9551b1868f0b0fea3a150184489253734a1
|
4
|
+
data.tar.gz: 873e7f80b913ac74b9c229cf3ebafd210cc35d5625801f4dd302ec36945560bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33390f1704429c83ac04d7df80fb5005aec88ce1a22462e4a81c93784519885020cabaa38875645151a8df647f30c13ff8344f4355d03fc9ab8a44411506babc
|
7
|
+
data.tar.gz: f98a46962b4734cc533c9ac7f57cb871abf19850a6e184a223bb47301f095f519a6a978d5d90b732041d57c9135ce676368d99244bf14768e6ef531e5c88f103
|
@@ -38,9 +38,9 @@ module DingSDK
|
|
38
38
|
@server = ''
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '1.0.0'
|
41
|
-
@sdk_version = '0.
|
42
|
-
@gen_version = '2.250.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
41
|
+
@sdk_version = '0.7.1'
|
42
|
+
@gen_version = '2.250.22'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.7.1 2.250.22 1.0.0 ding_sdk'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/ding_sdk/utils/utils.rb
CHANGED
@@ -235,8 +235,8 @@ module DingSDK
|
|
235
235
|
_populate_form(field_name, metadata.fetch(:explode, true), obj, delimiter, &get_query_param_field_name)
|
236
236
|
end
|
237
237
|
|
238
|
-
sig { params(clazz: Class, query_params: FieldAugmented, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(T::Hash[Symbol, T::Array[String]]) }
|
239
|
-
def self.get_query_params(clazz, query_params, gbls)
|
238
|
+
sig { params(clazz: Class, query_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, T::Array[String]]) }
|
239
|
+
def self.get_query_params(clazz, query_params, gbls = nil)
|
240
240
|
params = {}
|
241
241
|
param_fields = clazz.fields
|
242
242
|
param_fields.each do |f|
|
@@ -479,7 +479,9 @@ module DingSDK
|
|
479
479
|
end
|
480
480
|
|
481
481
|
data = "#{username}:#{password}".encode
|
482
|
-
|
482
|
+
# Use strict_encode, because encode adds newlines after 60 chars
|
483
|
+
# https://docs.ruby-lang.org/en/3.0/Base64.html#method-i-encode64
|
484
|
+
req.headers['Authorization'] = "Basic #{Base64.strict_encode64(data)}"
|
483
485
|
end
|
484
486
|
|
485
487
|
sig { params(optional: T::Boolean).returns(T.proc.params(s: String).returns(DateTime)) }
|
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.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|