Skip to content

Commit 0d8300b

Browse files
authored
Merge branch 'next' into fix_warnings
2 parents 8a0bf70 + 41ce053 commit 0d8300b

File tree

858 files changed

+29523
-8946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

858 files changed

+29523
-8946
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,42 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
13+
timeout-minutes: 10
1314
name: lint
14-
runs-on: ubuntu-latest
15+
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
16+
1517
steps:
1618
- uses: actions/checkout@v4
1719
- name: Set up Ruby
1820
uses: ruby/setup-ruby@v1
1921
with:
2022
bundler-cache: false
21-
ruby-version: '3.1'
23+
ruby-version: '3.2'
2224
- run: |-
2325
bundle install
2426
2527
- name: Run lints
2628
run: ./scripts/lint
2729
test:
30+
timeout-minutes: 10
2831
name: test
29-
runs-on: ubuntu-latest
32+
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3033
steps:
3134
- uses: actions/checkout@v4
3235
- name: Set up Ruby
3336
uses: ruby/setup-ruby@v1
3437
with:
3538
bundler-cache: false
36-
ruby-version: '3.1'
39+
ruby-version: '3.2'
3740
- run: |-
3841
bundle install
3942

.github/workflows/create-releases.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ jobs:
2525
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
2626

2727
- name: Set up Ruby
28-
if: ${{ steps.release.outputs.releases_created }}
28+
if: ${{ steps.release.outputs.releases_created }}
2929
uses: ruby/setup-ruby@v1
3030
with:
3131
bundler-cache: false
32-
ruby-version: '3.1'
33-
- run: |-
32+
ruby-version: '3.2'
33+
34+
- run: |
3435
bundle install
3536
3637
- name: Publish to RubyGems.org
37-
if: ${{ steps.release.outputs.releases_created }}
38+
if: ${{ steps.release.outputs.releases_created }}
3839
run: |
3940
bash ./bin/publish-gem
4041
env:

.github/workflows/publish-gem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: ruby/setup-ruby@v1
1616
with:
1717
bundler-cache: false
18-
ruby-version: '3.1'
18+
ruby-version: '3.2'
1919
- run: |-
2020
bundle install
2121

.rubocop.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AllCops:
88
- "bin/*"
99
NewCops: enable
1010
SuggestExtensions: false
11-
TargetRubyVersion: 3.1.0
11+
TargetRubyVersion: 3.2
1212

1313
# Whether MFA is required or not should be left to the token configuration.
1414
Gemspec/RequireMFA:
@@ -64,11 +64,19 @@ Layout/MultilineMethodParameterLineBreaks:
6464
Layout/SpaceInsideHashLiteralBraces:
6565
EnforcedStyle: no_space
6666

67+
Lint/BooleanSymbol:
68+
Enabled: false
69+
6770
# This option occasionally mangles identifier names
6871
Lint/DeprecatedConstants:
6972
Exclude:
7073
- "**/*.rbi"
7174

75+
# We use pattern assertion in tests to ensure correctness.
76+
Lint/DuplicateMatchPattern:
77+
Exclude:
78+
- "test/**/*"
79+
7280
# Fairly useful in tests for pattern assertions.
7381
Lint/EmptyInPattern:
7482
Exclude:
@@ -119,6 +127,9 @@ Metrics/ParameterLists:
119127
Metrics/PerceivedComplexity:
120128
Enabled: false
121129

130+
Naming/AccessorMethodName:
131+
Enabled: false
132+
122133
# Need to preserve block identifier for documentation.
123134
Naming/BlockForwarding:
124135
Enabled: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0
1+
3.2

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 95
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5633633cc38734869cf7d993f7b549bb8e4d10e0ec45381ec2cd91507cd8eb8f.yml
3-
openapi_spec_hash: c855121b2b2324b99499c9244c21d24d
4-
config_hash: d20837393b73efdb19cd08e04c1cc9a1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-8b68ae6b807dca92e914da1dd9e835a20f69b075e79102a264367fd7fddddb33.yml
3+
openapi_spec_hash: b6ade5b1a6327339e6669e1134de2d03
4+
config_hash: b597cd9a31e9e5ec709e2eefb4c54122

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
--type-name-tag generic:Generic
2+
--default-return void
23
--markup markdown
34
--markup-provider redcarpet
45
--exclude /rbi

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This will install all the required dependencies.
1414

1515
## Modifying/Adding code
1616

17-
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents `examples/` directory.
17+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents of `lib/openai/helpers/` and `examples/` directory.
1818

1919
## Adding and running examples
2020

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ group :development, :test do
2323
gem "minitest-hooks"
2424
gem "minitest-proveit"
2525
gem "minitest-rg"
26+
gem "webmock"
2627
end
2728

2829
group :development, :docs do

Gemfile.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ GEM
2929
minitest (>= 5.1)
3030
securerandom (>= 0.3)
3131
tzinfo (~> 2.0, >= 2.0.5)
32+
addressable (2.8.7)
33+
public_suffix (>= 2.0.2, < 7.0)
3234
ast (2.4.3)
3335
async (2.23.1)
3436
console (~> 1.29)
@@ -45,6 +47,9 @@ GEM
4547
fiber-annotation
4648
fiber-local (~> 1.1)
4749
json
50+
crack (1.0.0)
51+
bigdecimal
52+
rexml
4853
csv (3.3.3)
4954
drb (2.2.1)
5055
erubi (1.13.1)
@@ -54,6 +59,7 @@ GEM
5459
fiber-storage
5560
fiber-storage (1.0.0)
5661
fileutils (1.7.3)
62+
hashdiff (1.1.2)
5763
i18n (1.14.7)
5864
concurrent-ruby (~> 1.0)
5965
io-event (1.10.0)
@@ -82,6 +88,7 @@ GEM
8288
racc
8389
prettier_print (1.2.1)
8490
prism (1.4.0)
91+
public_suffix (6.0.1)
8592
racc (1.8.1)
8693
rainbow (3.1.1)
8794
rake (13.2.1)
@@ -96,6 +103,7 @@ GEM
96103
logger
97104
redcarpet (3.6.1)
98105
regexp_parser (2.10.0)
106+
rexml (3.4.1)
99107
rubocop (1.75.1)
100108
json (~> 2.3)
101109
language_server-protocol (~> 3.17.0.2)
@@ -165,6 +173,10 @@ GEM
165173
unicode-emoji (~> 4.0, >= 4.0.4)
166174
unicode-emoji (4.0.4)
167175
uri (1.0.3)
176+
webmock (3.25.1)
177+
addressable (>= 2.8.0)
178+
crack (>= 0.3.2)
179+
hashdiff (>= 0.4.0, < 2.0.0)
168180
webrick (1.9.1)
169181
yard (0.9.37)
170182
yard-sorbet (0.9.0)
@@ -191,6 +203,7 @@ DEPENDENCIES
191203
syntax_tree
192204
syntax_tree-rbs!
193205
tapioca
206+
webmock
194207
webrick
195208
yard
196209

0 commit comments

Comments
 (0)