speakeasy_client_sdk_ruby 2.1.3 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sdk/sdkconfiguration.rb +5 -6
- data/lib/sdk/utils/utils.rb +3 -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: ac90f0d7fcea1df59daa8166168ff63e6ff34a19eff239efa072e74bfa9c831e
|
4
|
+
data.tar.gz: 387b56de28ce1e0ec20821f920a90e89b8c1b62432c886a91f51af90f5dff4e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ba70ca799fd235b538a198ab6012f182704934ad25af65d350d1b77a4773f3dd833bee9e6866b1c32035da17e651d50778353bffbb0582bfdbe2afc01e4bbf
|
7
|
+
data.tar.gz: c82c0f69c35fc0f3a1844e0fe4448885954dfd1a385e42ede881fa42b79868f631f8f4e8402a84a336f11426f8e3836d9499e72ef1f73073637d9acfff85059e
|
data/lib/sdk/sdkconfiguration.rb
CHANGED
@@ -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)
|
37
|
-
def initialize(client, security, server_url, server_idx
|
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
|
43
|
-
@gen_version = '2.
|
44
|
-
@user_agent = 'speakeasy-sdk/ruby 2.1
|
41
|
+
@sdk_version = '2.2.1'
|
42
|
+
@gen_version = '2.231.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 2.2.1 2.231.0 0.3.0 speakeasy_client_sdk_ruby'
|
45
44
|
end
|
46
45
|
|
47
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/sdk/utils/utils.rb
CHANGED
@@ -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
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|