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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pubid/version.rb +1 -1
  3. data/lib/pubid.rb +12 -7
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78a69f395f89496c03abe8789394cae7b6d75215eac9f7507e3b71fde42e71ec
4
- data.tar.gz: 8ff551ebaa0b53a9d289dae31b2bb189eccfd267a0d056bcf90264df0edfeb4c
3
+ metadata.gz: d48f4057c1c7edaa794926b59321cb7f423b77e81527bd1c8f6b6e92c9ef0d5c
4
+ data.tar.gz: 8cdcfce38227c2e1808784e7129abc6043a29dd7e39eed7912336639df8fa6e8
5
5
  SHA512:
6
- metadata.gz: da2f48ba45cbd68d968eeba20585a2458b48c443a72ff73f3facecb1ebad38e725b29a8b55b9e8692dcd7022713ffb6e5c574043f4a927083a3e5eb7ca8940a5
7
- data.tar.gz: 9d5fcc6861e258ab7c69f9339820553a5e760cb4d0eab87aab284b9b27dd53be58b2583cc34bf4a8e9589da39deae3f745da9fea7efee4200082d504531b9dd7
6
+ metadata.gz: 0c52d033d0b2236355302b35c4c0ff9d8689309130bb875ce0e5cf1bb4bb50d55cd43936b2c1551048e7dcdad12833f329a45067ab507ba34f9a22f556eb70c3
7
+ data.tar.gz: 2144b480e123f43976eb9da8f16d9eef91c04b41ce7998f5c735cf95fab58cc9cbbb84d8be07c289239c0f5cedf07a200d20f1b32cb1041e8893d00ec9734c74
data/lib/pubid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.0.pre.alpha.15"
4
+ VERSION = "2.0.0.pre.alpha.16"
5
5
  end
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 — several flavors legitimately
384
- # normalise on render, so the round trip is a preference, not a
385
- # requirement (OGC prints `06-121r9` for `OGC 06-121r9`, and 32 ASHRAE /
386
- # ASME / CSA / IEEE identifiers route only this way). What it must NOT
387
- # come from is a flavor that accepts anything: that is how `iec.60050`
388
- # came back as `IANA iec.60050`. Reporting that no flavor could be
389
- # determined beats inventing one.
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.15
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-01 00:00:00.000000000 Z
11
+ date: 2026-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model