atlas_rb 1.11.0 → 1.11.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.version +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/atlas_rb/work.rb +22 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58d8d5524e43dc1f14f172ea65bc1e78e55826a63c814f2ef517675d07732d08
4
- data.tar.gz: 548d4cba38f7a2ef81f210612157ee36a56de6e15b5fcff367b4df1b73fda847
3
+ metadata.gz: 7bacb5eb215d1dd6d3df935abd82d74909ca81d1ce91f44de67f370846dbbd80
4
+ data.tar.gz: c6ea26efb6d7b083d2ede1455a126901bae8f446ece2997b441d7e593fdaba51
5
5
  SHA512:
6
- metadata.gz: 745c494de1bd2da2a0048e2d3d562961bed6e48058b30da25dcbcdc0f9b2b7f3159c2b831508ac972a968dc6f02ee2a7f0a5cf11b85e2319277d1f200adf51f4
7
- data.tar.gz: fe90db7467cdae4726357c2ba6d0d939d50c4174f1a3aa43ee8fd91adea19923fa321f53804fb52ed8db39eab22b578dadc6e542f77d54d1e1177e1effab0c53
6
+ metadata.gz: a9cc966ec7e7505b26ca5e5adaeacb78201b8f83c141d77a63c6ece959fce7de3c421e26274b7b943b964ad43ff32899a3da189ac4d9fdaebf43ed7cb9e5249c
7
+ data.tar.gz: 366a253542dfcf24f9e44ba4482c013ff426ec9b361b56636c2e2b96020a9b1ca738a93fa6f97d696b3b8bbd2e873ae761c7ceb4f8b8a5ef086bcf7c93ba2b5d
data/.version CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.11.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (1.11.0)
4
+ atlas_rb (1.11.1)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
data/lib/atlas_rb/work.rb CHANGED
@@ -58,7 +58,10 @@ module AtlasRb
58
58
  # omitted.
59
59
  # @return [AtlasRb::Mash] `{ "works" => [...], "pagination" => {...} }`.
60
60
  # Each entry in `"works"` is a Work summary (`id`, `title`,
61
- # `description`, `in_progress`, `incomplete`, `incomplete_reason`).
61
+ # `description`, `in_progress`, `incomplete`, `incomplete_reason`,
62
+ # `handle`). `handle` is carried on the summary, not just the detail
63
+ # read, so "which Works never minted?" is answerable from one page
64
+ # rather than a fetch per row.
62
65
  #
63
66
  # @example Find stuck deposits
64
67
  # AtlasRb::Work.list(in_progress: true)
@@ -220,11 +223,28 @@ module AtlasRb
220
223
  # "stuck" list.
221
224
  #
222
225
  # Idempotent on the server: calling `complete` on an already-complete
223
- # Work is a no-op — Atlas simply re-saves with `in_progress: false`.
226
+ # Work is a no-op — Atlas re-saves with `in_progress: false`.
224
227
  # Atlas does not currently stamp a `completed_by` audit field; the
225
228
  # `nuid:` parameter is plumbed through for parity with the other
226
229
  # lifecycle bindings and in case Atlas adds completion audit later.
227
230
  #
231
+ # **This call also mints the Work's persistent identifier.** Atlas
232
+ # registers `<prefix>/<noid>` with its Handle service, pointed at the
233
+ # public Work page, and records it as `handle` on the Work. Two
234
+ # consequences for a caller:
235
+ #
236
+ # * **Minting can never fail the call.** A handle server that is down,
237
+ # slow or unconfigured leaves `handle` null and the Work still
238
+ # complete — never a non-2xx. So a `200` does not promise a handle:
239
+ # the response body carries the Work, so check `handle` on it rather
240
+ # than assuming success minted one.
241
+ # * **Re-completing is safe.** Atlas mints only when `handle` is empty,
242
+ # and the underlying registration is keyed by handle name, so a repeat
243
+ # call re-points rather than minting a second identifier.
244
+ #
245
+ # A deployment with no handle server configured mints nothing at all,
246
+ # which is the normal state for a stack brought up without it.
247
+ #
228
248
  # @param id [String] the Work ID.
229
249
  # @param nuid [String, nil] optional NUID of the acting user.
230
250
  # @param on_behalf_of [String, nil] optional NUID for the `On-Behalf-Of`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-08-13 00:00:00.000000000 Z
11
+ date: 2026-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday