pubid 2.0.34 → 2.0.36
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/data/iec/stage-codes.md +12 -0
- data/lib/pubid/iala/CLAUDE.md +8 -2
- data/lib/pubid/iala/identifier.rb +8 -1
- data/lib/pubid/iala/identifiers/general_assembly.rb +28 -2
- data/lib/pubid/iala/identifiers.rb +0 -1
- data/lib/pubid/iala/pubid_urn_schema.rb +0 -1
- data/lib/pubid/iala.rb +6 -2
- data/lib/pubid/iec/CLAUDE.md +2 -0
- data/lib/pubid/iec/identifiers/publicly_available_specification.rb +10 -6
- data/lib/pubid/iec/identifiers/technical_report.rb +48 -1
- data/lib/pubid/iec/identifiers/technical_specification.rb +48 -1
- data/lib/pubid/version.rb +1 -1
- metadata +7 -5
- data/lib/pubid/iala/identifiers/advice.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df32ad6dc58edf5d21b55931197c24a768ad6236bde325552ef2bb7edb1cfc7d
|
|
4
|
+
data.tar.gz: c8a6aed352409821dfde7c1dae1a27b304c4b88e0801076c2cd547c168643836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c779229fbf5b49f4be5361e4a69371aaab54de0c30cb4eb670391bd4bdc31d482586933215ec1729c250c8c0ea8c55f90c9a9f80ebb4f786cef34b93a9ea202
|
|
7
|
+
data.tar.gz: 46c3ff9d21d91da36e3d01586ee06924d11df13c41d32ec83dcdce53e4c11880b195dd86c3adc46d2ec4ef945e10f81145a3d948c112e7906dd02ec0b95e3ebc
|
data/data/iec/stage-codes.md
CHANGED
|
@@ -148,3 +148,15 @@ stage RFDIS/50.00 — a snapshot of the project's plan, not a code rename.
|
|
|
148
148
|
harmonized system is joint ISO/IEC and #237's own list maps RR to
|
|
149
149
|
9092 — IEC's table simply does not name IEC stage codes for the
|
|
150
150
|
review sub-states. Locked by `spec/pubid/iec/stage_reconciliation_spec.rb`.
|
|
151
|
+
- **Registry alignment (pubid#733, applied):** the TR/TS/PAS point rows
|
|
152
|
+
this table gives codes of their own — `CDPAS` 50.20, `CDTR`/`CDTS`
|
|
153
|
+
50.20, `ADTR`/`ADTS` 40.99, `NDTR`/`NDTS`/`DTRM`/`DTSM` 50.92 — are
|
|
154
|
+
typed-stage rows (`TYPED_STAGES`), not PROJECT_STAGES entries, so the
|
|
155
|
+
official `urn:iec:std:` stage slot carries the table's code per
|
|
156
|
+
spelling instead of folding every point spelling onto the 50.00
|
|
157
|
+
ladder. `DTRM`/`NDTR` and `DTSM`/`NDTS` share 50.92 in the table, so
|
|
158
|
+
each pair shares one official-URN slot; the pair stays distinct in the
|
|
159
|
+
pubid-scheme URN and the reverse lookup resolves the first row. The
|
|
160
|
+
translation/preparation families (`TDTR`/`TDTS`/`PRVDTR`/`PRVDTS`/
|
|
161
|
+
`PRVDPAS`, …) stay PROJECT_STAGES — queryable, deliberately
|
|
162
|
+
unparseable. Locked by `spec/pubid/iec/stage_point_codes_spec.rb`.
|
data/lib/pubid/iala/CLAUDE.md
CHANGED
|
@@ -19,13 +19,19 @@ followed by a number whose shape varies per series.
|
|
|
19
19
|
| G | Guideline | 4 digits, zero-padded | `IALA G1015 Ed 2.2` |
|
|
20
20
|
| C | Model Course | 4 digits + `-` part | `IALA C0103-1 Ed 3.0` |
|
|
21
21
|
| M | Manual (planned) | 4 digits, zero-padded | `IALA M0001 Ed 9.0` |
|
|
22
|
-
|
|
|
23
|
-
| GA | General Assembly resolution | dotted, each segment 2 digits | `IALA GA01.01` |
|
|
22
|
+
| GA | General Assembly resolution | dotted, each segment 2 digits (`GA01.01`); legacy A-session form dashed (`A12-01`) | `IALA GA01.01`, `IALA A12-01` |
|
|
24
23
|
| L | Letter | dotted + dashed, verbatim | `IALA L2.1.11 Ed 2` |
|
|
25
24
|
| X | Report (reserved) | 4 digits | `IALA X0123` |
|
|
26
25
|
| P | Resolution/Council publication (reserved) | 4 digits | `IALA P0123` |
|
|
27
26
|
| — | Annex wrapper over any base | bare or lettered | `IALA G1128 ANNEX A Ed 1.6` |
|
|
28
27
|
|
|
28
|
+
The A letter is GeneralAssembly's legacy session form, not a separate
|
|
29
|
+
series: all 11 A-shaped primary docidentifiers in relaton-data-iala
|
|
30
|
+
(A12-01, A13-01 through A13-04) are GA resolutions, the covers read
|
|
31
|
+
"GA Resolution A12-01", and no Advice-series document exists in the
|
|
32
|
+
catalogue. The letter the input used (GA or A) round-trips verbatim
|
|
33
|
+
through to_s and the URN; there is no Advice type.
|
|
34
|
+
|
|
29
35
|
The Annex class has no prefix of its own: it wraps a base identifier of
|
|
30
36
|
another series and preserves the annex marker case (`Annex` vs `ANNEX`).
|
|
31
37
|
X and P are reserved for future numbered series — today's reports and
|
|
@@ -51,7 +51,6 @@ module Pubid
|
|
|
51
51
|
"pubid:iala:guideline" => "Pubid::Iala::Identifiers::Guideline",
|
|
52
52
|
"pubid:iala:manual" => "Pubid::Iala::Identifiers::Manual",
|
|
53
53
|
"pubid:iala:model-course" => "Pubid::Iala::Identifiers::ModelCourse",
|
|
54
|
-
"pubid:iala:advice" => "Pubid::Iala::Identifiers::Advice",
|
|
55
54
|
"pubid:iala:general-assembly" => "Pubid::Iala::Identifiers::GeneralAssembly",
|
|
56
55
|
"pubid:iala:letter" => "Pubid::Iala::Identifiers::Letter",
|
|
57
56
|
"pubid:iala:annex" => "Pubid::Iala::Identifiers::Annex",
|
|
@@ -100,6 +99,14 @@ module Pubid
|
|
|
100
99
|
def dotted_segment_width(width)
|
|
101
100
|
@canonical_dotted_segment_width = width
|
|
102
101
|
end
|
|
102
|
+
|
|
103
|
+
public
|
|
104
|
+
|
|
105
|
+
# Additional type letters that route to this class; empty by
|
|
106
|
+
# default (GeneralAssembly aliases the legacy "A" session letter).
|
|
107
|
+
def type_letter_aliases(*_letters)
|
|
108
|
+
[]
|
|
109
|
+
end
|
|
103
110
|
end
|
|
104
111
|
end
|
|
105
112
|
end
|
|
@@ -3,8 +3,19 @@
|
|
|
3
3
|
module Pubid
|
|
4
4
|
module Iala
|
|
5
5
|
module Identifiers
|
|
6
|
-
# IALA General Assembly resolutions
|
|
7
|
-
#
|
|
6
|
+
# IALA General Assembly resolutions. Two printed forms carry the
|
|
7
|
+
# same class:
|
|
8
|
+
#
|
|
9
|
+
# - dotted series.index: GA01.01, GA01.13 — the form the
|
|
10
|
+
# relaton-data-iala catalogue registers for session A-1 onwards
|
|
11
|
+
# (26 primary docidentifiers).
|
|
12
|
+
# - legacy dashed session form: A12-01, A13-04 — the form the
|
|
13
|
+
# catalogue and the published covers use for the A-12/A-13
|
|
14
|
+
# sessions (all 11 A-shaped primary docidentifiers in the
|
|
15
|
+
# catalogue are GA resolutions; the shape carries no Advice).
|
|
16
|
+
# No edition. The two forms are distinguished by number shape
|
|
17
|
+
# (dotted GA numbers vs dashed A numbers) and rendered verbatim
|
|
18
|
+
# through to_s and the MRN URN; no extra attribute is stored.
|
|
8
19
|
class GeneralAssembly < Identifier
|
|
9
20
|
number_width 2
|
|
10
21
|
dotted_segment_width 2
|
|
@@ -13,6 +24,21 @@ module Pubid
|
|
|
13
24
|
{ key: :"general-assembly", title: "General Assembly Resolution",
|
|
14
25
|
short: "GA" }
|
|
15
26
|
end
|
|
27
|
+
|
|
28
|
+
# The legacy A-session letter renders for dashed numbers
|
|
29
|
+
# (A12-01); dotted numbers carry the canonical GA letter.
|
|
30
|
+
def type_letter
|
|
31
|
+
number.to_s.include?("-") ? "A" : super
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# DSL: declare additional type letters that route to this class.
|
|
35
|
+
# The legacy A-session letter resolves here as well.
|
|
36
|
+
def self.type_letter_aliases(*letters)
|
|
37
|
+
@type_letter_aliases = letters if letters.any?
|
|
38
|
+
@type_letter_aliases || []
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
type_letter_aliases "A"
|
|
16
42
|
end
|
|
17
43
|
end
|
|
18
44
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Pubid
|
|
4
4
|
module Iala
|
|
5
5
|
module Identifiers
|
|
6
|
-
autoload :Advice, "#{__dir__}/identifiers/advice"
|
|
7
6
|
autoload :Annex, "#{__dir__}/identifiers/annex"
|
|
8
7
|
autoload :Standard, "#{__dir__}/identifiers/standard"
|
|
9
8
|
autoload :Recommendation, "#{__dir__}/identifiers/recommendation"
|
data/lib/pubid/iala.rb
CHANGED
|
@@ -60,11 +60,15 @@ module Pubid
|
|
|
60
60
|
all_typed_stages.find { |s| s.abbr.any? { |a| a.to_s.upcase == abbr_str } }
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
# Look up an identifier class by its IALA type letter (S, R, G, M,
|
|
63
|
+
# Look up an identifier class by its IALA type letter (S, R, G, M,
|
|
64
|
+
# C, X, P, GA) or a class-declared alias of one (GeneralAssembly
|
|
65
|
+
# answers to the legacy "A" session letter).
|
|
64
66
|
# @param letter [String]
|
|
65
67
|
# @return [Class<Identifier>]
|
|
66
68
|
def self.identifier_klass_for_type_letter(letter)
|
|
67
|
-
@by_letter ||= identifier_types.
|
|
69
|
+
@by_letter ||= identifier_types.flat_map do |klass|
|
|
70
|
+
([klass.type[:short]] + Array(klass.type_letter_aliases)).map { |l| [l, klass] }
|
|
71
|
+
end.to_h
|
|
68
72
|
@by_letter.fetch(letter.to_s.upcase)
|
|
69
73
|
end
|
|
70
74
|
end
|
data/lib/pubid/iec/CLAUDE.md
CHANGED
|
@@ -51,6 +51,8 @@ These notes were part of the root `CLAUDE.md`. Read them before you change `lib/
|
|
|
51
51
|
|
|
52
52
|
- **The fragment-ladder spellings are rejected at parse (issue #731).** `CDFRAG`, `DFRAG`, `FDFRAG`, `PRF Frag`, `PWI Frag` (and the `NP`/`ANW`/`WD` " Frag" siblings from the same `FragmentIdentifier::TYPED_STAGES` ladder) parsed into broken shapes, and **one condition on the BUILT object covers every route** (`reject_unrenderable_fragment`, the #727 shape-not-grammar-route ruling, called from `Identifier.parse` after the dotted check): a fragment whose `base` is nil — the ladder token, and even the published `FRAG` token, in the primary type position builds a `FragmentIdentifier` with no base (the builder captures the designation into a local `fragment_number` but never reaches `wrap_with_fragment`, since the `:base` grammar key is absent, and `assign_attributes` cannot store number/date/edition on the fragment — they delegate to the missing base), which renders bare `/FRAG` (itself unparseable — the render is not a fixed point), carries a nil official URN, keys the empty index string, and silently drops the input's designation/date/edition; or a fragment whose `typed_stage.stage_code` is not `published` — the ladder token in a SUPPLEMENT layer (`IEC 60038/CDFRAG 1`) builds a base-carrying fragment whose stage has no printed face (`render_fragment` prints `/FRAG<n>` unconditionally), so the stage was dropped at render and `parse(to_s) != parse`. **Attestation searched before rejecting** (the issue's stop condition): gem fixtures (`spec/fixtures/iec/identifiers/full/` — only `…/AMDn/FRAGn EDn`, `…/FRAGn EDn` and the tracked-debt `…/COR1/FRAGC1 ED1`, which does not parse at main), the testsuite ledger (`tests/iec/fragment_identifier.yaml` — 16 rows, all base-carrying; the "ANW Frag"/"PRF Frag"/"PWI Frag" strings in `_debt.yaml` are parslet expected-token lists inside error-message notes, not identifiers), the stage-codes SSOT (`data/iec/stage-codes.md` — only "MERGED | Fragment merged" and "SPLIT | Project Fragmented", no ladder rows) and the IEC/ISO Harmonized APIs PDFs in `reference-docs/iec/` (an empty `<FRAG/>` presence element plus `<stdFragment>1</stdFragment>` for the number, and the bilingual-fragment workflow — no ladder token). So parse-reject is the direction; the TS side already rejects these spellings (pubid-ts#193 pinned them as a recorded gem divergence), so the two engines now AGREE with no TS change. **One message covers both facets** (`FRAGMENT_LADDER_MESSAGE`); the walk descends through `base` AND the `identifiers` members (AllParts/Consolidated), so `IEC DFRAG 60038 (all parts)` rejects too while `IEC 60038/FRAG1 CSV` (a Vap over a sound fragment) passes. **`from_hash` stays open** (stored-data compatibility): a stored `{"_type" => "pubid:iec:fragment-identifier", "stage" => "dfrag"}` still deserializes to the degenerate fragment it always built — pinned with what the residue hashes contain. **The registry is untouched**: `Pubid::Iec.locate_stage` still answers every ladder abbreviation (metanorma-iec stage lookups and the URN stage slot resolve through the rows), and the #727-era TYPED_STAGES registration specs keep passing. **Neighbours pinned byte-identical**: the eight attested `/FRAG<n>` faces (IS/amendment/corrigendum bases, copublishers, dated, multi-digit), the Vap-over-fragment and all-parts forms. No corpus round follows (nothing attested). (hand-off: iec-frag-ladder-reject.)
|
|
53
53
|
|
|
54
|
+
- **The TR/TS/PAS point stages carry the correspondence table's own codes (issue #733).** The registry contradicted the SSOT it cites: the `:cdpas` row was a **fabricated** committee-draft state (stage_code `:cd`, harmonized leading 30.xx) with no row in the table, while the `:dpas` row's abbr list still folded `"CDPAS"` beside a comment admitting CDPAS is the 50.20 row; and the TR/TS ladders folded the point spellings onto the 50.00 ladder rows (`:dtr` `abbr: %w[DTR ADTR CDTR DTRM NDTR DTSM DTRM]` — DTRM listed **twice**), so every spelling emitted `tr-stage-50.00`/`ts-stage-50.00` and `IEC DTSM 60038` (a DTS stage!) decoded as a TechnicalReport because only the TR row claimed the token. The ruling: the IEC/ISO Harmonized APIs stage-code table (section 3 "IEC/ISO Stage Code correspondance", identical in v0.0.7 2021-05 and v0.0.8 2023-06; the extract is `data/iec/stage-codes.md`) is correct, the gem was wrong. The fix wires the per-spelling data that was already sitting in each file's `PROJECT_STAGES` hash into `TypedStage.new` rows: **CDPAS** 50.20 ("Draft circulated as DPAS", stage_code `:draft` — the fabricated 30.xx row deleted, the duplicate fold removed), **ADTR** 40.99 / **CDTR** 50.20 / **NDTR** 50.92 / **DTRM** 50.92 (TR), **ADTS** 40.99 / **CDTS** 50.20 / **NDTS** 50.92 / **DTSM** 50.92 (TS); plain **DTR/DTS** keep the folded 50.00 ladder (the registration step) and **DPAS** is untouched. Row order follows the correspondence table, which makes the official-URN reverse lookup (`urn_parser.rb#type_slot_to_code`, first row matching `(type_code, harmonized_stages.first)`) resolve the shared 50.92 slot to **DTRM/DTSM** — NDTR and DTRM (NDTS and DTSM) share the slot because the TABLE gives both spellings the same code; the official URN is the harmonized code and is honestly lossy there, while the pubid-scheme URN (`stage-ndtr` vs `stage-dtrm`) keeps the pair distinct. `pnw_stage_spec.rb`'s uniqueness tripwire gained an `ALLOWED_COLLISIONS` allow-list for exactly those two pairs — any other (type, leading-code) collision still fails. **Render keeps the parsed spelling per row** (`abbr.first` of its own row), the #191/#193 pattern — the old fold-to-DTR/DTS render was a consequence of the fold, not a separate normalization. **The grammar needed NO extension and NO rebake**: all nine tokens were already in `tables/iec_typed_stages.yaml` (the table only lists acceptable tokens; the token→row decode is the builder's `locate_stage`), so `data/parg/iec.json` is byte-identical. `from_hash` residue: stored hashes carry the stage CODE (`"stage" => "dtr"`), so pre-#733 stored rows deserialize to the ladder row they always named — no index migration. **Measured by the replay gate**: over all 12,488 full-fixture inputs, `to_s`/`to_urn`/`to_pubid_urn`/`to_mr_string`/`to_hash`/class/`root.number` are byte-identical to the 2.0.34 baseline — 0 diffs (zero attested rows carry any of the spellings; verified in the gem fixtures and the testsuite ledger `tests/iec/*.yaml`). Locked by `spec/pubid/iec/stage_point_codes_spec.rb` (every probe row: class, render, official-URN slot, pubid URN + round trip; the shared-slot pins; plain DTR/DTS/DPAS byte-identical; the abbr-list unfolds; the #570 harmonized-code lookups unchanged). (hand-off: iec-stage-point-codes.)
|
|
55
|
+
|
|
54
56
|
## pubid-scheme URN (issue #670; gaps closed by #687)
|
|
55
57
|
|
|
56
58
|
`lib/pubid/iec/pubid_urn_schema.rb` completes the partial schema the IEEE
|
|
@@ -43,19 +43,23 @@ module Pubid
|
|
|
43
43
|
),
|
|
44
44
|
Pubid::Components::TypedStage.new(
|
|
45
45
|
code: :cdpas,
|
|
46
|
-
stage_code: :
|
|
46
|
+
stage_code: :draft,
|
|
47
47
|
type_code: :pas,
|
|
48
|
+
# CDPAS is PAS's 50.20 row of IEC's stage-code correspondence
|
|
49
|
+
# table ("Draft circulated as DPAS") — IEC/ISO Harmonized APIs,
|
|
50
|
+
# section 3 "IEC/ISO Stage Code correspondance", identical in
|
|
51
|
+
# v0.0.7 (2021-05) and v0.0.8 (2023-06); extracted at
|
|
52
|
+
# data/iec/stage-codes.md (pubid#733). It is not a
|
|
53
|
+
# committee-draft state and claims no 30.xx code.
|
|
48
54
|
abbr: ["CDPAS"],
|
|
49
|
-
name: "
|
|
50
|
-
harmonized_stages: %w[
|
|
55
|
+
name: "Draft circulated as DPAS",
|
|
56
|
+
harmonized_stages: %w[50.20],
|
|
51
57
|
),
|
|
52
58
|
Pubid::Components::TypedStage.new(
|
|
53
59
|
code: :dpas,
|
|
54
60
|
stage_code: :draft,
|
|
55
61
|
type_code: :pas,
|
|
56
|
-
|
|
57
|
-
# ("Draft circulated as DPAS") — see data/iec/stage-codes.md
|
|
58
|
-
abbr: ["DPAS", "CDPAS"],
|
|
62
|
+
abbr: ["DPAS"],
|
|
59
63
|
name: "Draft Publicly Available Specification",
|
|
60
64
|
harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
|
|
61
65
|
),
|
|
@@ -53,10 +53,57 @@ module Pubid
|
|
|
53
53
|
code: :dtr,
|
|
54
54
|
stage_code: :draft,
|
|
55
55
|
type_code: :tr,
|
|
56
|
-
|
|
56
|
+
# Plain DTR keeps the folded 50.00 ladder (the registration
|
|
57
|
+
# step). The point spellings below are rows of their own, each
|
|
58
|
+
# with the exact code IEC's stage-code correspondence table
|
|
59
|
+
# gives it (pubid#733).
|
|
60
|
+
abbr: %w[DTR],
|
|
57
61
|
name: "Draft Technical Report",
|
|
58
62
|
harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
|
|
59
63
|
),
|
|
64
|
+
# The TR ladder's point spellings, with the codes from IEC's
|
|
65
|
+
# stage-code correspondence table (IEC/ISO Harmonized APIs,
|
|
66
|
+
# section 3 "IEC/ISO Stage Code correspondance", identical in
|
|
67
|
+
# v0.0.7 2021-05 and v0.0.8 2023-06; extracted at
|
|
68
|
+
# data/iec/stage-codes.md). The per-spelling data was already in
|
|
69
|
+
# PROJECT_STAGES below; wiring it into rows makes the official
|
|
70
|
+
# URN's stage slot (harmonized_stages.first) carry the table's
|
|
71
|
+
# code instead of folding every spelling onto 50.00 (pubid#733).
|
|
72
|
+
# Row order follows the correspondence table; NDTR and DTRM
|
|
73
|
+
# share 50.92 there, so their official-URN slot is the same and
|
|
74
|
+
# the reverse lookup resolves the first row (DTRM).
|
|
75
|
+
Pubid::Components::TypedStage.new(
|
|
76
|
+
code: :adtr,
|
|
77
|
+
stage_code: :draft,
|
|
78
|
+
type_code: :tr,
|
|
79
|
+
abbr: %w[ADTR],
|
|
80
|
+
name: "Approved for DTR",
|
|
81
|
+
harmonized_stages: %w[40.99],
|
|
82
|
+
),
|
|
83
|
+
Pubid::Components::TypedStage.new(
|
|
84
|
+
code: :cdtr,
|
|
85
|
+
stage_code: :draft,
|
|
86
|
+
type_code: :tr,
|
|
87
|
+
abbr: %w[CDTR],
|
|
88
|
+
name: "Draft circulated as DTR",
|
|
89
|
+
harmonized_stages: %w[50.20],
|
|
90
|
+
),
|
|
91
|
+
Pubid::Components::TypedStage.new(
|
|
92
|
+
code: :dtrm,
|
|
93
|
+
stage_code: :draft,
|
|
94
|
+
type_code: :tr,
|
|
95
|
+
abbr: %w[DTRM],
|
|
96
|
+
name: "Rejected DTR to be discussed at meeting",
|
|
97
|
+
harmonized_stages: %w[50.92],
|
|
98
|
+
),
|
|
99
|
+
Pubid::Components::TypedStage.new(
|
|
100
|
+
code: :ndtr,
|
|
101
|
+
stage_code: :draft,
|
|
102
|
+
type_code: :tr,
|
|
103
|
+
abbr: %w[NDTR],
|
|
104
|
+
name: "DTR rejected",
|
|
105
|
+
harmonized_stages: %w[50.92],
|
|
106
|
+
),
|
|
60
107
|
Pubid::Components::TypedStage.new(
|
|
61
108
|
code: :tr,
|
|
62
109
|
stage_code: :published,
|
|
@@ -53,10 +53,57 @@ module Pubid
|
|
|
53
53
|
code: :dts,
|
|
54
54
|
stage_code: :draft,
|
|
55
55
|
type_code: :ts,
|
|
56
|
-
|
|
56
|
+
# Plain DTS keeps the folded 50.00 ladder (the registration
|
|
57
|
+
# step). The point spellings below are rows of their own, each
|
|
58
|
+
# with the exact code IEC's stage-code correspondence table
|
|
59
|
+
# gives it (pubid#733).
|
|
60
|
+
abbr: %w[DTS],
|
|
57
61
|
name: "Draft Technical Specification",
|
|
58
62
|
harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
|
|
59
63
|
),
|
|
64
|
+
# The TS ladder's point spellings, with the codes from IEC's
|
|
65
|
+
# stage-code correspondence table (IEC/ISO Harmonized APIs,
|
|
66
|
+
# section 3 "IEC/ISO Stage Code correspondance", identical in
|
|
67
|
+
# v0.0.7 2021-05 and v0.0.8 2023-06; extracted at
|
|
68
|
+
# data/iec/stage-codes.md). The per-spelling data was already in
|
|
69
|
+
# PROJECT_STAGES below; wiring it into rows makes the official
|
|
70
|
+
# URN's stage slot (harmonized_stages.first) carry the table's
|
|
71
|
+
# code instead of folding every spelling onto 50.00 (pubid#733).
|
|
72
|
+
# Row order follows the correspondence table; NDTS and DTSM
|
|
73
|
+
# share 50.92 there, so their official-URN slot is the same and
|
|
74
|
+
# the reverse lookup resolves the first row (DTSM).
|
|
75
|
+
Pubid::Components::TypedStage.new(
|
|
76
|
+
code: :adts,
|
|
77
|
+
stage_code: :draft,
|
|
78
|
+
type_code: :ts,
|
|
79
|
+
abbr: %w[ADTS],
|
|
80
|
+
name: "Approved for DTS",
|
|
81
|
+
harmonized_stages: %w[40.99],
|
|
82
|
+
),
|
|
83
|
+
Pubid::Components::TypedStage.new(
|
|
84
|
+
code: :cdts,
|
|
85
|
+
stage_code: :draft,
|
|
86
|
+
type_code: :ts,
|
|
87
|
+
abbr: %w[CDTS],
|
|
88
|
+
name: "Draft circulated as DTS",
|
|
89
|
+
harmonized_stages: %w[50.20],
|
|
90
|
+
),
|
|
91
|
+
Pubid::Components::TypedStage.new(
|
|
92
|
+
code: :dtsm,
|
|
93
|
+
stage_code: :draft,
|
|
94
|
+
type_code: :ts,
|
|
95
|
+
abbr: %w[DTSM],
|
|
96
|
+
name: "Rejected DTS to be discussed at meeting",
|
|
97
|
+
harmonized_stages: %w[50.92],
|
|
98
|
+
),
|
|
99
|
+
Pubid::Components::TypedStage.new(
|
|
100
|
+
code: :ndts,
|
|
101
|
+
stage_code: :draft,
|
|
102
|
+
type_code: :ts,
|
|
103
|
+
abbr: %w[NDTS],
|
|
104
|
+
name: "DTS rejected",
|
|
105
|
+
harmonized_stages: %w[50.92],
|
|
106
|
+
),
|
|
60
107
|
Pubid::Components::TypedStage.new(
|
|
61
108
|
code: :ts,
|
|
62
109
|
stage_code: :published,
|
data/lib/pubid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pubid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.36
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-11-15 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: lutaml-model
|
|
@@ -59,8 +60,8 @@ email:
|
|
|
59
60
|
executables: []
|
|
60
61
|
extensions: []
|
|
61
62
|
extra_rdoc_files:
|
|
62
|
-
- LICENSE.txt
|
|
63
63
|
- README.adoc
|
|
64
|
+
- LICENSE.txt
|
|
64
65
|
files:
|
|
65
66
|
- LICENSE.txt
|
|
66
67
|
- README.adoc
|
|
@@ -623,7 +624,6 @@ files:
|
|
|
623
624
|
- lib/pubid/iala/builder.rb
|
|
624
625
|
- lib/pubid/iala/identifier.rb
|
|
625
626
|
- lib/pubid/iala/identifiers.rb
|
|
626
|
-
- lib/pubid/iala/identifiers/advice.rb
|
|
627
627
|
- lib/pubid/iala/identifiers/annex.rb
|
|
628
628
|
- lib/pubid/iala/identifiers/general_assembly.rb
|
|
629
629
|
- lib/pubid/iala/identifiers/guideline.rb
|
|
@@ -1191,6 +1191,7 @@ metadata:
|
|
|
1191
1191
|
changelog_uri: https://github.com/pubid/pubid/releases
|
|
1192
1192
|
documentation_uri: https://rubydoc.info/gems/pubid
|
|
1193
1193
|
rubygems_mfa_required: 'true'
|
|
1194
|
+
post_install_message:
|
|
1194
1195
|
rdoc_options: []
|
|
1195
1196
|
require_paths:
|
|
1196
1197
|
- lib
|
|
@@ -1205,7 +1206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1205
1206
|
- !ruby/object:Gem::Version
|
|
1206
1207
|
version: '0'
|
|
1207
1208
|
requirements: []
|
|
1208
|
-
rubygems_version:
|
|
1209
|
+
rubygems_version: 3.5.22
|
|
1210
|
+
signing_key:
|
|
1209
1211
|
specification_version: 4
|
|
1210
1212
|
summary: The international publication identifier (PubID) library for Ruby.
|
|
1211
1213
|
test_files: []
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Pubid
|
|
4
|
-
module Iala
|
|
5
|
-
module Identifiers
|
|
6
|
-
# IALA Advices (A prefix). Numbering is dashed: A12-01, A13-04.
|
|
7
|
-
# Carries no edition in the corpus.
|
|
8
|
-
class Advice < Identifier
|
|
9
|
-
def self.type
|
|
10
|
-
{ key: :advice, title: "Advice", short: "A" }
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|