Skip to content

Commit 586782c

Browse files
release: 0.1.0-alpha.38 (#171)
* fix: calling `break` out of streams should be instantaneous * codegen metadata * release: 0.1.0-alpha.38 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent a847d82 commit 586782c

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
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.1.0-alpha.37"
2+
".": "0.1.0-alpha.38"
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-39e0191e43a9db93c8f35e91d10013f05352a2bedcf7ead6bac437957f6e922e.yml
3-
openapi_spec_hash: 58c2cf578f0736b8c5df957f6a61190b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f81c5824a9002c980fc0d66c4d52e6cbd8baf7678f5e0f2215909357cff6f82c.yml
3+
openapi_spec_hash: 7714062cac3bb5597b8571172775bc92
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.38 (2025-12-17)
4+
5+
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)
6+
7+
### Bug Fixes
8+
9+
* calling `break` out of streams should be instantaneous ([43194ad](https://github.com/Finch-API/finch-api-ruby/commit/43194ad4b198ddb8583b11bde270eb302ab99da3))
10+
311
## 0.1.0-alpha.37 (2025-12-01)
412

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

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.37)
14+
finch-api (0.1.0.pre.alpha.38)
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.37"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.38"
2121
```
2222

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

lib/finch_api/internal/transport/pooled_net_requester.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,19 @@ def execute(request)
153153
end
154154

155155
self.class.calibrate_socket_timeout(conn, deadline)
156-
conn.request(req) do |rsp|
157-
y << [req, rsp]
158-
break if finished
159-
160-
rsp.read_body do |bytes|
161-
y << bytes.force_encoding(Encoding::BINARY)
162-
break if finished
163-
164-
self.class.calibrate_socket_timeout(conn, deadline)
156+
::Kernel.catch(:jump) do
157+
conn.request(req) do |rsp|
158+
y << [req, rsp]
159+
::Kernel.throw(:jump) if finished
160+
161+
rsp.read_body do |bytes|
162+
y << bytes.force_encoding(Encoding::BINARY)
163+
::Kernel.throw(:jump) if finished
164+
165+
self.class.calibrate_socket_timeout(conn, deadline)
166+
end
167+
eof = true
165168
end
166-
eof = true
167169
end
168170
end
169171
ensure

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.37"
4+
VERSION = "0.1.0.pre.alpha.38"
55
end

0 commit comments

Comments
 (0)