Skip to content

Commit a8af268

Browse files
Merge pull request #148 from openai/release-please--branches--main--changes--next
release: 0.4.1
2 parents 471f541 + 6a76b35 commit a8af268

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.4.0-beta.1"
2+
".": "0.4.1"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.4.1 (2025-05-23)
4+
5+
Full Changelog: [v0.4.0-beta.1...v0.4.1](https://github.com/openai/openai-ruby/compare/v0.4.0-beta.1...v0.4.1)
6+
7+
### Bug Fixes
8+
9+
* prevent rubocop from mangling `===` to `is_a?` check ([c3a61c9](https://github.com/openai/openai-ruby/commit/c3a61c9f83b8cb79b41edadadca1a241de03d10f))
10+
311
## 0.4.0-beta.1 (2025-05-23)
412

513
Full Changelog: [v0.1.0-beta.2...v0.4.0-beta.1](https://github.com/openai/openai-ruby/compare/v0.1.0-beta.2...v0.4.0-beta.1)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
openai (0.4.0.pre.beta.1)
14+
openai (0.4.1)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
1515
<!-- x-release-please-start-version -->
1616

1717
```ruby
18-
gem "openai", "~> 0.4.0.pre.beta.1"
18+
gem "openai", "~> 0.4.1"
1919
```
2020

2121
<!-- x-release-please-end -->

lib/openai/internal/util.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,13 @@ class << self
600600
#
601601
# @return [Object]
602602
def encode_content(headers, body)
603+
# rubocop:disable Style/CaseEquality
604+
# rubocop:disable Layout/LineLength
603605
content_type = headers["content-type"]
604606
case [content_type, body]
605607
in [OpenAI::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
606608
[headers, JSON.generate(body)]
607-
in [OpenAI::Internal::Util::JSONL_CONTENT, Enumerable] unless body.is_a?(OpenAI::Internal::Type::FileInput)
609+
in [OpenAI::Internal::Util::JSONL_CONTENT, Enumerable] unless OpenAI::Internal::Type::FileInput === body
608610
[headers, body.lazy.map { JSON.generate(_1) }]
609611
in [%r{^multipart/form-data}, Hash | OpenAI::Internal::Type::FileInput]
610612
boundary, strio = encode_multipart_streaming(body)
@@ -619,6 +621,8 @@ def encode_content(headers, body)
619621
else
620622
[headers, body]
621623
end
624+
# rubocop:enable Layout/LineLength
625+
# rubocop:enable Style/CaseEquality
622626
end
623627

624628
# @api private

lib/openai/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OpenAI
4-
VERSION = "0.4.0.pre.beta.1"
4+
VERSION = "0.4.1"
55
end

0 commit comments

Comments
 (0)