pubid 2.0.0.pre.alpha.15 → 2.0.0.pre.alpha.16
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/version.rb +1 -1
- data/lib/pubid.rb +12 -7
- 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: d48f4057c1c7edaa794926b59321cb7f423b77e81527bd1c8f6b6e92c9ef0d5c
|
|
4
|
+
data.tar.gz: 8cdcfce38227c2e1808784e7129abc6043a29dd7e39eed7912336639df8fa6e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c52d033d0b2236355302b35c4c0ff9d8689309130bb875ce0e5cf1bb4bb50d55cd43936b2c1551048e7dcdad12833f329a45067ab507ba34f9a22f556eb70c3
|
|
7
|
+
data.tar.gz: 2144b480e123f43976eb9da8f16d9eef91c04b41ce7998f5c735cf95fab58cc9cbbb84d8be07c289239c0f5cedf07a200d20f1b32cb1041e8893d00ec9734c74
|
data/lib/pubid/version.rb
CHANGED
data/lib/pubid.rb
CHANGED
|
@@ -380,13 +380,18 @@ module Pubid
|
|
|
380
380
|
# it will annotate a parsed id.
|
|
381
381
|
return parsed if parsed.to_s == string
|
|
382
382
|
|
|
383
|
-
# A non-exact parse is still usable
|
|
384
|
-
#
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
#
|
|
388
|
-
#
|
|
389
|
-
#
|
|
383
|
+
# A non-exact parse is still usable, but only from a flavor with an
|
|
384
|
+
# actual claim on the string — several flavors legitimately normalise
|
|
385
|
+
# on render, so the round trip is a preference, not a requirement (OGC
|
|
386
|
+
# prints `06-121r9` for `OGC 06-121r9`, and 32 ASHRAE / ASME / CSA /
|
|
387
|
+
# IEEE identifiers route only this way). What it must NOT come from is
|
|
388
|
+
# a flavor without a claim, whatever the claim-miss looks like: a
|
|
389
|
+
# flavor that accepts anything (`iec.60050` came back as `IANA
|
|
390
|
+
# iec.60050`), or a flavor whose grammar only parses the string by
|
|
391
|
+
# defaulting what the input never spelled (iec answers `CIE` with
|
|
392
|
+
# `IEC CIE`, astm answers `123` with `ASTM 123`). Reporting that no
|
|
393
|
+
# flavor could be determined beats inventing one.
|
|
394
|
+
next unless prefix_owners.include?(mod)
|
|
390
395
|
fallback ||= parsed unless accepts_anything?(mod)
|
|
391
396
|
end
|
|
392
397
|
|
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.0.pre.alpha.
|
|
4
|
+
version: 2.0.0.pre.alpha.16
|
|
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-10-
|
|
11
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|