finch-api 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c373b41d8ec9162cf4f4a50d8ffb8cbdb2739e81bf4e6d18f3cd50465002d363
4
- data.tar.gz: b06a4865378ccf104f73235380afac0ac5c2e16bc2126c2bd1d256d7519f4e4d
3
+ metadata.gz: f7942ffe719a090b4a2fb8e20d630867884347d27fe082843437cd5a0fdc5bca
4
+ data.tar.gz: d6a40818fe1ec2988b6d678cb7f018354d247b6c1bbeb1b72484e6f84a07a9d5
5
5
  SHA512:
6
- metadata.gz: 643c7e5f63688fefcf77457038d98fcae7ed1131059107b097cba2c47ceed4ed29be2362888c6f38c020effe071b19645816a4d7303a64b13d919e1cbf9f7817
7
- data.tar.gz: e0ef99cd6d99d60507ae5b270e61b7c1bc0229b8950789f9aaa0d6b4d90f2b81c9b02cff0867bfe28adf3490bedc4bbac6e777bd27a40a4f134acc2a48fd0f0b
6
+ metadata.gz: 4a88c1b88292736a6965f4daa6ac94fe37d7dfaad861e38d6e88c7ed06443e11ab7a4b81b93752d57c0750138a6ad5e9762b105cd77523405b78a9093e395a2e
7
+ data.tar.gz: 5b5005cabfae5ecf3763423ec74ac35273b27c6f66ee5f0a26fde9e1c7a7429ff6104fb3fa83461f799377f0a0206faad4d79c054879047408f8aaadfc277bca
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
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
+
3
11
  ## 0.1.0-alpha.37 (2025-12-01)
4
12
 
5
13
  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)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "finch-api", "~> 0.1.0.pre.alpha.37"
20
+ gem "finch-api", "~> 0.1.0.pre.alpha.38"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -153,17 +153,19 @@ module FinchAPI
153
153
  end
154
154
 
155
155
  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
165
168
  end
166
- eof = true
167
169
  end
168
170
  end
169
171
  ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.37"
4
+ VERSION = "0.1.0.pre.alpha.38"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.37
4
+ version: 0.1.0.pre.alpha.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-02 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool