pubid 2.0.0.pre.alpha.62 → 2.0.0.pre.alpha.63

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: e7afdb690b76d32cc60abd371dd8936f0e79054e472150a6ec05f6fea1931fd7
4
- data.tar.gz: 458c87cedd25491b9022e1053d72a799ec108bf9721d4103df44965b526855f7
3
+ metadata.gz: 38ad941ad33521b549550b400ae9521793215df359adfc9757bfc44e37608459
4
+ data.tar.gz: 4ed9837b5f4236e49abd1c7158a70c7b4af091307c9956c3f96482ec02d35232
5
5
  SHA512:
6
- metadata.gz: 8d0e50ff1df89fe98825e6427d0a4a0be18d8b74c7ddd396499fcd927f96ecb67c5b6cf4503b0b95ad7ef87f8d6a5463e8793140b4185c9aeb0f4cb5b5aa3244
7
- data.tar.gz: 774ed8600701853d1fcd875fe589eee063b31ff8b319e0b1ce90d1e42ac8bcc20d18259c1602f9c8fa7c16aeb9bcd1246d151ce1c3086b656e8ff48755c488cf
6
+ metadata.gz: 696906e5702a2222c675f60b433a6d66095092b525ef3492eeb78e90a2559c2f02576155a46c7a1af8e73d192daacd50c587767184c50bd47a4dcff69d8afdaf
7
+ data.tar.gz: 1106b95ab13d13ae298fcf2bfa38f31837f2c96cab093aa57f0dcd054c28bd4c362ed6aace865cf6256805774ce8a8cfc6cf666a318d83a2699cf106b90e9bbe
@@ -64,9 +64,12 @@ module Pubid
64
64
  identifiers&.first&.typed_stage
65
65
  end
66
66
 
67
- # Get the base document (first identifier)
67
+ # Get the base document (first identifier), peeled recursively —
68
+ # a consolidated edition of a supplement reduces to its origin
69
+ # standard, the BSI/CSA/CEN shape (the one-level peel left a
70
+ # supplement bundle resolving to the supplement).
68
71
  def base_document
69
- identifiers&.first
72
+ identifiers&.first&.base_document || self
70
73
  end
71
74
 
72
75
  # The origin document. A consolidated bundle stores its members in
data/lib/pubid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.0.pre.alpha.62"
4
+ VERSION = "2.0.0.pre.alpha.63"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.62
4
+ version: 2.0.0.pre.alpha.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.