Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.176.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Feb 9, 2024
1 parent e5c2556 commit 2a4748e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ management:
docChecksum: 5e4ef027bc51f54368e8b1607b77c098
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.250.16
releaseVersion: 0.7.0
configChecksum: dd4e1b6bb71c93323bdeb2137c87b142
generationVersion: 2.250.22
releaseVersion: 0.7.1
configChecksum: deece69094aab1c0b348c52af0905bb3
repoURL: https://github.com/ding-live/ding-ruby.git
repoSubDirectory: .
installationURL: https://github.com/ding-live/ding-ruby
published: true
features:
ruby:
core: 3.2.5
core: 3.2.6
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.81.3
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,14 @@ Based on:
### Generated
- [ruby v0.7.0] .
### Releases
- [Ruby Gems v0.7.0] https://rubygems.org/gems/ding_sdk/versions/0.7.0 - .
- [Ruby Gems v0.7.0] https://rubygems.org/gems/ding_sdk/versions/0.7.0 - .

## 2024-02-09 00:14:03
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.176.0 (2.250.22) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.7.1] .
### Releases
- [Ruby Gems v0.7.1] https://rubygems.org/gems/ding_sdk/versions/0.7.1 - .
2 changes: 1 addition & 1 deletion ding_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'ding_sdk'
s.version = '0.7.0'
s.version = '0.7.1'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ generation:
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
ruby:
version: 0.7.0
version: 0.7.1
author: Ding
description: Ding Ruby SDK
imports:
Expand Down
6 changes: 3 additions & 3 deletions lib/ding_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx)
@server = ''
@language = 'ruby'
@openapi_doc_version = '1.0.0'
@sdk_version = '0.7.0'
@gen_version = '2.250.16'
@user_agent = 'speakeasy-sdk/ruby 0.7.0 2.250.16 1.0.0 ding_sdk'
@sdk_version = '0.7.1'
@gen_version = '2.250.22'
@user_agent = 'speakeasy-sdk/ruby 0.7.1 2.250.22 1.0.0 ding_sdk'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down
4 changes: 3 additions & 1 deletion lib/ding_sdk/utils/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ def self._parse_basic_auth_scheme(req, scheme)
end

data = "#{username}:#{password}".encode
req.headers['Authorization'] = "Basic #{Base64.encode64(data)}"
# Use strict_encode, because encode adds newlines after 60 chars
# https://docs.ruby-lang.org/en/3.0/Base64.html#method-i-encode64
req.headers['Authorization'] = "Basic #{Base64.strict_encode64(data)}"
end

sig { params(optional: T::Boolean).returns(T.proc.params(s: String).returns(DateTime)) }
Expand Down

0 comments on commit 2a4748e

Please sign in to comment.