pubid 2.0.0.pre.alpha.7 → 2.0.0.pre.alpha.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28589e7efce00bb93f0cabd35bb4169210a69396e1da6e1869c51fec7dd80450
4
- data.tar.gz: 181f33478261d666dc3bf93488326f0c88d999da0d958822bc49b5e9b113b5bd
3
+ metadata.gz: 5987bc5bdc86f9fdf02244f7b5e1abbff308a0d7a5ae88c9ea6e26d20f316ec4
4
+ data.tar.gz: d768df87e4d1b06d0be0dbcc72dab8d5e5eda5476b4157bbf754c5863a2ad1f0
5
5
  SHA512:
6
- metadata.gz: 23924b813af8f851b79fcb39ff90133df69f9219559d4bbc15f6bd46540c63ef4bcd5ba5eccf1ba013a774b7c8e4b0bfdb11d9fb308db0ac1a2c1df8f005a0b6
7
- data.tar.gz: 38d8b970836cfb889c4b1bef346daac97b340656e652ab4d1cd687e7ff7436c73c976404204be54ac2e18ab37cd6982d634e4b5d9a08255ae400d5418b2023e3
6
+ metadata.gz: 7214ebd2c2eac905def41dd1b4304ef299224378e703ab3d9883022b8fd2770adafd08c8e697d759a9ae6e2a984ff54927051090039c8b20cd56f98ae21bc3b8
7
+ data.tar.gz: 32227b91be942f7f59c758685ea7cbe105845eaa758c29984d43f81adeaf33321e68f6b4f7a8d9d71709f3395acf7011d008e1a2983ae43a61610b267c785d0e
data/README.adoc CHANGED
@@ -1,54 +1,15 @@
1
1
  = PubID: Interoperable identifiers for information resources
2
2
 
3
- image:https://img.shields.io/gem/v/pubid-core.svg["pubid-core Gem Version", link="https://rubygems.org/gems/pubid-core"]
3
+ image:https://img.shields.io/gem/v/pubid.svg["pubid Gem Version", link="https://rubygems.org/gems/pubid"]
4
4
  image:https://github.com/metanorma/pubid/actions/workflows/rake.yml/badge.svg["Build Status", link="https://github.com/metanorma/pubid/actions/workflows/rake.yml"]
5
5
  image:https://img.shields.io/github/issues-pr-raw/metanorma/pubid.svg["Pull Requests", link="https://github.com/metanorma/pubid/pulls"]
6
6
  image:https://img.shields.io/github/commits-since/metanorma/pubid/latest.svg["Commits since latest",link="https://github.com/metanorma/pubid/releases"]
7
7
 
8
- == Badges
9
-
10
- [cols="3*", options="header"]
11
- |===
12
- | Core & Meta | Standards Organizations | Regional Standards
13
-
14
- | pubid image:https://img.shields.io/gem/v/pubid.svg["pubid", link="https://rubygems.org/gems/pubid"]
15
- | pubid-iso image:https://img.shields.io/gem/v/pubid-iso.svg["pubid-iso", link="https://rubygems.org/gems/pubid-iso"]
16
- | pubid-cen image:https://img.shields.io/gem/v/pubid-cen.svg["pubid-cen", link="https://rubygems.org/gems/pubid-cen"]
17
-
18
- | pubid-core image:https://img.shields.io/gem/v/pubid-core.svg["pubid-core", link="https://rubygems.org/gems/pubid-core"]
19
- | pubid-iec image:https://img.shields.io/gem/v/pubid-iec.svg["pubid-iec", link="https://rubygems.org/gems/pubid-iec"]
20
- | pubid-bsi image:https://img.shields.io/gem/v/pubid-bsi.svg["pubid-bsi", link="https://rubygems.org/gems/pubid-bsi"]
21
-
22
- |
23
- | pubid-ieee image:https://img.shields.io/gem/v/pubid-ieee.svg["pubid-ieee", link="https://rubygems.org/gems/pubid-ieee"]
24
- | pubid-jis image:https://img.shields.io/gem/v/pubid-jis.svg["pubid-jis", link="https://rubygems.org/gems/pubid-jis"]
25
-
26
- |
27
- | pubid-nist image:https://img.shields.io/gem/v/pubid-nist.svg["pubid-nist", link="https://rubygems.org/gems/pubid-nist"]
28
- |
29
-
30
- |
31
- | pubid-etsi image:https://img.shields.io/gem/v/pubid-etsi.svg["pubid-etsi", link="https://rubygems.org/gems/pubid-etsi"]
32
- |
33
-
34
- |
35
- | pubid-itu image:https://img.shields.io/gem/v/pubid-itu.svg["pubid-itu", link="https://rubygems.org/gems/pubid-itu"]
36
- |
37
-
38
- |
39
- | pubid-ccsds image:https://img.shields.io/gem/v/pubid-ccsds.svg["pubid-ccsds", link="https://rubygems.org/gems/pubid-ccsds"]
40
- |
41
-
42
- |
43
- | pubid-plateau image:https://img.shields.io/gem/v/pubid-plateau.svg["pubid-plateau", link="https://rubygems.org/gems/pubid-plateau"]
44
- |
45
- |===
46
-
47
8
  == Quick Start
