relaton 3.0.0.pre.alpha.2 → 3.0.0.pre.alpha.3
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/relaton/bsi/model/docidentifier.rb +21 -13
- data/lib/relaton/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d42feb743edcabf877b42b00d1ac34d4fdfa708643d84de08f2dcb26aca9e5d
|
|
4
|
+
data.tar.gz: 04040b9aefba373a1ffbaeb1bc2aae985d116e0413fcdf9c38cd4f43f9aef04d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d41fa25ea406288cfddac33f56e1e2e610be90c1f29acb2d853de9fa114ee8fc04abecc2f4c1fb32f5ba96af2b5b9f8aa8738831a50ed5409d01243318e1524f
|
|
7
|
+
data.tar.gz: 5f6b8026cc42aee2c6467fe639f847fcf6bef9ab960e1293b92b1628fccf10da2ffd8a44698075fb322186fdd5268646a8641089a82dfd6f8d2bc1a900e13665
|
|
@@ -68,22 +68,30 @@ module Relaton
|
|
|
68
68
|
self.content = pubid.exclude(:part, :subpart)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
# Reduce to the all-parts form by wrapping `pubid`
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
#
|
|
82
|
-
#
|
|
71
|
+
# Reduce to the all-parts form by wrapping `pubid` (not a part-stripped
|
|
72
|
+
# copy): `to_all_parts`'s own identity computation already strips
|
|
73
|
+
# part/date for rendering (`#to_s`/`#===`), and wrapping the original
|
|
74
|
+
# keeps `identifiers` holding the real identifier this reference came
|
|
75
|
+
# from. The one exception is a supplement's own year: pubid protects an
|
|
76
|
+
# `Amendment`/`Corrigendum`'s own date from a bare `exclude(:date)` (the
|
|
77
|
+
# same protection `#remove_date!` above relies on to drop the base
|
|
78
|
+
# year while keeping the amendment's), but `to_all_parts` builds its
|
|
79
|
+
# identity through that same `exclude`, so the protection would leave a
|
|
80
|
+
# consolidated id's amendment year distinguishing editions that
|
|
81
|
+
# "(all parts)" is meant to collapse — hence the explicit
|
|
82
|
+
# `exclude(:supplement_year)` pre-step, which force-clears it instead.
|
|
83
|
+
# BSI has no dedicated pubid `AllParts` subclass (unlike ISO/IEC), so
|
|
84
|
+
# the wrapper is the generic `Pubid::AllPartsIdentifier` — its `#to_s`
|
|
85
|
+
# DOES print a "(all parts)" marker, unlike BSI's own renderer, which
|
|
86
|
+
# never had one. Because BSI stores its parsed pubid as the single
|
|
87
|
+
# source of `content` (`Iso::Type::Pubid`), `content` and `#pubid`
|
|
88
|
+
# can't diverge here the way they do for flavors with a separately
|
|
89
|
+
# cached content string: both now show the marker (see `#pubid` above,
|
|
90
|
+
# widened to accept it).
|
|
83
91
|
def to_all_parts!
|
|
84
92
|
return if !pubid || pubid.all_parts?
|
|
85
93
|
|
|
86
|
-
self.content = pubid.to_all_parts
|
|
94
|
+
self.content = pubid.exclude(:supplement_year).to_all_parts
|
|
87
95
|
end
|
|
88
96
|
|
|
89
97
|
private
|
data/lib/relaton/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.0.pre.alpha.
|
|
4
|
+
version: 3.0.0.pre.alpha.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -442,14 +442,14 @@ dependencies:
|
|
|
442
442
|
requirements:
|
|
443
443
|
- - "~>"
|
|
444
444
|
- !ruby/object:Gem::Version
|
|
445
|
-
version: '3.
|
|
445
|
+
version: '3.7'
|
|
446
446
|
type: :runtime
|
|
447
447
|
prerelease: false
|
|
448
448
|
version_requirements: !ruby/object:Gem::Requirement
|
|
449
449
|
requirements:
|
|
450
450
|
- - "~>"
|
|
451
451
|
- !ruby/object:Gem::Version
|
|
452
|
-
version: '3.
|
|
452
|
+
version: '3.7'
|
|
453
453
|
- !ruby/object:Gem::Dependency
|
|
454
454
|
name: w3c_api
|
|
455
455
|
requirement: !ruby/object:Gem::Requirement
|