diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 855f894..017609c 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f management: docChecksum: e34dac84738ebf2d447ea2b9055a6eeb docVersion: 0.0.3 - speakeasyVersion: 1.210.0 - generationVersion: 2.281.2 - releaseVersion: 0.0.2 - configChecksum: 4cede5e59af7b59748b57ba4cf05f03f + speakeasyVersion: 1.227.0 + generationVersion: 2.291.0 + releaseVersion: 0.0.3 + configChecksum: 76291a9089e3bdebd2b1c4ce0f83beee repoURL: https://github.com/LukeHagar/plexruby.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexruby @@ -14,7 +14,7 @@ features: ruby: core: 3.2.11 flattening: 2.81.1 - globalSecurity: 2.81.5 + globalSecurity: 2.81.6 globalServerURLs: 2.82.3 methodServerURLs: 2.82.1 nameOverrides: 2.81.1 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ddd9b4b..babb80b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false ruby: - version: 0.0.2 + version: 0.0.3 author: LukeHagar description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/Gemfile.lock b/Gemfile.lock index 8b92650..fdd6e9e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plexruby (0.0.2) + plexruby (0.0.3) faraday faraday-multipart rack @@ -58,6 +58,7 @@ GEM sorbet (0.5.11287) sorbet-static (= 0.5.11287) sorbet-runtime (0.5.11287) + sorbet-static (0.5.11287-aarch64-linux) sorbet-static (0.5.11287-x86_64-linux) sorbet-static-and-runtime (0.5.11287) sorbet (= 0.5.11287) @@ -87,6 +88,7 @@ GEM yard (>= 0.9) PLATFORMS + aarch64-linux x86_64-linux DEPENDENCIES diff --git a/RELEASES.md b/RELEASES.md index 6a21ce1..1e32fcf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -6,4 +6,12 @@ Based on: - OpenAPI Doc 0.0.3 - Speakeasy CLI 1.198.1 (2.275.4) https://github.com/speakeasy-api/speakeasy ### Generated -- [ruby v0.0.1] . \ No newline at end of file +- [ruby v0.0.1] . + +## 2024-03-27 00:46:37 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.0.3] . \ No newline at end of file diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 14bb142..148fb53 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -40,9 +40,9 @@ module OpenApiSDK @security = security @language = 'ruby' @openapi_doc_version = '0.0.3' - @sdk_version = '0.0.2' - @gen_version = '2.281.2' - @user_agent = 'speakeasy-sdk/ruby 0.0.2 2.281.2 0.0.3 plexruby' + @sdk_version = '0.0.3' + @gen_version = '2.291.0' + @user_agent = 'speakeasy-sdk/ruby 0.0.3 2.291.0 0.0.3 plexruby' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/open_api_sdk/utils/utils.rb b/lib/open_api_sdk/utils/utils.rb index 7205a82..b773273 100644 --- a/lib/open_api_sdk/utils/utils.rb +++ b/lib/open_api_sdk/utils/utils.rb @@ -29,8 +29,8 @@ module OpenApiSDK end end - sig { params(headers_params: FieldAugmented).returns(T::Hash[Symbol, String]) } - def self.get_headers(headers_params) + sig { params(headers_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, String]) } + def self.get_headers(headers_params, gbls = nil) return {} if headers_params.nil? headers = {} @@ -39,7 +39,8 @@ module OpenApiSDK metadata = f.metadata[:header] next if metadata.nil? - value = _serialize_header(metadata.fetch(:explode, false), headers_params.send(f.name)) + value = _populate_from_globals(f.name, headers_params&.send(f.name), 'header', gbls) + value = _serialize_header(metadata.fetch(:explode, false), value) headers[metadata.fetch(:field_name, f.name)] = value if !value.empty? end headers diff --git a/plexruby.gemspec b/plexruby.gemspec index 2e2263c..72a1f9c 100644 --- a/plexruby.gemspec +++ b/plexruby.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'plexruby' - s.version = '0.0.2' + s.version = '0.0.3' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''