48
9
 
49
10
  [source,ruby]
50
11
  ----
51
- gem install pubid-core
12
+ gem install pubid
52
13
 
53
14
  require 'pubid/iso'
54
15
 
@@ -678,15 +639,13 @@ lib/tasks/export.rake # Rake tasks: export:website_data, export:a
678
639
 
679
640
  == Repository
680
641
 
681
- This repository is a monorepo for the PubID Ruby gems, which implement the PubID
642
+ This repository provides the single `pubid` Ruby gem, which implements the PubID
682
643
  identifier data model and its various components.
683
644
 
684
- The PubID Ruby gems implement identifiers from multiple standards organizations,
685
- making it easier for developers to work with them in their applications.
686
-
687
- This repository contains all the `pubid-*` gems consolidated into a single
688
- monorepo for easier development and maintenance while preserving individual gem
689
- releases.
645
+ The `pubid` gem implements identifiers from multiple standards organizations,
646
+ making it easier for developers to work with them in their applications. All 22+
647
+ supported flavors (ISO, IEC, NIST, IEEE, …) live under `lib/pubid/{flavor}/` and
648
+ ship together in the one gem.
690
649
 
691
650
  == Structure
692
651
 
@@ -711,11 +670,11 @@ The repository is organized as follows:
711
670
  ├── spec/ # Tests
712
671
  │ ├── pubid/ # Per-flavor tests
713
672
  │ ├── fixtures/ # Bulk test fixtures
714
- │ └── integration/ # Cross-gem tests
673
+ │ └── integration/ # Cross-flavor integration tests
715
674
  ├── docs/ # Documentation
716
675
  ├── .github/workflows/ # CI/CD workflows
717
676
  ├── Gemfile # Root Gemfile for development
718
- ├── Rakefile # Monorepo management tasks
677
+ ├── Rakefile # Test, lint, build, and release tasks
719
678
  ├── .rubocop.yml # Shared RuboCop configuration
720
679
  └── LICENSE.txt # Shared license
721
680
  ----
@@ -32,8 +32,10 @@ module Pubid
32
32
  { key: :annex, title: "Annex", short: nil }
33
33
  end
34
34
 
35
- private
36
-
35
+ # Public because lutaml-model invokes the `to:` / `from:` mapping
36
+ # methods via public_send during (de)serialization — a `private`
37
+ # section here raises NoMethodError on to_hash (matches the public
38
+ # visibility of Oiml::SupplementIdentifier's identical helpers).
37
39
  def base_identifier_to_kv(model, doc)
38
40
  base = model.base_identifier
39
41
  return unless base
@@ -116,7 +116,9 @@ module Pubid
116
116
  str("AI") | str("CIRC") | str("CS") | str("CSM") |
117
117
  str("CRPL") | str("LCIRC") | str("OWMWP") | str("PC") | str("RPT") |
118
118
  str("SIBS") | str("TIBM") | str("TTB") | str("EAB") |
119
- str("JPCRD") | str("JRES")
119
+ str("JPCRD") | str("JRES") |
120
+ # NEW - CHIPS Act, NWIRP, and Research Brief series
121
+ str("CHIPS") | str("NWIRP") | str("RB")
120
122
  ).as(:series)
121
123
  end
122
124
 
@@ -18,6 +18,7 @@ module Pubid
18
18
  "GCR", "AMS", "BSS", "BMS", "BH", "MONO", "MP",
19
19
  "NCSTAR", "NSRDS", "CSWP", "VTS", "AI", "OWMWP",
20
20
  "PC", "RPT", "SIBS", "TIBM", "TTB", "EAB",
21
+ "CHIPS", "NWIRP", "RB",
21
22
  "JPCRD", "JRES", "CIS", "HR", "IRPL", "IP",
22
23
  "LC", "PS", "LCIRC",
23
24
  # Compound series
data/lib/pubid/nist.rb CHANGED
@@ -13,6 +13,7 @@ module Pubid
13
13
  NIST NBS
14
14
  AMS VTS BSS BMS BH FIPS GCR HB MONO MP NCSTAR NSRDS IR SP TN CSWP
15
15
  AI CIRC CS CSM CRPL LCIRC OWMWP PC RPT SIBS TIBM TTB EAB JPCRD JRES
16
+ CHIPS NWIRP RB
16
17
  ].freeze
17
18
 
18
19
  autoload :Builder, "#{__dir__}/nist/builder"
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.7"
4
+ VERSION = "2.0.0.pre.alpha.8"
5
5
  end
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.7
4
+ version: 2.0.0.pre.alpha.8
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-07-08 00:00:00.000000000 Z
11
+ date: 2026-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model