atlas_rb 1.29.1 → 1.29.2

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: 66d1cdefb1c1d3935fa8cd3721438b8b81b3bd89509317a11beefac39b55c9c9
4
- data.tar.gz: d8b9bcea27ca0cb9ed3a40b64b31a944c0e6c22ba82aca5f32aa8f293cd16e6a
3
+ metadata.gz: db0cdca29eb7e27fab3995adff0e6f7b33aba897aa46fd164c2f11de02eb2d96
4
+ data.tar.gz: 3f2b9746c5f4384dd3e9cacc8d50eed2d1d2c60ea92c3cf2130142b2d48c6bf2
5
5
  SHA512:
6
- metadata.gz: 4bf52d38cef2068881ee863d6f41fcd0d0149eab2714c1cec8d942f0f3f2ef422faeb52b92528579820e88149a5bf9613739e65091f9727df8f1151cdefd543f
7
- data.tar.gz: dd88d74e36f72f186cbb5a0473b046cef6266b2fb5b45b48b2101db77e643df3d33cefa61048390134962fbbfadf537cb26759d964b1bbd9bf7ee97f84205721
6
+ metadata.gz: 649e9ccbd07ca7bfa9bd507aeea9e0973edc1f524bf00cae8b1dd6d00464cc2ce71dfd761121ee1aae7321be80e5b6e35534e8eabf0251e5738303e1c29ec481
7
+ data.tar.gz: d765582a2a7c0fbf187b45019c3934c2215aeac396fe568b5bd56b509d89694dd75eda0a46849b84ba6434e4863ba8a2b0bcfa24e95b4421a1016af85bc3f113
data/.version CHANGED
@@ -1 +1 @@
1
- 1.29.1
1
+ 1.29.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.29.2
4
+
5
+ ### Changed — `TombstonedError#work_retracted?` is now `work_suppressed?`
6
+
7
+ "Suppressed" is the staff-facing name for a tombstone, the term library
8
+ catalogues use for a reversible removal. The method is renamed with no alias,
9
+ so a caller of `work_retracted?` must switch to `work_suppressed?`. The YARD
10
+ text that called a tombstoned Work "retracted" says "suppressed" too.
11
+ `Work.disassociate` keeps "retract": withdrawing a relationship claim is
12
+ not a suppression.
13
+
3
14
  ## 1.29.1
4
15
 
5
16
  Needs an Atlas that withholds the files beneath a tombstone (0.6.245 or later).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (1.29.1)
4
+ atlas_rb (1.29.2)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
data/README.md CHANGED
@@ -757,7 +757,7 @@ begin
757
757
  AtlasRb::Blob.content(blob_id) { |chunk| response.stream.write(chunk) }
758
758
  rescue AtlasRb::TombstonedError => e
759
759
  e.tombstoned_resource_type # => "FileSet" (one file removed) or "Work"
760
- e.work_retracted? # => true when the whole Work is tombstoned
760
+ e.work_suppressed? # => true when the whole Work is tombstoned
761
761
  end
