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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe6243d612c59cc553c62339c822520671efa8c5ee4b47df1844f0cae99572ac
4
- data.tar.gz: bfccf263211c686f9c53e9aadddf26b79eb62743948a60f31e1232a374c8ce51
3
+ metadata.gz: 93c9d2cee7763f36984e7bc84475b9551b1868f0b0fea3a150184489253734a1
4
+ data.tar.gz: 873e7f80b913ac74b9c229cf3ebafd210cc35d5625801f4dd302ec36945560bd
5
5
  SHA512:
6
- metadata.gz: 583984a23fdb77f20f35a0ec8c49726f891647696c53361f6e1ca48141e3e2d0ffee8c71ef714187041de1a4ff8fa1bce5eace435c661e84db3e97f5477c2f13
7
- data.tar.gz: 6ba811ed065f5d3f72f65c5183af48a2d9e9f183068cdbe6aa4adf0fae0ab64e03c4b327fb7eec2c2f581e588492d17a9cd12031d6aef2690ef5ff777040e1d7
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.6.0'
42
- @gen_version = '2.250.2'
43
- @user_agent = 'speakeasy-sdk/ruby 0.6.0 2.250.2 1.0.0 ding_sdk'
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]]) }
@@ -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
- req.headers['Authorization'] = "Basic #{Base64.encode64(data)}"
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.6.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-06 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday