cadenya 0.36.0 → 0.37.0

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: 672a153ffa6ff7cc71d6a5e88a80f604f9c34a88b44a0f37618e6550e95fbf49
4
- data.tar.gz: f602dade634d00fd6c7d6ac2ff223c2ef8bbee4a330acdc1fa0c00970ea36a3c
3
+ metadata.gz: ca442fe2d2711e6a485b2a4dd60c5bbd00c7a3557c0a4ceefdb64beae7023f96
4
+ data.tar.gz: 95863b2994482af8161b07a5d70bc2531939edfc444be20bef0c3ed3d6ea418e
5
5
  SHA512:
6
- metadata.gz: 15ab786a38f4a0e707b9b846b8113b27a73181867200fb90447c6642c2c1237bbd1755eb62aa3bb721ea6e0291c5fea5bed20cb8c8669b46bdf044f6bfeb2014
7
- data.tar.gz: b225e914e7cc4070449968db6e6aa838bad63dd1e4c30c92d075570f7fb15868e7cacebeeb216598f4d0f2620d16cb5b4451b10dcf087e193a31a801d825d192
6
+ metadata.gz: abe085b7833b0c4b8f1b5cf109345b9c70666edb66b9c403b411c9edb6033e3a829ed7614be2ebd7f5778b504d5f8e445ab94b046ff864d8d376d6ba49025a9a
7
+ data.tar.gz: 87a3a04f0c8ec732fa3c215306181a8729b6bf2972d0924edc52c559db0e75d4efa91e98e4c3477e37d36674efb764c757593d994bd19a178bbff16cdcae066f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.37.0 (2026-07-08)
4
+
5
+ Full Changelog: [v0.36.0...v0.37.0](https://github.com/cadenya/cadenya-ruby/compare/v0.36.0...v0.37.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([11798bd](https://github.com/cadenya/cadenya-ruby/commit/11798bd127b25c86c4b494c8b4385e093be464ba))
10
+
3
11
  ## 0.36.0 (2026-07-08)
4
12
 
5
13
  Full Changelog: [v0.35.0...v0.36.0](https://github.com/cadenya/cadenya-ruby/compare/v0.35.0...v0.36.0)
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 "cadenya", "~> 0.36.0"
20
+ gem "cadenya", "~> 0.37.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -8,14 +8,12 @@ module Cadenya
8
8
  # @return [String, nil]
9
9
  optional :next_cursor, String, api_name: :nextCursor
10
10
 
11
- # @!attribute total
11
+ # @!method initialize(next_cursor: nil)
12
+ # Page carries cursor-based pagination state. There is no total: the cursor walks
13
+ # the result set without ever counting it, and a count would cost a second query
14
+ # on every list.
12
15
  #
13
- # @return [Integer, nil]
14
- optional :total, Integer
15
-
16
- # @!method initialize(next_cursor: nil, total: nil)
17
16
  # @param next_cursor [String]
18
- # @param total [Integer]
19
17
  end
20
18
  end
21
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.36.0"
4
+ VERSION = "0.37.0"
5
5
  end
@@ -11,19 +11,14 @@ module Cadenya
11
11
  sig { params(next_cursor: String).void }
12
12
  attr_writer :next_cursor
13
13
 
14
- sig { returns(T.nilable(Integer)) }
15
- attr_reader :total
16
-
17
- sig { params(total: Integer).void }
18
- attr_writer :total
19
-
20
- sig do
21
- params(next_cursor: String, total: Integer).returns(T.attached_class)
22
- end
23
- def self.new(next_cursor: nil, total: nil)
14
+ # Page carries cursor-based pagination state. There is no total: the cursor walks
15
+ # the result set without ever counting it, and a count would cost a second query
16
+ # on every list.
17
+ sig { params(next_cursor: String).returns(T.attached_class) }
18
+ def self.new(next_cursor: nil)
24
19
  end
25
20
 
26
- sig { override.returns({ next_cursor: String, total: Integer }) }
21
+ sig { override.returns({ next_cursor: String }) }
27
22
  def to_hash
28
23
  end
29
24
  end
@@ -1,19 +1,15 @@
1
1
  module Cadenya
2
2
  module Models
3
- type page = { next_cursor: String, total: Integer }
3
+ type page = { next_cursor: String }
4
4
 
5
5
  class Page < Cadenya::Internal::Type::BaseModel
6
6
  attr_reader next_cursor: String?
7
7
 
8
8
  def next_cursor=: (String) -> String
9
9
 
10
- attr_reader total: Integer?
10
+ def initialize: (?next_cursor: String) -> void
11
11
 
12
- def total=: (Integer) -> Integer
13
-
14
- def initialize: (?next_cursor: String, ?total: Integer) -> void
15
-
16
- def to_hash: -> { next_cursor: String, total: Integer }
12
+ def to_hash: -> { next_cursor: String }
17
13
  end
18
14
  end
19
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadenya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya