pubid 2.0.60 → 2.0.61
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/ieee/CLAUDE.md +2 -0
- data/lib/pubid/ieee/parser.rb +1 -3
- data/lib/pubid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41d6c91ea1dea593d6de04aad4a7751c38ed41fedf596db146c3eb152feb8b15
|
|
4
|
+
data.tar.gz: a0783a32cb87fa70d8b7fd918646adacf33fcda24a494239e85d2075d1325cc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 162f657e3c902bdbee59537e44a8cd9dcd40f1313f68ca4f544022b0c1f5652b18b3b566e46105dae9895975e082cb9ec079270a9074ca3f870943a9f1a38e85
|
|
7
|
+
data.tar.gz: 287e03e700752dddf35e754dbb1c4783774f69f177beb517bceb2734b75d662c2013451275320ab0345acb3eaceb5a064d2a9c976cf77836f1dfb3fb3ec5ed40
|
data/lib/pubid/ieee/CLAUDE.md
CHANGED
|
@@ -107,3 +107,5 @@ The lesson BSI paid for: a wrapper's hand-written `#number` delegation makes the
|
|
|
107
107
|
- **The relaton-data-ieee#10 grammar captures (pubid-grammar `f7b2842`, artifact checksum `sha256:c4fa66bd…fa11`).** Three captures, three different amounts of gem work. **(1) Dotted-triple draft** — `draft_version_composite` now holds `"6.7.2"`; no builder change. 23 IEEE corpus drafts that rendered with the draft dropped (`IEEE P1547/D6.7.2, May 2017` → `IEEE P1547`) or cut to one segment (`IEEE Unapproved P754/D1`) now keep it. Two of the 23 were pinned lossy by specs: `catalogue_alias_spec.rb`'s "fabricated D1 for a date-only Draft Std" really was a triple draft the grammar had dropped. **(2) Corrigendum month `cor_month`** — the grammar captures it in the nested `corrigendum:` hash and at top level for `corrigendum_identifier`; the builder reads it at all three corrigendum sites plus `rename_supplement_keys`, onto the `month` that `Corrigendum` already inherits (so `exclude(:year)`, the pubid URN atom `month` and the official URN's `month_day_component` needed no change). The renderer prints `-MM` after the corrigendum year, and `mr_supplement_suffix` writes `cor.1.2019-05` so two monthly corrigenda do not share a slug. Before, `IEEE Std 802.3-2018/Cor 1-2019-05` parsed and silently dropped `05`. **(3) Bare-IEEE colon year** — the grammar rule `ieee_colon_year_identifier` was unreachable: `Parser.normalize_input`'s "add missing Std" rewrite turned `IEEE 8802-1AE:2013` into `IEEE Std 8802-1AE:2013`, which the grammar rejects by design. The rewrite now skips a number followed by `:YYYY`. The rendered face is the canonical dash form, `IEEE Std 8802-1AE-2013/Amd 1-2015` (a ruling: no spelling flag, same as `IEEE Std 24748-3:2012` → `-2012`). A colon year with a corrigendum (`IEEE 8802-1AE:2013/Cor 1-2014`) still fails. Locked by `dotted_draft_dash_date_spec.rb`, `corrigendum_month_spec.rb`, `colon_year_spec.rb`.
|
|
108
108
|
|
|
109
109
|
- **The document graph (issue #806)**: the parsed relationship faces become typed edges on the additive `relations` wire key — `Components::Relation` (type + targets + the face's `intermediate_amendments`/`approved_amendments_flag`), derived once at the construction tail (`Identifier#derive_relations!`; IEEE's hand-rolled `initialize` calls it after its assignment loop). Face types: `supersedes`/`revision_of`/`amendment_to` map to the canonical verbs `supersedes`/`revises`/`amends`; every other attested type (reaffirmation_of, redesignation_of, the draft variants) rides verbatim. Two repairs the edges forced: **(1)** the "and its approved amendments" / "including all approved amendments" tail of a face used to degrade into a junk parenthetical target (`IEEE Std (its approved amendments)`) — `Builder#parse_related_identifiers` now cuts the tail into the `approved_amendments_flag` the Relationship already modeled (`to_s` and `to_hash` are unchanged: the narrative was never rendered and only `relationship_type` serialized); **(2)** the derivation filters two kinds of target that cannot sit on the wire — the degraded parenthetical stand-ins of comma-list faces, and targets whose shape lutaml's collection cast resolves onto another class — so the edge states only restorable documents and the face keeps everything on `relationships`, exactly as before. Equality skips `relations` (`equality_ignored`), so a parsed face and a stored row that keeps only the face type stay one document to a search; the URN carries the edges as the `edges-` atom (`:edges` kind — `edges-<type>-(<targets>)[-(<intermediates>)][-approved]`, bracket-nested one level deeper than the other nested atoms).
|
|
110
|
+
|
|
111
|
+
- **The input marks `™` and `®` are stripped before the parse (relaton/relaton-api-js#188).** The api.relaton.org IEEE rows spell the mark in the number (`IEEE Std 1003.1®-2017`), and the gem raised `ParseError` on 96 of 100 sampled rows. `Parser.normalize_input` already removed `™`; it now removes both with one `gsub(/[™®]/, "")`, at the same place where pubid-ts strips them (`src/flavors/ieee/preprocessor.ts`), so the two keep parity. The mark is not identity: `to_s(trademark: true)` derives it again from the number (`REGISTERED_SERIES`), so `1003.1®` renders `1003.1™`. The `(R)` spelling of `NESC(R)` and `Code(R)` is a different string and is not touched. One consequence is accepted for parity: NESC keeps its mark as identity (`registered: true` from `(R)`), but `2017 NESC® Handbook` parses as the unregistered `NESC` form, not as `NESC(R)`. No corpus row spells `NESC®`, and the input failed to parse before. To map it to `(R)` instead, change pubid-ts in the same release. The AIEE route strips the mark through the `parse_single` retry in `identifiers/base.rb`; a direct `Aiee::Identifier.parse` still rejects both marks. Locked by `spec/pubid/ieee/registered_mark_input_spec.rb`.
|
data/lib/pubid/ieee/parser.rb
CHANGED
|
@@ -187,9 +187,7 @@ module Pubid
|
|
|
187
187
|
'\1\2'
|
|
188
188
|
)
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
# "C57.110™-2018" → "C57.110-2018"
|
|
192
|
-
cleaned = cleaned.gsub(/™/, "")
|
|
190
|
+
cleaned = cleaned.gsub(/[™®]/, "")
|
|
193
191
|
|
|
194
192
|
# NEW Phase 1 (Session 141): Fix specific year typo
|
|
195
193
|
# "19969" → "1969" (very specific pattern, won't affect other text)
|
data/lib/pubid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +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.61
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|