762
762
  ```
763
763
 
data/lib/atlas_rb/blob.rb CHANGED
@@ -32,7 +32,7 @@ module AtlasRb
32
32
  #
33
33
  # `"tombstoned_in_effect"` is true when the Blob, its FileSet or its Work
34
34
  # is tombstoned, and `"tombstoned_resource_type"` says which (`"FileSet"`
35
- # for a removed file, `"Work"` for a retracted Work). Atlas answers such a
35
+ # for a removed file, `"Work"` for a suppressed Work). Atlas answers such a
36
36
  # Blob `410` with this body, which is returned, so a host can refuse a
37
37
  # download before it calls {.content}. Atlas 0.6.245 or later.
38
38
  # @raise [AtlasRb::ResourceError] on any non-2xx other than `404` / `410` (e.g. an
@@ -384,11 +384,11 @@ module AtlasRb
384
384
  # A tombstone does not cascade, so the resource that carries it can be an
385
385
  # ancestor of the one requested. A Blob is withheld when its FileSet is
386
386
  # tombstoned (one file removed) or when its Work is (the whole Work
387
- # retracted). {#tombstoned_resource_type} tells the two apart, so a host can
387
+ # suppressed). {#tombstoned_resource_type} tells the two apart, so a host can
388
388
  # show "file not found" for the first and its "Removed" page for the second.
389
389
  #
390
390
  # rescue AtlasRb::TombstonedError => e
391
- # e.work_retracted? ? render("errors/gone", status: :gone) : head(:not_found)
391
+ # e.work_suppressed? ? render("errors/gone", status: :gone) : head(:not_found)
392
392
  #
393
393
  # Admins and the devolved-admin tier are still served, so they never see
394
394
  # this. A `410` from a single-resource read such as {Work.find} is not this:
@@ -418,7 +418,7 @@ module AtlasRb
418
418
  end
419
419
 
420
420
  # @return [Boolean] true when the whole Work is tombstoned.
421
- def work_retracted?
421
+ def work_suppressed?
422
422
  tombstoned_resource_type == "Work"
423
423
  end
424
424
 
@@ -200,7 +200,7 @@ module AtlasRb
200
200
  # Restore is the operator's counterpart and lives in
201
201
  # {AtlasRb::Admin::Resource}, where the namespace is the marker.
202
202
  #
203
- # Tombstone a resource: retract it from discovery, reversibly.
203
+ # Tombstone a resource: suppress it from discovery, reversibly.
204
204
  #
205
205
  # Returns the **raw response** rather than raising, because Atlas refuses a
206
206
  # container that still holds live children with a `422` carrying
data/lib/atlas_rb/work.rb CHANGED
@@ -468,7 +468,7 @@ module AtlasRb
468
468
  # misconfigured `ATLAS_URL`, the route is not Atlas's at all.
469
469
  # @raise [AtlasRb::TombstonedError] when the Work is tombstoned and the
470
470
  # caller is below the admin and devolved-admin tiers (Atlas 0.6.245 or
471
- # later), so a retracted Work's files are never listed.
471
+ # later), so a suppressed Work's files are never listed.
472
472
  # @raise [AtlasRb::ResourceError] on any non-2xx other than `404` / `410`
473
473
  # (an auth or validation envelope, a `5xx`, a proxy's `503`), carrying
474
474
  # Atlas's status and body so the failure is attributable at the boundary.
@@ -548,7 +548,7 @@ module AtlasRb
548
548
  # `ATLAS_URL`, the route is not Atlas's at all.
549
549
  # @raise [AtlasRb::TombstonedError] when the Work is tombstoned and the
550
550
  # caller is below the admin and devolved-admin tiers (Atlas 0.6.245 or
551
- # later), so a retracted Work's files are never listed.
551
+ # later), so a suppressed Work's files are never listed.
552
552
  # @raise [AtlasRb::ResourceError] on any non-2xx other than `404` / `410`
553
553
  # (a `403` for a caller who cannot read the Work, a `5xx`, a proxy's
554
554
  # `503`), carrying Atlas's status and body so the failure is attributable
@@ -633,7 +633,7 @@ module AtlasRb
633
633
  # misconfigured `ATLAS_URL`, the route is not Atlas's at all.
634
634
  # @raise [AtlasRb::TombstonedError] when the Work is tombstoned and the
635
635
  # caller is below the admin and devolved-admin tiers (Atlas 0.6.245 or
636
- # later), so a retracted Work's files are never listed.
636
+ # later), so a suppressed Work's files are never listed.
637
637
  # @raise [AtlasRb::ResourceError] on any non-2xx other than `404` / `410`
638
638
  # (an auth or validation envelope, a `5xx`, a proxy's `503`), carrying
639
639
  # Atlas's status and body so the failure is attributable at the boundary.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.1
4
+ version: 1.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff