pubid 2.0.9 → 2.0.10
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/adobe/pubid_urn_schema.rb +14 -0
- data/lib/pubid/adobe.rb +1 -0
- data/lib/pubid/calconnect/pubid_urn_schema.rb +20 -0
- data/lib/pubid/calconnect.rb +1 -0
- data/lib/pubid/ccsds/pubid_urn_schema.rb +22 -0
- data/lib/pubid/ccsds.rb +1 -0
- data/lib/pubid/easc/pubid_urn_schema.rb +20 -0
- data/lib/pubid/easc.rb +1 -0
- data/lib/pubid/ecma/pubid_urn_schema.rb +21 -0
- data/lib/pubid/ecma.rb +1 -0
- data/lib/pubid/evs/pubid_urn_schema.rb +35 -0
- data/lib/pubid/evs.rb +1 -0
- data/lib/pubid/iala/pubid_urn_schema.rb +30 -0
- data/lib/pubid/iala.rb +1 -0
- data/lib/pubid/iana/pubid_urn_schema.rb +17 -0
- data/lib/pubid/iana.rb +1 -0
- data/lib/pubid/oasis/pubid_urn_schema.rb +21 -0
- data/lib/pubid/oasis.rb +1 -0
- data/lib/pubid/ogc/pubid_urn_schema.rb +18 -0
- data/lib/pubid/ogc.rb +1 -0
- data/lib/pubid/version.rb +1 -1
- data/lib/pubid/w3c/pubid_urn_schema.rb +27 -0
- data/lib/pubid/w3c.rb +1 -0
- data/lib/pubid/xsf/pubid_urn_schema.rb +14 -0
- data/lib/pubid/xsf.rb +1 -0
- metadata +13 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c304081718b1785ddaa948a20b017e37676ff3dc54ed2548eae57efdf6c21fdf
|
|
4
|
+
data.tar.gz: 0fb5b401e28fc704a0f99c4f034ccc9eb33857df4e28fb1956e2f923ab1048cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bbfeb56e3bae793cf01371ed43638e843fd8a22d297b2694dc7058f613ea4747d52789b44f1c442678016687d56a7d7a7500ddf51830dc7a037f63948f05c26
|
|
7
|
+
data.tar.gz: e0343e84825edff0e9cc921f67d87430a3a9071f44fbd456dee79c39bc8a2631d4c899f2823619fe3d2e7622f27435828f73f1836f6903e1c5b6ab57c38fe5ff
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Adobe
|
|
5
|
+
# The pubid-scheme URN of adobe (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("adobe") do
|
|
10
|
+
type "pubid:adobe:publication", "pub", core: []
|
|
11
|
+
type "pubid:adobe:tech-note", "technote"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/lib/pubid/adobe.rb
CHANGED
|
@@ -19,6 +19,7 @@ module Pubid
|
|
|
19
19
|
autoload :Renderer, "#{__dir__}/adobe/renderer"
|
|
20
20
|
autoload :UrnGenerator, "#{__dir__}/adobe/urn_generator"
|
|
21
21
|
autoload :UrnParser, "#{__dir__}/adobe/urn_parser"
|
|
22
|
+
autoload :PubidUrnSchema, "#{__dir__}/adobe/pubid_urn_schema"
|
|
22
23
|
|
|
23
24
|
# Parse an Adobe identifier string into an identifier object.
|
|
24
25
|
# @param identifier [String]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Calconnect
|
|
5
|
+
# The pubid-scheme URN of calconnect (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("calconnect") do
|
|
10
|
+
atom "series", "series"
|
|
11
|
+
atom "year", "year"
|
|
12
|
+
atom "month", "month"
|
|
13
|
+
atom "day", "day"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
type "pubid:calconnect:identifier", "id"
|
|
17
|
+
type "pubid:calconnect:standard", "std"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/lib/pubid/calconnect.rb
CHANGED
|
@@ -22,6 +22,7 @@ module Pubid
|
|
|
22
22
|
autoload :Renderer, "#{__dir__}/calconnect/renderer"
|
|
23
23
|
autoload :UrnGenerator, "#{__dir__}/calconnect/urn_generator"
|
|
24
24
|
autoload :UrnParser, "#{__dir__}/calconnect/urn_parser"
|
|
25
|
+
autoload :PubidUrnSchema, "#{__dir__}/calconnect/pubid_urn_schema"
|
|
25
26
|
|
|
26
27
|
# Parse a CalConnect identifier string
|
|
27
28
|
def self.parse(identifier)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Ccsds
|
|
5
|
+
# The pubid-scheme URN of ccsds (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("ccsds") do
|
|
10
|
+
atom "type", "type"
|
|
11
|
+
atom "part", "part"
|
|
12
|
+
atom "edition", "ed"
|
|
13
|
+
atom "language", "lang"
|
|
14
|
+
atom "suffix", "suffix"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
type "pubid:ccsds:base", "base"
|
|
18
|
+
type "pubid:ccsds:corrigendum", "cor"
|
|
19
|
+
type "pubid:ccsds:identifier", "id"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/pubid/ccsds.rb
CHANGED
|
@@ -16,6 +16,7 @@ module Pubid
|
|
|
16
16
|
autoload :SupplementIdentifier, "#{__dir__}/ccsds/supplement_identifier"
|
|
17
17
|
autoload :UrnGenerator, "#{__dir__}/ccsds/urn_generator"
|
|
18
18
|
autoload :UrnParser, "#{__dir__}/ccsds/urn_parser"
|
|
19
|
+
autoload :PubidUrnSchema, "#{__dir__}/ccsds/pubid_urn_schema"
|
|
19
20
|
|
|
20
21
|
def self.parse(identifier)
|
|
21
22
|
Identifier.parse(identifier)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Easc
|
|
5
|
+
# The pubid-scheme URN of easc (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("easc") do
|
|
10
|
+
atom "series", "series"
|
|
11
|
+
atom "year", "year"
|
|
12
|
+
atom "variant", "variant"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
type "pubid:easc:identifier", "id"
|
|
16
|
+
type "pubid:easc:pmg", "pmg"
|
|
17
|
+
type "pubid:easc:rmg", "rmg"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/lib/pubid/easc.rb
CHANGED
|
@@ -18,6 +18,7 @@ module Pubid
|
|
|
18
18
|
autoload :Renderer, "#{__dir__}/easc/renderer"
|
|
19
19
|
autoload :UrnGenerator, "#{__dir__}/easc/urn_generator"
|
|
20
20
|
autoload :UrnParser, "#{__dir__}/easc/urn_parser"
|
|
21
|
+
autoload :PubidUrnSchema, "#{__dir__}/easc/pubid_urn_schema"
|
|
21
22
|
|
|
22
23
|
# @param identifier [String]
|
|
23
24
|
# @return [Pubid::Easc::Identifier]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Ecma
|
|
5
|
+
# The pubid-scheme URN of ecma (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("ecma") do
|
|
10
|
+
atom "part", "part"
|
|
11
|
+
atom "volume", "vol"
|
|
12
|
+
atom "edition", "ed"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
type "pubid:ecma:identifier", "id"
|
|
16
|
+
type "pubid:ecma:memento", "memento"
|
|
17
|
+
type "pubid:ecma:standard", "std"
|
|
18
|
+
type "pubid:ecma:technical-report", "tr"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/pubid/ecma.rb
CHANGED
|
@@ -16,6 +16,7 @@ module Pubid
|
|
|
16
16
|
autoload :Renderer, "#{__dir__}/ecma/renderer"
|
|
17
17
|
autoload :UrnGenerator, "#{__dir__}/ecma/urn_generator"
|
|
18
18
|
autoload :UrnParser, "#{__dir__}/ecma/urn_parser"
|
|
19
|
+
autoload :PubidUrnSchema, "#{__dir__}/ecma/pubid_urn_schema"
|
|
19
20
|
|
|
20
21
|
# Parse an ECMA identifier string
|
|
21
22
|
def self.parse(identifier)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Evs
|
|
5
|
+
# The pubid-scheme URN of evs (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("evs") do
|
|
10
|
+
atom "part", "part"
|
|
11
|
+
atom "year", "year"
|
|
12
|
+
atom "language", "lang"
|
|
13
|
+
atom "amd_kind", "amdkind"
|
|
14
|
+
atom "amd_number", "amdnumber"
|
|
15
|
+
atom "amd_year", "amdyear"
|
|
16
|
+
atom "cor_kind", "corkind"
|
|
17
|
+
atom "cor_year", "coryear"
|
|
18
|
+
atom "evs_type", "evstype"
|
|
19
|
+
atom "intl_org", "intlorg"
|
|
20
|
+
atom "na_year", "nayear"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
facet "separator", "separator"
|
|
24
|
+
facet "amd_separator", "amdseparator"
|
|
25
|
+
facet "cor_separator", "corseparator"
|
|
26
|
+
facet "na_separator", "naseparator"
|
|
27
|
+
facet "draft_prefix", "draftprefix", kind: :bool
|
|
28
|
+
|
|
29
|
+
type "pubid:evs:estonian-standard", "es"
|
|
30
|
+
type "pubid:evs:identifier", "id"
|
|
31
|
+
type "pubid:evs:international-adoption", "ia"
|
|
32
|
+
type "pubid:evs:national-adoption", "na"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/lib/pubid/evs.rb
CHANGED
|
@@ -22,6 +22,7 @@ module Pubid
|
|
|
22
22
|
autoload :Renderer, "#{__dir__}/evs/renderer"
|
|
23
23
|
autoload :UrnGenerator, "#{__dir__}/evs/urn_generator"
|
|
24
24
|
autoload :UrnParser, "#{__dir__}/evs/urn_parser"
|
|
25
|
+
autoload :PubidUrnSchema, "#{__dir__}/evs/pubid_urn_schema"
|
|
25
26
|
|
|
26
27
|
def self.parse(identifier)
|
|
27
28
|
unless identifier.is_a?(String)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Iala
|
|
5
|
+
# The pubid-scheme URN of iala (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("iala") do
|
|
10
|
+
atom "edition", "ed"
|
|
11
|
+
atom "language", "lang"
|
|
12
|
+
atom "annex_form", "annexform"
|
|
13
|
+
atom "letter", "letter"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
type "pubid:iala:advice", "advice"
|
|
17
|
+
type "pubid:iala:annex", "annex"
|
|
18
|
+
type "pubid:iala:general-assembly", "ga"
|
|
19
|
+
type "pubid:iala:guideline", "g"
|
|
20
|
+
type "pubid:iala:identifier", "id"
|
|
21
|
+
type "pubid:iala:letter", "letter"
|
|
22
|
+
type "pubid:iala:manual", "manual"
|
|
23
|
+
type "pubid:iala:model-course", "mc"
|
|
24
|
+
type "pubid:iala:recommendation", "rec"
|
|
25
|
+
type "pubid:iala:report", "rpt"
|
|
26
|
+
type "pubid:iala:resolution", "r"
|
|
27
|
+
type "pubid:iala:standard", "std"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/lib/pubid/iala.rb
CHANGED
|
@@ -15,6 +15,7 @@ module Pubid
|
|
|
15
15
|
autoload :Renderer, "#{__dir__}/iala/renderer"
|
|
16
16
|
autoload :UrnGenerator, "#{__dir__}/iala/urn_generator"
|
|
17
17
|
autoload :UrnParser, "#{__dir__}/iala/urn_parser"
|
|
18
|
+
autoload :PubidUrnSchema, "#{__dir__}/iala/pubid_urn_schema"
|
|
18
19
|
|
|
19
20
|
# Parse an IALA identifier string into an identifier object.
|
|
20
21
|
# @param identifier [String] The IALA identifier string to parse
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Iana
|
|
5
|
+
# The pubid-scheme URN of iana (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("iana") do
|
|
10
|
+
atom "sub_registry", "subregistry"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
type "pubid:iana:identifier", "id", core: []
|
|
14
|
+
type "pubid:iana:registry", "registry"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/pubid/iana.rb
CHANGED
|
@@ -18,6 +18,7 @@ module Pubid
|
|
|
18
18
|
autoload :Renderer, "#{__dir__}/iana/renderer"
|
|
19
19
|
autoload :UrnGenerator, "#{__dir__}/iana/urn_generator"
|
|
20
20
|
autoload :UrnParser, "#{__dir__}/iana/urn_parser"
|
|
21
|
+
autoload :PubidUrnSchema, "#{__dir__}/iana/pubid_urn_schema"
|
|
21
22
|
|
|
22
23
|
# Parse an IANA identifier string
|
|
23
24
|
def self.parse(identifier)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Oasis
|
|
5
|
+
# The pubid-scheme URN of oasis (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("oasis") do
|
|
10
|
+
atom "part", "part"
|
|
11
|
+
atom "version", "v"
|
|
12
|
+
atom "stage", "stage"
|
|
13
|
+
atom "label", "label"
|
|
14
|
+
atom "original", "original"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
type "pubid:oasis:identifier", "id"
|
|
18
|
+
type "pubid:oasis:standard", "std"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/pubid/oasis.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Pubid
|
|
|
17
17
|
autoload :Renderer, "#{__dir__}/oasis/renderer"
|
|
18
18
|
autoload :UrnGenerator, "#{__dir__}/oasis/urn_generator"
|
|
19
19
|
autoload :UrnParser, "#{__dir__}/oasis/urn_parser"
|
|
20
|
+
autoload :PubidUrnSchema, "#{__dir__}/oasis/pubid_urn_schema"
|
|
20
21
|
|
|
21
22
|
# Parse an OASIS identifier string
|
|
22
23
|
def self.parse(identifier)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Ogc
|
|
5
|
+
# The pubid-scheme URN of ogc (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("ogc") do
|
|
10
|
+
atom "year", "year"
|
|
11
|
+
atom "revision", "rev"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
type "pubid:ogc:document", "document"
|
|
15
|
+
type "pubid:ogc:identifier", "id"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/pubid/ogc.rb
CHANGED
|
@@ -20,6 +20,7 @@ module Pubid
|
|
|
20
20
|
autoload :Renderer, "#{__dir__}/ogc/renderer"
|
|
21
21
|
autoload :UrnGenerator, "#{__dir__}/ogc/urn_generator"
|
|
22
22
|
autoload :UrnParser, "#{__dir__}/ogc/urn_parser"
|
|
23
|
+
autoload :PubidUrnSchema, "#{__dir__}/ogc/pubid_urn_schema"
|
|
23
24
|
|
|
24
25
|
# Parse an OGC identifier string
|
|
25
26
|
def self.parse(identifier)
|
data/lib/pubid/version.rb
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module W3c
|
|
5
|
+
# The pubid-scheme URN of w3c (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("w3c") do
|
|
10
|
+
atom "date", "date"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
type "pubid:w3c:candidate-recommendation", "cr"
|
|
14
|
+
type "pubid:w3c:candidate-recommendation-draft", "crd"
|
|
15
|
+
type "pubid:w3c:draft-note", "dn"
|
|
16
|
+
type "pubid:w3c:identifier", "id"
|
|
17
|
+
type "pubid:w3c:note", "note"
|
|
18
|
+
type "pubid:w3c:obsolete-recommendation", "or"
|
|
19
|
+
type "pubid:w3c:proposed-edited-recommendation", "per"
|
|
20
|
+
type "pubid:w3c:proposed-recommendation", "pr"
|
|
21
|
+
type "pubid:w3c:recommendation", "rec"
|
|
22
|
+
type "pubid:w3c:standard", "std"
|
|
23
|
+
type "pubid:w3c:superseded-recommendation", "sr"
|
|
24
|
+
type "pubid:w3c:working-draft", "wd"
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/pubid/w3c.rb
CHANGED
|
@@ -16,6 +16,7 @@ module Pubid
|
|
|
16
16
|
autoload :Renderer, "#{__dir__}/w3c/renderer"
|
|
17
17
|
autoload :UrnGenerator, "#{__dir__}/w3c/urn_generator"
|
|
18
18
|
autoload :UrnParser, "#{__dir__}/w3c/urn_parser"
|
|
19
|
+
autoload :PubidUrnSchema, "#{__dir__}/w3c/pubid_urn_schema"
|
|
19
20
|
|
|
20
21
|
# Parse a W3C identifier string
|
|
21
22
|
def self.parse(identifier)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pubid
|
|
4
|
+
module Xsf
|
|
5
|
+
# The pubid-scheme URN of xsf (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
|
+
#
|
|
7
|
+
# Declared from the doc's section: the atom, facet and type tables
|
|
8
|
+
# below are the doc's design, conforming token-for-token.
|
|
9
|
+
PubidUrnSchema = Pubid::PubidUrn.define("xsf") do
|
|
10
|
+
type "pubid:xsf:identifier", "id"
|
|
11
|
+
type "pubid:xsf:xep", "xep"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/lib/pubid/xsf.rb
CHANGED
|
@@ -21,6 +21,7 @@ module Pubid
|
|
|
21
21
|
autoload :Renderer, "#{__dir__}/xsf/renderer"
|
|
22
22
|
autoload :UrnGenerator, "#{__dir__}/xsf/urn_generator"
|
|
23
23
|
autoload :UrnParser, "#{__dir__}/xsf/urn_parser"
|
|
24
|
+
autoload :PubidUrnSchema, "#{__dir__}/xsf/pubid_urn_schema"
|
|
24
25
|
|
|
25
26
|
# Parse an XSF identifier string
|
|
26
27
|
def self.parse(identifier)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -142,6 +142,7 @@ files:
|
|
|
142
142
|
- lib/pubid/adobe/identifiers/publication.rb
|
|
143
143
|
- lib/pubid/adobe/identifiers/tech_note.rb
|
|
144
144
|
- lib/pubid/adobe/parser.rb
|
|
145
|
+
- lib/pubid/adobe/pubid_urn_schema.rb
|
|
145
146
|
- lib/pubid/adobe/renderer.rb
|
|
146
147
|
- lib/pubid/adobe/urn_generator.rb
|
|
147
148
|
- lib/pubid/adobe/urn_parser.rb
|
|
@@ -325,6 +326,7 @@ files:
|
|
|
325
326
|
- lib/pubid/calconnect/identifiers.rb
|
|
326
327
|
- lib/pubid/calconnect/identifiers/standard.rb
|
|
327
328
|
- lib/pubid/calconnect/parser.rb
|
|
329
|
+
- lib/pubid/calconnect/pubid_urn_schema.rb
|
|
328
330
|
- lib/pubid/calconnect/renderer.rb
|
|
329
331
|
- lib/pubid/calconnect/urn_generator.rb
|
|
330
332
|
- lib/pubid/calconnect/urn_parser.rb
|
|
@@ -335,6 +337,7 @@ files:
|
|
|
335
337
|
- lib/pubid/ccsds/identifiers/base.rb
|
|
336
338
|
- lib/pubid/ccsds/identifiers/corrigendum.rb
|
|
337
339
|
- lib/pubid/ccsds/parser.rb
|
|
340
|
+
- lib/pubid/ccsds/pubid_urn_schema.rb
|
|
338
341
|
- lib/pubid/ccsds/single_identifier.rb
|
|
339
342
|
- lib/pubid/ccsds/supplement_identifier.rb
|
|
340
343
|
- lib/pubid/ccsds/urn_generator.rb
|
|
@@ -450,6 +453,7 @@ files:
|
|
|
450
453
|
- lib/pubid/easc/identifiers/pmg.rb
|
|
451
454
|
- lib/pubid/easc/identifiers/rmg.rb
|
|
452
455
|
- lib/pubid/easc/parser.rb
|
|
456
|
+
- lib/pubid/easc/pubid_urn_schema.rb
|
|
453
457
|
- lib/pubid/easc/renderer.rb
|
|
454
458
|
- lib/pubid/easc/urn_generator.rb
|
|
455
459
|
- lib/pubid/easc/urn_parser.rb
|
|
@@ -462,6 +466,7 @@ files:
|
|
|
462
466
|
- lib/pubid/ecma/identifiers/standard.rb
|
|
463
467
|
- lib/pubid/ecma/identifiers/technical_report.rb
|
|
464
468
|
- lib/pubid/ecma/parser.rb
|
|
469
|
+
- lib/pubid/ecma/pubid_urn_schema.rb
|
|
465
470
|
- lib/pubid/ecma/renderer.rb
|
|
466
471
|
- lib/pubid/ecma/urn_generator.rb
|
|
467
472
|
- lib/pubid/ecma/urn_parser.rb
|
|
@@ -493,6 +498,7 @@ files:
|
|
|
493
498
|
- lib/pubid/evs/identifiers/international_adoption.rb
|
|
494
499
|
- lib/pubid/evs/identifiers/national_adoption.rb
|
|
495
500
|
- lib/pubid/evs/parser.rb
|
|
501
|
+
- lib/pubid/evs/pubid_urn_schema.rb
|
|
496
502
|
- lib/pubid/evs/renderer.rb
|
|
497
503
|
- lib/pubid/evs/urn_generator.rb
|
|
498
504
|
- lib/pubid/evs/urn_parser.rb
|
|
@@ -544,6 +550,7 @@ files:
|
|
|
544
550
|
- lib/pubid/iala/identifiers/resolution.rb
|
|
545
551
|
- lib/pubid/iala/identifiers/standard.rb
|
|
546
552
|
- lib/pubid/iala/parser.rb
|
|
553
|
+
- lib/pubid/iala/pubid_urn_schema.rb
|
|
547
554
|
- lib/pubid/iala/renderer.rb
|
|
548
555
|
- lib/pubid/iala/urn_generator.rb
|
|
549
556
|
- lib/pubid/iala/urn_parser.rb
|
|
@@ -554,6 +561,7 @@ files:
|
|
|
554
561
|
- lib/pubid/iana/identifiers.rb
|
|
555
562
|
- lib/pubid/iana/identifiers/registry.rb
|
|
556
563
|
- lib/pubid/iana/parser.rb
|
|
564
|
+
- lib/pubid/iana/pubid_urn_schema.rb
|
|
557
565
|
- lib/pubid/iana/renderer.rb
|
|
558
566
|
- lib/pubid/iana/urn_generator.rb
|
|
559
567
|
- lib/pubid/iana/urn_parser.rb
|
|
@@ -887,6 +895,7 @@ files:
|
|
|
887
895
|
- lib/pubid/oasis/identifiers.rb
|
|
888
896
|
- lib/pubid/oasis/identifiers/standard.rb
|
|
889
897
|
- lib/pubid/oasis/parser.rb
|
|
898
|
+
- lib/pubid/oasis/pubid_urn_schema.rb
|
|
890
899
|
- lib/pubid/oasis/renderer.rb
|
|
891
900
|
- lib/pubid/oasis/urn_generator.rb
|
|
892
901
|
- lib/pubid/oasis/urn_parser.rb
|
|
@@ -897,6 +906,7 @@ files:
|
|
|
897
906
|
- lib/pubid/ogc/identifiers.rb
|
|
898
907
|
- lib/pubid/ogc/identifiers/document.rb
|
|
899
908
|
- lib/pubid/ogc/parser.rb
|
|
909
|
+
- lib/pubid/ogc/pubid_urn_schema.rb
|
|
900
910
|
- lib/pubid/ogc/renderer.rb
|
|
901
911
|
- lib/pubid/ogc/urn_generator.rb
|
|
902
912
|
- lib/pubid/ogc/urn_parser.rb
|
|
@@ -1050,6 +1060,7 @@ files:
|
|
|
1050
1060
|
- lib/pubid/w3c/identifiers/superseded_recommendation.rb
|
|
1051
1061
|
- lib/pubid/w3c/identifiers/working_draft.rb
|
|
1052
1062
|
- lib/pubid/w3c/parser.rb
|
|
1063
|
+
- lib/pubid/w3c/pubid_urn_schema.rb
|
|
1053
1064
|
- lib/pubid/w3c/renderer.rb
|
|
1054
1065
|
- lib/pubid/w3c/urn_generator.rb
|
|
1055
1066
|
- lib/pubid/w3c/urn_parser.rb
|
|
@@ -1060,6 +1071,7 @@ files:
|
|
|
1060
1071
|
- lib/pubid/xsf/identifiers.rb
|
|
1061
1072
|
- lib/pubid/xsf/identifiers/xep.rb
|
|
1062
1073
|
- lib/pubid/xsf/parser.rb
|
|
1074
|
+
- lib/pubid/xsf/pubid_urn_schema.rb
|
|
1063
1075
|
- lib/pubid/xsf/renderer.rb
|
|
1064
1076
|
- lib/pubid/xsf/urn_generator.rb
|
|
1065
1077
|
- lib/pubid/xsf/urn_parser.rb
|