Skip to content

Commit c248f15

Browse files
chore: remove Gemfile.lock during bootstrap
1 parent 3be700f commit c248f15

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
bundler-cache: false
23-
ruby-version: '3.2'
2423
- run: |-
2524
bundle install
2625
@@ -36,7 +35,6 @@ jobs:
3635
uses: ruby/setup-ruby@v1
3736
with:
3837
bundler-cache: false
39-
ruby-version: '3.2'
4038
- run: |-
4139
bundle install
4240

.github/workflows/publish-gem.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
uses: ruby/setup-ruby@v1
1616
with:
1717
bundler-cache: false
18-
ruby-version: '3.2'
1918
- run: |-
2019
bundle install
2120

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
bin/tapioca
88
Brewfile.lock.json
99
doc/
10+
Gemfile.lock
1011
sorbet/tapioca/*

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2
1+
3.2.0

Gemfile.lock

+24-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/stainless-api/syntax_tree-rbs.git
3-
revision: 140eb3ba2ff4b959b345ac2a7927cd758a9f1284
3+
revision: c30b50219918be7cfe3ef803a00b59d1e77fcada
44
branch: main
55
specs:
66
syntax_tree-rbs (1.0.0)
@@ -17,7 +17,7 @@ PATH
1717
GEM
1818
remote: https://rubygems.org/
1919
specs:
20-
activesupport (7.2.2.1)
20+
activesupport (8.0.2)
2121
base64
2222
benchmark (>= 0.3)
2323
bigdecimal
@@ -29,6 +29,7 @@ GEM
2929
minitest (>= 5.1)
3030
securerandom (>= 0.3)
3131
tzinfo (~> 2.0, >= 2.0.5)
32+
uri (>= 0.13.1)
3233
addressable (2.8.7)
3334
public_suffix (>= 2.0.2, < 7.0)
3435
ast (2.4.3)
@@ -42,28 +43,28 @@ GEM
4243
benchmark (0.4.0)
4344
bigdecimal (3.1.9)
4445
concurrent-ruby (1.3.5)
45-
connection_pool (2.5.0)
46+
connection_pool (2.5.3)
4647
console (1.30.2)
4748
fiber-annotation
4849
fiber-local (~> 1.1)
4950
json
5051
crack (1.0.0)
5152
bigdecimal
5253
rexml
53-
csv (3.3.3)
54+
csv (3.3.4)
5455
drb (2.2.1)
5556
erubi (1.13.1)
56-
ffi (1.17.1)
57+
ffi (1.17.2-x86_64-linux-gnu)
5758
fiber-annotation (0.2.0)
5859
fiber-local (1.1.0)
5960
fiber-storage
60-
fiber-storage (1.0.0)
61+
fiber-storage (1.0.1)
6162
fileutils (1.7.3)
6263
hashdiff (1.1.2)
6364
i18n (1.14.7)
6465
concurrent-ruby (~> 1.0)
6566
io-event (1.10.0)
66-
json (2.10.2)
67+
json (2.11.3)
6768
language_server-protocol (3.17.0.4)
6869
lint_roller (1.1.0)
6970
listen (3.9.0)
@@ -82,20 +83,20 @@ GEM
8283
minitest (~> 5.0)
8384
mutex_m (0.3.0)
8485
netrc (0.11.0)
85-
parallel (1.26.3)
86-
parser (3.3.7.4)
86+
parallel (1.27.0)
87+
parser (3.3.8.0)
8788
ast (~> 2.4.1)
8889
racc
8990
prettier_print (1.2.1)
9091
prism (1.4.0)
91-
public_suffix (6.0.1)
92+
public_suffix (6.0.2)
9293
racc (1.8.1)
9394
rainbow (3.1.1)
9495
rake (13.2.1)
9596
rb-fsevent (0.11.2)
9697
rb-inotify (0.11.1)
9798
ffi (~> 1.0)
98-
rbi (0.3.1)
99+
rbi (0.3.2)
99100
prism (~> 1.0)
100101
rbs (>= 3.4.4)
101102
sorbet-runtime (>= 0.5.9204)
@@ -104,29 +105,29 @@ GEM
104105
redcarpet (3.6.1)
105106
regexp_parser (2.10.0)
106107
rexml (3.4.1)
107-
rubocop (1.75.1)
108+
rubocop (1.75.4)
108109
json (~> 2.3)
109110
language_server-protocol (~> 3.17.0.2)
110111
lint_roller (~> 1.1.0)
111112
parallel (~> 1.10)
112113
parser (>= 3.3.0.2)
113114
rainbow (>= 2.2.2, < 4.0)
114115
regexp_parser (>= 2.9.3, < 3.0)
115-
rubocop-ast (>= 1.43.0, < 2.0)
116+
rubocop-ast (>= 1.44.0, < 2.0)
116117
ruby-progressbar (~> 1.7)
117118
unicode-display_width (>= 2.4.0, < 4.0)
118-
rubocop-ast (1.43.0)
119+
rubocop-ast (1.44.1)
119120
parser (>= 3.3.7.2)
120121
prism (~> 1.4)
121122
ruby-progressbar (1.13.0)
122123
securerandom (0.4.1)
123-
sorbet (0.5.11966)
124-
sorbet-static (= 0.5.11966)
125-
sorbet-runtime (0.5.11966)
126-
sorbet-static (0.5.11966-x86_64-linux)
127-
sorbet-static-and-runtime (0.5.11966)
128-
sorbet (= 0.5.11966)
129-
sorbet-runtime (= 0.5.11966)
124+
sorbet (0.5.12048)
125+
sorbet-static (= 0.5.12048)
126+
sorbet-runtime (0.5.12048)
127+
sorbet-static (0.5.12048-x86_64-linux)
128+
sorbet-static-and-runtime (0.5.12048)
129+
sorbet (= 0.5.12048)
130+
sorbet-runtime (= 0.5.12048)
130131
spoom (1.6.1)
131132
erubi (>= 1.10.0)
132133
prism (>= 0.28.0)
@@ -150,7 +151,7 @@ GEM
150151
strscan (>= 1.0.0)
151152
terminal-table (>= 2, < 5)
152153
uri (>= 0.12.0)
153-
strscan (3.1.2)
154+
strscan (3.1.4)
154155
syntax_tree (6.2.0)
155156
prettier_print (>= 1.2.0)
156157
tapioca (0.16.11)
@@ -208,4 +209,4 @@ DEPENDENCIES
208209
yard
209210

210211
BUNDLED WITH
211-
2.3.3
212+
2.4.1

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenAI Ruby API library
22

3-
The OpenAI Ruby library provides convenient access to the OpenAI REST API from any Ruby 3.2+ application.
3+
The OpenAI Ruby library provides convenient access to the OpenAI REST API from any Ruby 3.2.0+ application.
44

55
## Documentation
66

@@ -271,7 +271,7 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ
271271

272272
## Requirements
273273

274-
Ruby 3.2 or higher.
274+
Ruby 3.2.0 or higher.
275275

276276
## Contributing
277277

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require "rubocop/rake_task"
1111
tapioca = "sorbet/tapioca"
1212
ignore_file = ".ignore"
1313

14-
CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/ doc/], *FileList["*.gem"], ignore_file)
14+
CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/ doc/ Gemfile.lock], *FileList["*.gem"], ignore_file)
1515

1616
CLOBBER.push(*%w[sorbet/rbi/annotations/ sorbet/rbi/gems/], tapioca)
1717

lib/openai/internal/transport/base_client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def initialize(
261261
headers["x-stainless-retry-count"] = "0"
262262
end
263263

264-
timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..))
264+
timeout = opts.fetch(:timeout, @timeout).to_f.clamp(0..)
265265
unless headers.key?("x-stainless-timeout") || timeout.zero?
266266
headers["x-stainless-timeout"] = timeout.to_s
267267
end

openai.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
s.metadata["homepage_uri"] = s.homepage
1313
s.metadata["source_code_uri"] = "https://github.com/openai/openai-ruby"
1414
s.metadata["rubygems_mfa_required"] = false.to_s
15-
s.required_ruby_version = ">= 3.2"
15+
s.required_ruby_version = ">= 3.2.0"
1616

1717
s.files = Dir[
1818
"lib/**/*.rb",

rbi/openai/errors.rbi

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ module OpenAI
164164
end
165165

166166
class InternalServerError < OpenAI::Errors::APIStatusError
167-
HTTP_STATUS = T.let((500..), T::Range[Integer])
167+
HTTP_STATUS = T.let(500.., T::Range[Integer])
168168
end
169169
end
170170
end

scripts/bootstrap

+1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ fi
1313

1414
echo "==> Installing Ruby dependencies…"
1515

16+
rm -fr -v -- Gemfile.lock
1617
exec -- bundle install "$@"

0 commit comments

Comments
 (0)