Skip to content

Commit eac5ecf

Browse files
release: 0.1.0-alpha.39 (#172)
* codegen metadata * fix: issue where json.parse errors when receiving HTTP 204 with nobody * codegen metadata * codegen metadata * release: 0.1.0-alpha.39 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 586782c commit eac5ecf

7 files changed

Lines changed: 21 additions & 8 deletions

File tree

.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.1.0-alpha.38"
2+
".": "0.1.0-alpha.39"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f81c5824a9002c980fc0d66c4d52e6cbd8baf7678f5e0f2215909357cff6f82c.yml
3-
openapi_spec_hash: 7714062cac3bb5597b8571172775bc92
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-d5c3e3934333478f55af69889eafaea9b0eeae82a1597c5dec34426e9d55efd5.yml
3+
openapi_spec_hash: 9ec42fee7f3124b3050846f74404b398
44
config_hash: 0892e2e0eeb0343a022afa62e9080dd1

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.1.0-alpha.39 (2025-12-19)
4+
5+
Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.38...v0.1.0-alpha.39)
6+
7+
### Bug Fixes
8+
9+
* issue where json.parse errors when receiving HTTP 204 with nobody ([129433c](https://github.com/Finch-API/finch-api-ruby/commit/129433cc4ce1ab1f1e3b3c169cf804742f07e95d))
10+
311
## 0.1.0-alpha.38 (2025-12-17)
412

513
Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.37...v0.1.0-alpha.38)

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-
finch-api (0.1.0.pre.alpha.38)
14+
finch-api (0.1.0.pre.alpha.39)
1515
connection_pool
1616

1717
GEM

README.md

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

1919
```ruby
20-
gem "finch-api", "~> 0.1.0.pre.alpha.38"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.39"
2121
```
2222

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

lib/finch_api/internal/util.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ def force_charset!(content_type, text:)
657657
def decode_content(headers, stream:, suppress_error: false)
658658
case (content_type = headers["content-type"])
659659
in FinchAPI::Internal::Util::JSON_CONTENT
660-
json = stream.to_a.join
660+
return nil if (json = stream.to_a.join).empty?
661+
661662
begin
662663
JSON.parse(json, symbolize_names: true)
663664
rescue JSON::ParserError => e
@@ -667,7 +668,11 @@ def decode_content(headers, stream:, suppress_error: false)
667668
in FinchAPI::Internal::Util::JSONL_CONTENT
668669
lines = decode_lines(stream)
669670
chain_fused(lines) do |y|
670-
lines.each { y << JSON.parse(_1, symbolize_names: true) }
671+
lines.each do
672+
next if _1.empty?
673+
674+
y << JSON.parse(_1, symbolize_names: true)
675+
end
671676
end
672677
in %r{^text/event-stream}
673678
lines = decode_lines(stream)

lib/finch_api/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 FinchAPI
4-
VERSION = "0.1.0.pre.alpha.38"
4+
VERSION = "0.1.0.pre.alpha.39"
55
end

0 commit comments

Comments
 (0)