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 +4 -4
- data/README.adoc +9 -50
- data/lib/pubid/iala/identifiers/annex.rb +4 -2
- data/lib/pubid/nist/parser.rb +3 -1
- data/lib/pubid/nist/router.rb +1 -0
- data/lib/pubid/nist.rb +1 -0
- 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: 5987bc5bdc86f9fdf02244f7b5e1abbff308a0d7a5ae88c9ea6e26d20f316ec4
|
|
4
|
+
data.tar.gz: d768df87e4d1b06d0be0dbcc72dab8d5e5eda5476b4157bbf754c5863a2ad1f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
685
|
-
making it easier for developers to work with them in their applications.
|
|
686
|
-
|
|
687
|
-
|
|
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-
|
|
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 #
|
|
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
|
-
|
|
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
|
data/lib/pubid/nist/parser.rb
CHANGED
|
@@ -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
|
|
data/lib/pubid/nist/router.rb
CHANGED
|
@@ -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
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.0.pre.alpha.
|
|
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-
|
|
11
|
+
date: 2026-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|