basecradle 0.4.0 → 0.5.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 +18 -0
- data/lib/basecradle/user.rb +6 -0
- data/lib/basecradle/version.rb +1 -1
- 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: 867f9a79ea24a73640482c4c13a64293107dcefa51a744a678007dfe5cb86ec7
|
|
4
|
+
data.tar.gz: 8b9cfa07d0f99ec7d4bc7634643c483b7eebda9d6bc3c0a93e5083303820fa66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfba4845b09bfd07a3023a2165b091ba1ee4adac25c9627b211567523f2f27b9719aedfeab486db8b55d7ab83e4477938efdd96aa075159e5a7bcb19dbebdeb3
|
|
7
|
+
data.tar.gz: cfda082d2b5b1f2ed57165087353ade2d6fbfe284605dd3f9ad41d8da3adfea8c48d2dbb2eb9d1922e7197f5c677dc11deab0a987484c7399fc33cda9ed5ad44
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to this project are documented here. The format is based on
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.5.0] - 2026-07-17
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **`User#max_pending_tasks`** — the per-timeline cap on *pending* tasks one author may hold
|
|
12
|
+
(default 3), surfacing a new wire field added by the platform
|
|
13
|
+
([core PR #434](https://github.com/basecradle/basecradle/pull/434)). Only not-yet-activated
|
|
14
|
+
tasks count — a task that has activated never counts against it — so
|
|
15
|
+
`timeline.tasks.create` raises `BaseCradle::ValidationError` (`422`, `validation_failed`)
|
|
16
|
+
once you are at the cap on that timeline. The intended pattern is one rolling follow-up task
|
|
17
|
+
per timeline, scheduled when the previous one fires. Like the rest of the trusted-peer
|
|
18
|
+
cluster it is access-gated: present on your own profile, an admin's view, or a user who
|
|
19
|
+
trusts you, and **absent** for an untrusted viewer or the directory, where reading it raises
|
|
20
|
+
`MissingFieldError`. Shipped in lockstep with the Python SDK.
|
|
21
|
+
([#112](https://github.com/basecradle/basecradle-ruby/issues/112))
|
|
22
|
+
|
|
7
23
|
## [0.4.0] - 2026-07-14
|
|
8
24
|
|
|
9
25
|
### Added
|
|
@@ -105,6 +121,8 @@ the Python SDK's behavior in idiomatic Ruby. Zero runtime dependencies.
|
|
|
105
121
|
- **Quality bars** — a README-as-tested-doc harness (every example runs against a mocked
|
|
106
122
|
API) and a spec drift-guard (CI fails if the live API grows beyond the SDK).
|
|
107
123
|
|
|
124
|
+
[0.5.0]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.5.0
|
|
125
|
+
[0.4.0]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.4.0
|
|
108
126
|
[0.3.0]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.3.0
|
|
109
127
|
[0.2.0]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.2.0
|
|
110
128
|
[0.1.1]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.1.1
|
data/lib/basecradle/user.rb
CHANGED
|
@@ -31,6 +31,12 @@ module BaseCradle
|
|
|
31
31
|
attribute :suspended
|
|
32
32
|
attribute :max_timelines
|
|
33
33
|
attribute :max_participants
|
|
34
|
+
# The per-timeline cap on *pending* tasks one author may hold (default 3). Only
|
|
35
|
+
# not-yet-activated tasks count — a task that has activated never counts against it — so
|
|
36
|
+
# +POST /timelines/{uuid}/tasks+ returns +422+ (+ValidationError+) once you are at
|
|
37
|
+
# the cap on that timeline. The intended pattern is one rolling follow-up task per
|
|
38
|
+
# timeline, scheduled when the previous one fires.
|
|
39
|
+
attribute :max_pending_tasks
|
|
34
40
|
attribute :about
|
|
35
41
|
attribute :time_zone
|
|
36
42
|
# Operator-assigned authority (e.g. +["admin"]+, or +[]+ for none); never self-set. The
|
data/lib/basecradle/version.rb
CHANGED