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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/cadenya/models/page.rb +4 -6
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/models/page.rbi +6 -11
- data/sig/cadenya/models/page.rbs +3 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca442fe2d2711e6a485b2a4dd60c5bbd00c7a3557c0a4ceefdb64beae7023f96
|
|
4
|
+
data.tar.gz: 95863b2994482af8161b07a5d70bc2531939edfc444be20bef0c3ed3d6ea418e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/cadenya/models/page.rb
CHANGED
|
@@ -8,14 +8,12 @@ module Cadenya
|
|
|
8
8
|
# @return [String, nil]
|
|
9
9
|
optional :next_cursor, String, api_name: :nextCursor
|
|
10
10
|
|
|
11
|
-
# @!
|
|
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
|
data/lib/cadenya/version.rb
CHANGED
data/rbi/cadenya/models/page.rbi
CHANGED
|
@@ -11,19 +11,14 @@ module Cadenya
|
|
|
11
11
|
sig { params(next_cursor: String).void }
|
|
12
12
|
attr_writer :next_cursor
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
sig { params(
|
|
18
|
-
|
|
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
|
|
21
|
+
sig { override.returns({ next_cursor: String }) }
|
|
27
22
|
def to_hash
|
|
28
23
|
end
|
|
29
24
|
end
|
data/sig/cadenya/models/page.rbs
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
module Cadenya
|
|
2
2
|
module Models
|
|
3
|
-
type page = { next_cursor: String
|
|
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
|
-
|
|
10
|
+
def initialize: (?next_cursor: String) -> void
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|