speakeasy_client_sdk_ruby 2.1.3 → 2.2.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: 934b0feafa1023fc14cd25076cffa7c3717a5f49adec933a3613973c9d874357
4
- data.tar.gz: 26b27f8fc5b20e7400d993b8066f8152a1a75c460b79074835a2e7670c4ba088
3
+ metadata.gz: 4544ed43424286b672d7f150853891e94594910385dffced4be6fdf6bb6f2c71
4
+ data.tar.gz: 31a13630acbb269a8cea1cc7b8bb9050ba672a6b6b4ddf5b1a78088317d51315
5
5
  SHA512:
6
- metadata.gz: 8ccf0f4193e7329760fabe4e74bc04c4dbbc886fb4fcca7b84b88a699f8e50a55051e8e3a8a0c760aeb7857201ebc6b5f5b9072053c6fc12fb991b7962850ff7
7
- data.tar.gz: dd173cb3f65ea40f13cb146d91967214fb1f5a398199091293706b31fa9669ae83da6f0554ceb0485dabdcb470b668bcc2d502d8e771039ee4c3087754dfa096
6
+ metadata.gz: '081b8dd1882b94eafaa6ef96714273978258f1c7b051968b4a2166540ed44f733e30b8020f46e884b3d1105467edc779d51708b5ef47e861eeff693c9ad01fe9'
7
+ data.tar.gz: 93db33b61601291e81abbae7b0ecc8d7d6719ff3e1fa8cfa2e2ff7a4907e94d7e8511b2ff94a70997f4cc1b1548a34d72855c0942ae98c43c8c4c41fe93a594c
@@ -25,7 +25,6 @@ module OpenApiSDK
25
25
  field :security, Shared::Security
26
26
  field :server_url, T.nilable(String)
27
27
  field :server, T.nilable(String)
28
- field :server_defaults, Hash[Symbol, Hash[Symbol, String]], { 'default_factory': Hash}
29
28
  field :language, String
30
29
  field :openapi_doc_version, String
31
30
  field :sdk_version, String
@@ -33,15 +32,15 @@ module OpenApiSDK
33
32
  field :user_agent, String
34
33
 
35
34
 
36
- sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer), server_defaults: T::Hash[Symbol, String], globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
37
- def initialize(client, security, server_url, server_idx, server_defaults, globals)
35
+ sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
36
+ def initialize(client, security, server_url, server_idx)
38
37
  @client = client
39
38
  @server = server_url.nil? ? '' : server_url
40
39
  @language = 'ruby'
41
40
  @openapi_doc_version = '0.3.0'
42
- @sdk_version = '2.1.3'
43
- @gen_version = '2.210.6'
44
- @user_agent = 'speakeasy-sdk/ruby 2.1.3 2.210.6 0.3.0 speakeasy_client_sdk_ruby'
41
+ @sdk_version = '2.2.0'
42
+ @gen_version = '2.213.3'
43
+ @user_agent = 'speakeasy-sdk/ruby 2.2.0 2.213.3 0.3.0 speakeasy_client_sdk_ruby'
45
44
  end
46
45
 
47
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -279,8 +279,8 @@ module SpeakeasyClientSDK
279
279
  params
280
280
  end
281
281
 
282
- sig { params(clazz: Class, server_url: String, path: String, path_params: FieldAugmented, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(String) }
283
- def self.generate_url(clazz, server_url, path, path_params, gbls)
282
+ sig { params(clazz: Class, server_url: String, path: String, path_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(String) }
283
+ def self.generate_url(clazz, server_url, path, path_params, gbls = nil)
284
284
  clazz.fields.each do |f|
285
285
  param_metadata = f.metadata[:path_param]
286
286
  next if param_metadata.nil?
@@ -718,7 +718,7 @@ module SpeakeasyClientSDK
718
718
  url_with_params
719
719
  end
720
720
 
721
- sig { params(param_name: Symbol, value: Object, param_type: String, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(Object) }
721
+ sig { params(param_name: Symbol, value: Object, param_type: String, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(Object) }
722
722
  def self._populate_from_globals(param_name, value, param_type, gbls)
723
723
  if value.nil? && !gbls.nil?
724
724
  global_value = gbls.dig(:parameters, param_type.to_sym, param_name.to_sym)
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: 2.1.3
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday