anthropic 1.77.0 → 1.77.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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/util.rb +5 -3
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +2 -1
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +3 -1
- data/lib/anthropic/version.rb +1 -1
- data/rbi/anthropic/resources/beta/organization/spend_limits/effective.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a36e6d4cf43841c87db6b39cfa2959270adf66faa7814e0dc16c9dbdf1c95b1d
|
|
4
|
+
data.tar.gz: 52a7b9c3bf5ab9bd6b83b23f6d599ffdadcb0c05ae56166427923ef99c6402a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42304436b6cdf57d554425177629bb09225a15d077ad5c241fd166488753abf44e3742fd8736aaf3c1f8afa45608806aa66244681a10d27d874e4019d58d446c
|
|
7
|
+
data.tar.gz: d9b21cdc5c82960fd53a57800d02d3a06e55d8d7be6b234060e9dd6639274848e9a0b1d2b42ac5225b10ecfaaed3128bb2a39b35357625ed397f8344428e5d49
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.77.1](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.77.0...v1.77.1) (2026-10-08)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **client:** raise before sending a request with an empty path parameter
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Chores
|
|
11
|
+
|
|
12
|
+
* **ci:** check that pull requests update the changelog
|
|
13
|
+
* **docs:** note that listing Claude Console spend limits is in early access
|
|
14
|
+
* **internal:** simplify the check that refuses "." and ".." path parameters
|
|
15
|
+
|
|
3
16
|
## 1.77.0 (2026-10-07)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v1.76.0...v1.77.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.76.0...v1.77.0)
|
data/README.md
CHANGED
|
@@ -308,10 +308,12 @@ module Anthropic
|
|
|
308
308
|
in [String => p, *interpolations]
|
|
309
309
|
encoded = interpolations.map { encode_path(_1) }
|
|
310
310
|
interpolated = format(p, *encoded)
|
|
311
|
-
|
|
312
|
-
dot_segment = path_part.split("/").find { _1.match?(/\A(?:\.|%2e){1,2}\z/i) }
|
|
311
|
+
dot_segment = encoded.find { _1 == "." || _1 == ".." }
|
|
313
312
|
if dot_segment
|
|
314
|
-
raise ArgumentError.new("The request was not sent: path #{
|
|
313
|
+
raise ArgumentError.new("The request was not sent: path #{interpolated.inspect} has the dot segment #{dot_segment.inspect}, which would send it to a different URL")
|
|
314
|
+
end
|
|
315
|
+
if encoded.include?("")
|
|
316
|
+
raise ArgumentError.new("The request was not sent: path #{interpolated.inspect} has an empty path parameter, which would send it to a different URL")
|
|
315
317
|
end
|
|
316
318
|
interpolated
|
|
317
319
|
end
|
|
@@ -10,7 +10,8 @@ module Anthropic
|
|
|
10
10
|
#
|
|
11
11
|
# Returns one row per (member, period) the member resolves a spend limit for, with
|
|
12
12
|
# the `source` scope the spend limit was inherited from. Paginates by member, so a
|
|
13
|
-
# member's periods never split across pages.
|
|
13
|
+
# member's periods never split across pages. Listing Claude Console limits is in
|
|
14
|
+
# an early access preview. To request access, contact your Anthropic account team.
|
|
14
15
|
#
|
|
15
16
|
# Some parameter documentations has been truncated, see
|
|
16
17
|
# {Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams} for
|
|
@@ -36,7 +36,9 @@ module Anthropic
|
|
|
36
36
|
# A Claude Console organization's limits come in an order that is stable across
|
|
37
37
|
# pages. A Claude Enterprise organization's are grouped by scope type, in the
|
|
38
38
|
# order `organization`, `seat_tier`, `rbac_group`, `organization_service`, `user`;
|
|
39
|
-
# within a type they come in a fixed order that is not creation order.
|
|
39
|
+
# within a type they come in a fixed order that is not creation order. Listing
|
|
40
|
+
# Claude Console limits is in an early access preview. To request access, contact
|
|
41
|
+
# your Anthropic account team.
|
|
40
42
|
#
|
|
41
43
|
# Some parameter documentations has been truncated, see
|
|
42
44
|
# {Anthropic::Models::Beta::Organization::SpendLimitListParams} for more details.
|
data/lib/anthropic/version.rb
CHANGED
|
@@ -10,7 +10,8 @@ module Anthropic
|
|
|
10
10
|
#
|
|
11
11
|
# Returns one row per (member, period) the member resolves a spend limit for, with
|
|
12
12
|
# the `source` scope the spend limit was inherited from. Paginates by member, so a
|
|
13
|
-
# member's periods never split across pages.
|
|
13
|
+
# member's periods never split across pages. Listing Claude Console limits is in
|
|
14
|
+
# an early access preview. To request access, contact your Anthropic account team.
|
|
14
15
|
sig do
|
|
15
16
|
params(
|
|
16
17
|
limit: Integer,
|
|
@@ -38,7 +38,9 @@ module Anthropic
|
|
|
38
38
|
# A Claude Console organization's limits come in an order that is stable across
|
|
39
39
|
# pages. A Claude Enterprise organization's are grouped by scope type, in the
|
|
40
40
|
# order `organization`, `seat_tier`, `rbac_group`, `organization_service`, `user`;
|
|
41
|
-
# within a type they come in a fixed order that is not creation order.
|
|
41
|
+
# within a type they come in a fixed order that is not creation order. Listing
|
|
42
|
+
# Claude Console limits is in an early access preview. To request access, contact
|
|
43
|
+
# your Anthropic account team.
|
|
42
44
|
sig do
|
|
43
45
|
params(
|
|
44
46
|
limit: Integer,
|
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.77.
|
|
4
|
+
version: 1.77.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anthropic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|