Skip to content

Commit 3be700f

Browse files
chore: migrate away from deprecated JSON#fast_generate
1 parent a6c7609 commit 3be700f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ multitask(:test) do
3131
.map { "require_relative(#{_1.dump});" }
3232
.join
3333

34-
ruby(*%w[-e], rb, verbose: false) { fail unless _1 }
34+
ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 }
3535
end
3636

3737
rubo_find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0]

lib/openai/internal/util.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ class << self
493493
y << val.to_s
494494
else
495495
y << "Content-Type: application/json\r\n\r\n"
496-
y << JSON.fast_generate(val)
496+
y << JSON.generate(val)
497497
end
498498
y << "\r\n"
499499
end

0 commit comments

Comments
 (0)