diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a3756b2..b7fd5d0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: 50940bc805a726aadeb489d51cfdbb1d + docChecksum: 06fc65e3769b8cd8a007fecfef012439 docVersion: 0.0.1 - speakeasyVersion: 1.441.0 - generationVersion: 2.460.1 - releaseVersion: 0.2.2-alpha.37 - configChecksum: af0ff621e1be34aeaaebf50054e56a5b + speakeasyVersion: 1.441.1 + generationVersion: 2.461.2 + releaseVersion: 0.2.2-alpha.38 + configChecksum: 4519b5fdc2d1a24ef2bd77f05a9582e5 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 867fef9..be277e4 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.37 + version: 0.2.2-alpha.38 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8087938..456dc9a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.441.0 +speakeasyVersion: 1.441.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:74b3af15b5d971ea3ac81bf0725c01f7456e4f50581844f990699af514cbc6eb - sourceBlobDigest: sha256:69468c1c50b82f6168a9d4d951b070a84d02f280d4524fabec26bcf2ab2d508f + sourceRevisionDigest: sha256:b5d82b5d85e3f710589f4dc334cc40e8a33c195986a3618a0769313611284957 + sourceBlobDigest: sha256:fc224031565db7f73fb04e29b6a07dbcc4a4d0922e068e90083f640ddf3c149e tags: - latest - - speakeasy-sdk-regen-1732062447 + - speakeasy-sdk-regen-1732148856 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:74b3af15b5d971ea3ac81bf0725c01f7456e4f50581844f990699af514cbc6eb - sourceBlobDigest: sha256:69468c1c50b82f6168a9d4d951b070a84d02f280d4524fabec26bcf2ab2d508f + sourceRevisionDigest: sha256:b5d82b5d85e3f710589f4dc334cc40e8a33c195986a3618a0769313611284957 + sourceBlobDigest: sha256:fc224031565db7f73fb04e29b6a07dbcc4a4d0922e068e90083f640ddf3c149e codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:7b3bfd15c8a127442d49af515e74a3c41bf6a9d4e92743d1da61171495f26ec9 + codeSamplesRevisionDigest: sha256:41252bf093d585a563484ac39ce8aca3b0aedf244d0ad6d8ef0e72a21ce5d780 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 89858f8..f174a10 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.37) + dub (0.2.2.pre.alpha.38) faraday faraday-multipart rack diff --git a/RELEASES.md b/RELEASES.md index 51a3420..1b564d7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -518,4 +518,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.37] . ### Releases -- [Ruby Gems v0.2.2-alpha.37] https://rubygems.org/gems/dub/versions/0.2.2-alpha.37 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.37] https://rubygems.org/gems/dub/versions/0.2.2-alpha.37 - . + +## 2024-11-21 00:27:32 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.441.1 (2.461.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.38] . +### Releases +- [Ruby Gems v0.2.2-alpha.38] https://rubygems.org/gems/dub/versions/0.2.2-alpha.38 - . \ No newline at end of file diff --git a/docs/models/operations/getqrcoderequest.md b/docs/models/operations/getqrcoderequest.md index f9efd99..0f575a5 100644 --- a/docs/models/operations/getqrcoderequest.md +++ b/docs/models/operations/getqrcoderequest.md @@ -3,13 +3,14 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `url` | *::String* | :heavy_check_mark: | The URL to generate a QR code for. | -| `logo` | *T.nilable(::String)* | :heavy_minus_sign: | The logo to include in the QR code. Can only be used with a paid plan on Dub.co. | -| `size` | *T.nilable(::Float)* | :heavy_minus_sign: | The size of the QR code in pixels. Defaults to `600` if not provided. | -| `level` | [T.nilable(::OpenApiSDK::Operations::Level)](../../models/operations/level.md) | :heavy_minus_sign: | The level of error correction to use for the QR code. Defaults to `L` if not provided. | -| `fg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The foreground color of the QR code in hex format. Defaults to `#000000` if not provided. | -| `bg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The background color of the QR code in hex format. Defaults to `#ffffff` if not provided. | -| `hide_logo` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co. | -| `include_margin` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include a margin around the QR code. Defaults to `false` if not provided. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `url` | *::String* | :heavy_check_mark: | The URL to generate a QR code for. | +| `logo` | *T.nilable(::String)* | :heavy_minus_sign: | The logo to include in the QR code. Can only be used with a paid plan on Dub.co. | +| `size` | *T.nilable(::Float)* | :heavy_minus_sign: | The size of the QR code in pixels. Defaults to `600` if not provided. | +| `level` | [T.nilable(::OpenApiSDK::Operations::Level)](../../models/operations/level.md) | :heavy_minus_sign: | The level of error correction to use for the QR code. Defaults to `L` if not provided. | +| `fg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The foreground color of the QR code in hex format. Defaults to `#000000` if not provided. | +| `bg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The background color of the QR code in hex format. Defaults to `#ffffff` if not provided. | +| `hide_logo` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co. | +| `margin` | *T.nilable(::Float)* | :heavy_minus_sign: | The size of the margin around the QR code. Defaults to 2 if not provided. | +| `include_margin` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | DEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size. | \ No newline at end of file diff --git a/dub.gemspec b/dub.gemspec index 7d35852..cbb7cfb 100644 --- a/dub.gemspec +++ b/dub.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'dub' - s.version = '0.2.2-alpha.37' + s.version = '0.2.2-alpha.38' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations/getqrcode_request.rb b/lib/open_api_sdk/models/operations/getqrcode_request.rb index edf704d..7f4f190 100644 --- a/lib/open_api_sdk/models/operations/getqrcode_request.rb +++ b/lib/open_api_sdk/models/operations/getqrcode_request.rb @@ -19,18 +19,20 @@ class GetQRCodeRequest < ::OpenApiSDK::Utils::FieldAugmented field :fg_color, T.nilable(::String), { 'query_param': { 'field_name': 'fgColor', 'style': 'form', 'explode': true } } # Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co. field :hide_logo, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'hideLogo', 'style': 'form', 'explode': true } } - # Whether to include a margin around the QR code. Defaults to `false` if not provided. + # DEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size. field :include_margin, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeMargin', 'style': 'form', 'explode': true } } # The level of error correction to use for the QR code. Defaults to `L` if not provided. field :level, T.nilable(::OpenApiSDK::Operations::Level), { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } } # The logo to include in the QR code. Can only be used with a paid plan on Dub.co. field :logo, T.nilable(::String), { 'query_param': { 'field_name': 'logo', 'style': 'form', 'explode': true } } + # The size of the margin around the QR code. Defaults to 2 if not provided. + field :margin, T.nilable(::Float), { 'query_param': { 'field_name': 'margin', 'style': 'form', 'explode': true } } # The size of the QR code in pixels. Defaults to `600` if not provided. field :size, T.nilable(::Float), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } } - sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), hide_logo: T.nilable(T::Boolean), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), logo: T.nilable(::String), size: T.nilable(::Float)).void } - def initialize(url: nil, bg_color: nil, fg_color: nil, hide_logo: nil, include_margin: nil, level: nil, logo: nil, size: nil) + sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), hide_logo: T.nilable(T::Boolean), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), logo: T.nilable(::String), margin: T.nilable(::Float), size: T.nilable(::Float)).void } + def initialize(url: nil, bg_color: nil, fg_color: nil, hide_logo: nil, include_margin: nil, level: nil, logo: nil, margin: nil, size: nil) @url = url @bg_color = bg_color @fg_color = fg_color @@ -38,6 +40,7 @@ def initialize(url: nil, bg_color: nil, fg_color: nil, hide_logo: nil, include_m @include_margin = include_margin @level = level @logo = logo + @margin = margin @size = size end end diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 5236d03..fb61f07 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '0.0.1' - @sdk_version = '0.2.2-alpha.37' - @gen_version = '2.460.1' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.37 2.460.1 0.0.1 dub' + @sdk_version = '0.2.2-alpha.38' + @gen_version = '2.461.2' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.38 2.461.2 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) }