anthropic 1.16.0 → 1.16.1

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: 869d1baf3032284c138ec2bc77164f5c92fdd3bf79648bbe528f02413812c7bb
4
- data.tar.gz: 78c540f8017f0ec7646dc9017f57659906adc040955ada92c71b6edcb376bffc
3
+ metadata.gz: edcd251a5f61f932cc5a80385a7bca29b541d9b4764b3c153eae0bed0cfe0d0a
4
+ data.tar.gz: addb61cef3603cd07d80bc7386dc0d18efd440b2ffd39c70b6a0f3ee561141de
5
5
  SHA512:
6
- metadata.gz: 1c669e7cad89b2ce0da8ea7db521dfb5e9786824f3f1a74aae28ebff2330b047e1939dbaf5c04a580d5088cb1f831bffd094511db78bd59bf153455007a6612a
7
- data.tar.gz: 82a57e61eb10f9f7f21422583c0de2f442083f8bba72e55cacde57afce694cf3906b5b80e5cf5d1713a7b786bdc63e24de213976f666c76ad1e459a79429e91d
6
+ metadata.gz: 11c6c2753ee93394183093d19165ddc4bab31c10cecf0557be56731e12b4db99473f68013e76af1cb14050bdf503db38bc12ee075783cb731da0e81257121da2
7
+ data.tar.gz: a97a725f84deeb63c1e6481a13680cf6489b624652085501f98634810c242ff7b2fc00a2e404eb93072fceea4d3b5b9821b64255547190a3f0b73721951fb1b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.16.1 (2025-12-16)
4
+
5
+ Full Changelog: [v1.16.0...v1.16.1](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.16.0...v1.16.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * calling `break` out of streams should be instantaneous ([517711f](https://github.com/anthropics/anthropic-sdk-ruby/commit/517711fd1c91fffa83c3bbdba50a0d1b6964adfc))
10
+
3
11
  ## 1.16.0 (2025-11-24)
4
12
 
5
13
  Full Changelog: [v1.15.2...v1.16.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.15.2...v1.16.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.16.0"
18
+ gem "anthropic", "~> 1.16.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -153,17 +153,19 @@ module Anthropic
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 Anthropic
4
- VERSION = "1.16.0"
4
+ VERSION = "1.16.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-24 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