speakeasy_client_sdk_ruby 4.0.16 → 4.1.0

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: 6d6e582fc6b31c9620eb02acd4ed82fae45b5ede8b78260b0c07903029ca59de
4
- data.tar.gz: 1480dde517d7009e3e3a59e97b63a4a58d4907e37186c5660190627615dcbdff
3
+ metadata.gz: 15f95f25f11f1769e451be4caeafecd9ca180297ff0f01283675a0ff910e82c7
4
+ data.tar.gz: 2419fa7582602e22cd1662c39f482bcf9d735a58faa9b1f1daa41d0bfae6b413
5
5
  SHA512:
6
- metadata.gz: 658995bf369f076e62ecf32ee65f7ac9e914ac2cabe64c80dfff48c656527d88307b54414885cf98e7527fdd1f466f1a72265b9456236a8b38f15bc725b70c87
7
- data.tar.gz: cab17545aa543e023e8ded2eed55a33638d4ae7631edb6b3da80617e11c83bb7f8af0f2d3b32e262892de35382fb122302960fb6f4f3a44b1b04a6565dd9fb01
6
+ metadata.gz: 4956a677c95ae2cfe140c308e87548ca9176d683211904b1bfe03e7a1fa8036952266542697de32721457311f3d12e64489a114d092142cef301f1a535cbccd5
7
+ data.tar.gz: eb239e833487faa7eb800cef5e5cab90a3eaeadec75bf3f6c6ff579da2a314e9ea29ae76d063b4772e2d6792ba973ac1929b4bfcdd8354eed3b87be7790ca543
@@ -59,6 +59,8 @@ module SpeakeasyClientSDK
59
59
  },
60
60
  'pathParam': {
61
61
  'workspace_id': workspace_id
62
+ },
63
+ 'header': {
62
64
  }
63
65
  }
64
66
  }
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0'
44
- @sdk_version = '4.0.16'
45
- @gen_version = '2.286.7'
46
- @user_agent = 'speakeasy-sdk/ruby 4.0.16 2.286.7 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.1.0'
45
+ @gen_version = '2.291.0'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.1.0 2.291.0 0.4.0 speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -29,8 +29,8 @@ module SpeakeasyClientSDK
29
29
  end
30
30
  end
31
31
 
32
- sig { params(headers_params: FieldAugmented).returns(T::Hash[Symbol, String]) }
33
- def self.get_headers(headers_params)
32
+ sig { params(headers_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, String]) }
33
+ def self.get_headers(headers_params, gbls = nil)
34
34
  return {} if headers_params.nil?
35
35
 
36
36
  headers = {}
@@ -39,7 +39,8 @@ module SpeakeasyClientSDK
39
39
  metadata = f.metadata[:header]
40
40
  next if metadata.nil?
41
41
 
42
- value = _serialize_header(metadata.fetch(:explode, false), headers_params.send(f.name))
42
+ value = _populate_from_globals(f.name, headers_params&.send(f.name), 'header', gbls)
43
+ value = _serialize_header(metadata.fetch(:explode, false), value)
43
44
  headers[metadata.fetch(:field_name, f.name)] = value if !value.empty?
44
45
  end
45
46
  headers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_client_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.16
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday