Skip to content

Commit

Permalink
Merge pull request #2 from dubinc/speakeasy-sdk-regen-1717086842
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
devkiran authored May 30, 2024
2 parents 3696373 + a1098b4 commit e4fa824
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 29 deletions.
13 changes: 8 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ id: 5a2dd83e-da98-455b-8ef9-0100a914efdf
management:
docChecksum: 69dc05faa844a9e17f9180677089eb25
docVersion: 0.0.1
speakeasyVersion: 1.272.0
generationVersion: 2.312.1
releaseVersion: 0.0.1
configChecksum: 32333f7ef936e0fd9683e79873e8d15e
speakeasyVersion: 1.299.3
generationVersion: 2.338.7
releaseVersion: 0.0.2
configChecksum: 44ad03d0fe9744395542b8d01423cacb
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
features:
ruby:
core: 3.2.11
core: 3.2.12
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
ruby:
version: 0.0.1
version: 0.0.2
author: Dub
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
19 changes: 12 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
speakeasyVersion: 1.272.0
speakeasyVersion: 1.299.3
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:482980395d6303ebfad22767f38f557fe3f7de25a1feb8041a390f273f07fac9
sourceBlobDigest: sha256:4244ae7b26b184378f573916c8c4db664978ced4ef26e973a6ee5e7eaff6db65
sourceRevisionDigest: sha256:9b6484c1c9903e46da9a8d25779c4024082df7360e6c42d8271471b050bb1cfc
sourceBlobDigest: sha256:5ea9b643e3a56b8375603bbda15eb82e1291c200f09c96dc02eb70c1532d2c97
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:482980395d6303ebfad22767f38f557fe3f7de25a1feb8041a390f273f07fac9
sourceBlobDigest: sha256:4244ae7b26b184378f573916c8c4db664978ced4ef26e973a6ee5e7eaff6db65
outLocation: /Users/kiran/Desktop/dub-ruby
sourceRevisionDigest: sha256:9b6484c1c9903e46da9a8d25779c4024082df7360e6c42d8271471b050bb1cfc
sourceBlobDigest: sha256:5ea9b643e3a56b8375603bbda15eb82e1291c200f09c96dc02eb70c1532d2c97
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
dub:
inputs:
- location: https://api.dub.co
publish:
registry:
location: registry.speakeasyapi.dev/dub/dub/dub
targets:
my-first-target:
target: ruby
source: dub
publish:
rubygems:
token: $rubygems_auth_token
3 changes: 2 additions & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
dub:
inputs:
- location: https://api.dub.co
publish:
registry:
location: registry.speakeasyapi.dev/dub/dub/dub
targets:
my-first-target:
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dub (0.0.1)
dub (0.0.2)
faraday
faraday-multipart
rack
Expand Down Expand Up @@ -92,8 +92,8 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
minitest
dub!
minitest
rubocop
sorbet-runtime
tapioca
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
## SDK Installation

```bash
gem install specific_install
gem specific_install
gem install dub
```
<!-- End SDK Installation [installation] -->

Expand All @@ -47,7 +46,9 @@ s.config_security(
res = s.links.create(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand Down Expand Up @@ -75,7 +76,9 @@ s.config_security(
res = s.links.upsert(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-05-30 16:34:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.299.3 (2.338.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.0.2] .
### Releases
- [Ruby Gems v0.0.2] https://rubygems.org/gems/dub/versions/0.0.2 - .
8 changes: 6 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ s.config_security(
res = s.links.create(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand All @@ -42,7 +44,9 @@ s.config_security(
res = s.links.upsert(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand Down
8 changes: 8 additions & 0 deletions docs/sdks/domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ s.config_security(

req = ::OpenApiSDK::Operations::UpdateDomainRequest.new(
slug: "acme.com",
request_body: ::OpenApiSDK::Operations::UpdateDomainRequestBody.new(
slug: "acme.com",
type: ::OpenApiSDK::Operations::UpdateDomainType::REDIRECT,
target: "https://acme.com/landing",
expired_url: "https://acme.com/expired",
archived: false,
placeholder: "https://dub.co/help/article/what-is-dub",
),
)

res = s.domains.update(req)
Expand Down
19 changes: 16 additions & 3 deletions docs/sdks/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ s.config_security(
res = s.links.create(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand Down Expand Up @@ -253,6 +255,13 @@ s.config_security(

req = ::OpenApiSDK::Operations::UpdateLinkRequest.new(
link_id: "<value>",
request_body: ::OpenApiSDK::Operations::UpdateLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: [
"<value>",
],
),
)

res = s.links.update(req)
Expand Down Expand Up @@ -299,7 +308,9 @@ res = s.links.create_many(workspace_id="<value>", project_slug="<value>", reques
::OpenApiSDK::Operations::RequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
),
])

Expand Down Expand Up @@ -346,7 +357,9 @@ s.config_security(
res = s.links.upsert(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
url: "https://google/com",
external_id: "123456",
tag_ids: "<value>",
tag_ids: [
"<value>",
],
))

if ! res.link_schema.nil?
Expand Down
8 changes: 7 additions & 1 deletion dub.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'dub'
s.version = '0.0.1'
s.version = '0.0.2'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
s.homepage = 'https://github.com/dubinc/dub-ruby.git'
s.description = 'Ruby Client SDK Generated by Speakeasy'
s.authors = ['Dub']
s.metadata = {
'homepage_uri' => 'https://github.com/dubinc/dub-ruby.git',
'documentation_uri' => 'https://github.com/dubinc/dub-ruby.git',
'source_code_uri' => 'https://github.com/dubinc/dub-ruby.git'
}

s.files = Dir['{lib,test}/**/*']
s.require_paths = ['lib']
Expand Down
6 changes: 3 additions & 3 deletions lib/open_api_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def initialize(client, security, server_url, server_idx, globals)
@globals = globals.nil? ? {} : globals
@language = 'ruby'
@openapi_doc_version = '0.0.1'
@sdk_version = '0.0.1'
@gen_version = '2.312.1'
@user_agent = 'speakeasy-sdk/ruby 0.0.1 2.312.1 0.0.1 dub'
@sdk_version = '0.0.2'
@gen_version = '2.338.7'
@user_agent = 'speakeasy-sdk/ruby 0.0.2 2.338.7 0.0.1 dub'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down

0 comments on commit e4fa824

Please sign in to comment.