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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d563431918cbe7e172924f9ccc975567b7146f2ab23ba405fb7321927098f9b5
4
- data.tar.gz: bc9a576abd86eed70fbc57ae9aa7d2e21d254d1f69049ac96d3053be460edabc
3
+ metadata.gz: a36e6d4cf43841c87db6b39cfa2959270adf66faa7814e0dc16c9dbdf1c95b1d
4
+ data.tar.gz: 52a7b9c3bf5ab9bd6b83b23f6d599ffdadcb0c05ae56166427923ef99c6402a3
5
5
  SHA512:
6
- metadata.gz: e5b753e9b16bfad3483a3311a6ac4f98056d17201a6a7078fe3a1161967cceeb08269f65019cfd1d2090dbf4f087f28c5c8ebdc7424e9bd102c858e160be5d7c
7
- data.tar.gz: 35a1dd848d2528f4f51322606fc564df10cc18e98a56889c927baf666fcb8ad1ba849805e17b31515126c32d2abf9f55e1431a0e041f6fe07fea0ce2dda7e18d
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
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.77.0"
18
+ gem "anthropic", "~> 1.77.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -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
- path_part = interpolated.partition(/[?#]/).first
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 #{path_part.inspect} has the dot segment #{dot_segment.inspect}, which would send it to a different URL")
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.77.0"
4
+ VERSION = "1.77.1"
5
5
  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
  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.0
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-07 00:00:00.000000000 Z
11
+ date: 2026-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64