pubid 2.0.33 → 2.0.35
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/iec/CLAUDE.md +4 -0
- data/lib/pubid/iec/identifier.rb +74 -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 +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10f4f47a46595c3e5ba212176f9e40f784885b02651b4f7fddf929cd670998d9
|
|
4
|
+
data.tar.gz: d0a6c7e6da3c3d8b5588430fa89196fcacef5c258a46f494e6132facc092972e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2970f1e3bf25171ad9cd39a04f0854e33af6c40a2ded9b5116196622e414ac51e6872ee1877ad0c7ccf18e668fca03bc3dbcf8e84ef7aae672966131cb7f7067
|
|
7
|
+
data.tar.gz: 33d1c50ce30986ccf16b16d392f86395f7e38571e4584893506cc03e42a2864aafc16e3f0097e542de4ba79e6fdb82d44d34986a6b09906b22dea6fbda15969f
|
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/iec/CLAUDE.md
CHANGED
|
@@ -49,6 +49,10 @@ These notes were part of the root `CLAUDE.md`. Read them before you change `lib/
|
|
|
49
49
|
|
|
50
50
|
- **The standalone no-part dotted face is rejected at parse (issue #727).** `IEC/AMD 1.2:2017` parsed and then LOST the dot at render: `render_supplement_standalone` prints the base number and the supplement's own number only, so the stored `stage_iteration` was dropped and `parse(to_s) != parse` — the URN (`amd:1.2:2017`) and `to_hash` carried a facet the canonical face cannot print. No IEC source prints a no-part standalone face with a dotted number (the facet is attested only on the on-base draft faces; 0 rows in the gem fixtures, the testsuite ledger or `relaton-data-iec`), so the shape is **rejected at parse** — the #726 ruling for unattested dotted shapes — rather than built unrenderable. **The crash the issue reported does not reproduce on the Ruby side, and that finding shaped the fix**: the Ruby renderer nil-guards `copublishers` (`copublishers&.any?`) and the parse path always materializes the publisher (the attribute default fills it; the only `publisher_portion` crash needs a hand-set `publisher = nil`, unreachable from parse and from_hash — verified at 2.0.29, the released 2.0.31 and main over a ~40-shape probe matrix); the crash in the issue came from pubid-ts#184's note, where the TS `publisherPortion` reads `copublishers` off a supplement whose table does not materialize the empty collection. So the nil-guard branch of the issue's suggested direction had nothing to guard, and the live Ruby defect was the lossy render on the same face. **The check is the SHAPE, not a grammar route**: `Identifier.parse` walks the built object's `base` chain after `ensure_base` and raises `ParseError` (with `input:`/`flavor:` set, `parse_failure_cause` nil — the synthetic-raise shape) when a `SupplementIdentifier` layer holds both a `stage_iteration` and a synthetic self-base. One condition covers all three parse routes — the `supp_*` standalone branch (`IEC/AMD 1.2:2017`), the publisher-less plain route (`AMD 1.2:2017`, bound as `type_with_stage` + `stage_iteration`, no `supp_` keys) and a dotted layer under an undotted second supplement (`IEC/AMD 1.2:2017/COR 1:2018`) — and none of the neighbours that keep the dot on a printable layer: the single-document draft faces (`IEC CD 1.2:2017`, `IEC/DTR 1.2:2017` — not supplements, the dot rides the base and `parse(to_s) == parse` holds), the DAM-family decodes (`IEC/DAM 1.2` → `IEC 1.2/DAM 1`, dot on the base designation) and the on-base faces (a real base, `synthetic_base?` false). The undotted standalone faces keep parsing with their #693 residue renders (`IEC/AMD 1:2017` → `IEC Amd 1-1:2017`). BSI's delegation (`bsi/single_identifier.rb` → `Pubid::Iec.parse`) and `Pubid.parse` routing raise through the same entry. **`from_hash` deliberately still deserializes the shape** (rendering the undotted face as it always did): parse can no longer produce the hash, no stored row carries it, and rejecting deserialization would hard-break a consumer cache holding a pre-#727 parse — the residue is pinned, not chased. **No corpus round follows** (the shape is unattested; nothing moves to `pass/`). Locked by the new blocks in `spec/pubid/iec/dot_subnumber_spec.rb`: the 11 raising rows with the message, the input/flavor/cause shape of the synthetic raise, the keep-parsing rows (render + `from_hash(to_hash) ==` + re-parse idempotence), the undotted residue rows, and the deserialization residue. (hand-off: iec-standalone-dotted-reject.)
|
|
51
51
|
|
|
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
|
+
|
|
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
|
+
|
|
52
56
|
## pubid-scheme URN (issue #670; gaps closed by #687)
|
|
53
57
|
|
|
54
58
|
`lib/pubid/iec/pubid_urn_schema.rb` completes the partial schema the IEEE
|
data/lib/pubid/iec/identifier.rb
CHANGED
|
@@ -276,6 +276,7 @@ module Pubid
|
|
|
276
276
|
# (SupplementIdentifier#number).
|
|
277
277
|
id.ensure_base if id.is_a?(SupplementIdentifier)
|
|
278
278
|
reject_standalone_dotted_supplement(id, string)
|
|
279
|
+
reject_unrenderable_fragment(id, string)
|
|
279
280
|
id
|
|
280
281
|
end
|
|
281
282
|
|
|
@@ -313,6 +314,79 @@ module Pubid
|
|
|
313
314
|
end
|
|
314
315
|
end
|
|
315
316
|
|
|
317
|
+
# pubid#731: the fragment-ladder spellings ("CDFRAG", "DFRAG",
|
|
318
|
+
# "FDFRAG", "PRF Frag", "PWI Frag" and the NP/ANW/WD " Frag" siblings)
|
|
319
|
+
# parse into broken shapes, and one condition on the BUILT object
|
|
320
|
+
# covers every route (the check is the shape, not a grammar route —
|
|
321
|
+
# the same ruling as reject_standalone_dotted_supplement above):
|
|
322
|
+
#
|
|
323
|
+
# * a fragment built WITHOUT its base designation — the ladder token
|
|
324
|
+
# (or even the published "FRAG" token) in the primary type position.
|
|
325
|
+
# The input's designation, date and edition are dropped (the
|
|
326
|
+
# fragment delegates number/date to a base that is not there), the
|
|
327
|
+
# fragment renders bare "/FRAG" — which is itself unparseable — and
|
|
328
|
+
# the official URN is nil, so the shape silently corrupts
|
|
329
|
+
# downstream.
|
|
330
|
+
# * a fragment carrying a NON-PUBLISHED ladder stage — the token in a
|
|
331
|
+
# supplement layer ("IEC 60038/CDFRAG 1"). The renderer prints the
|
|
332
|
+
# published "/FRAG<n>" face only, so the stage facet is dropped at
|
|
333
|
+
# render and parse(to_s) != parse.
|
|
334
|
+
#
|
|
335
|
+
# No IEC source prints either shape: the gem fixtures, the testsuite
|
|
336
|
+
# ledger and the IEC/ISO Harmonized APIs data feeds (which carry an
|
|
337
|
+
# empty <FRAG/> element plus <stdFragment> for the number) attest only
|
|
338
|
+
# the on-base "/FRAG<n>" notation of the published fragment, and the
|
|
339
|
+
# stage-codes extract (data/iec/stage-codes.md) has no ladder rows. So
|
|
340
|
+
# the ladder spellings are rejected at parse — the #726/#727 ruling
|
|
341
|
+
# for unattested, un-renderable faces. from_hash stays open
|
|
342
|
+
# (stored-data compatibility): parse can no longer produce the shape,
|
|
343
|
+
# and no stored row carries it. The walk reaches a broken fragment
|
|
344
|
+
# under the wrappers ("IEC DFRAG 60038 (all parts)" is an AllParts
|
|
345
|
+
# over one; "IEC 60038/FRAG1 CSV" a Vap over a sound one — which
|
|
346
|
+
# passes).
|
|
347
|
+
FRAGMENT_LADDER_MESSAGE =
|
|
348
|
+
"the fragment-ladder spellings (\"CDFRAG\", \"DFRAG\", \"FDFRAG\", " \
|
|
349
|
+
"\"PRF Frag\", \"PWI Frag\" and the NP/ANW/WD \" Frag\" siblings) " \
|
|
350
|
+
"build a fragment identifier that cannot render or round-trip: no " \
|
|
351
|
+
"IEC source prints a fragment-ladder token (the attested fragment " \
|
|
352
|
+
"face is the on-base \"/FRAG<n>\" notation), and the built fragment " \
|
|
353
|
+
"either holds no base designation — rendering bare \"/FRAG\" with " \
|
|
354
|
+
"nothing attached and an empty official URN — or carries a " \
|
|
355
|
+
"non-published fragment stage with no printed token"
|
|
356
|
+
|
|
357
|
+
def self.reject_unrenderable_fragment(id, input)
|
|
358
|
+
node = id
|
|
359
|
+
while node
|
|
360
|
+
reject_fragment_ladder_shape(node, input)
|
|
361
|
+
node = descend_wrapper(node)
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# The rejected fragment shape: either facet of the ladder spellings.
|
|
366
|
+
# A sound fragment (a base AND the published stage) passes; a nil
|
|
367
|
+
# stage also fails the check, defensively — no parse route builds one.
|
|
368
|
+
def self.reject_fragment_ladder_shape(node, input)
|
|
369
|
+
return unless node.is_a?(Identifiers::FragmentIdentifier)
|
|
370
|
+
return if node.base && node.typed_stage&.stage_code.to_s == "published"
|
|
371
|
+
|
|
372
|
+
raise Pubid::Errors::ParseError.new(
|
|
373
|
+
FRAGMENT_LADDER_MESSAGE, nil,
|
|
374
|
+
input: input, flavor: "iec"
|
|
375
|
+
)
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# The next node the walk reaches: a wrapper's child. Supplements,
|
|
379
|
+
# Vap, Sheet and Fragment carry it in `base`; the AllParts and
|
|
380
|
+
# Consolidated members in `identifiers`. A leaf resolves neither and
|
|
381
|
+
# ends the walk.
|
|
382
|
+
def self.descend_wrapper(node)
|
|
383
|
+
if node.class.attributes.key?(:base)
|
|
384
|
+
node.base
|
|
385
|
+
elsif node.class.attributes.key?(:identifiers)
|
|
386
|
+
node.identifiers.first
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
|
|
316
390
|
# from_hash is the shared polymorphic dispatch on Pubid::Identifier.
|
|
317
391
|
# IEC_TYPE_MAP remains as the key_value polymorphic_map.
|
|
318
392
|
end
|
|
@@ -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