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 +4 -4
- data/lib/pubid/iec/identifiers/consolidated_identifier.rb +5 -2
- data/lib/pubid/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: 38ad941ad33521b549550b400ae9521793215df359adfc9757bfc44e37608459
|
|
4
|
+
data.tar.gz: 4ed9837b5f4236e49abd1c7158a70c7b4af091307c9956c3f96482ec02d35232
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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