pubid 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pubid/registry.rb +30 -0
- data/lib/pubid/version.rb +1 -1
- data/lib/pubid.rb +15 -0
- metadata +31 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690aaebd36159f29f0c30f305e45c2a44cb27f2aa03e501d3b264af0acee6bb9
|
4
|
+
data.tar.gz: dc4bf083ed329452fa61a6e2080356fc5a46b88cec2d442327d79f35bcdd1745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac9c45a40be24fe9791acea1b15bd7f8124c60d59e594d4803c2b01dffb39d8100c2efdeae73b4da4b64096300183fd4202edd34f22fb9f0166008404376726
|
7
|
+
data.tar.gz: '09789ff8bff807dfe2fcee2852137b27d77b2ef8bd32aa5e2de855c24ef276ce083fe26b854afd4d4c25f68b828085c3e484d94d325220e1b75f417c5881a3a8'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Pubid
|
2
|
+
class Registry
|
3
|
+
class << self
|
4
|
+
def parse(*args)
|
5
|
+
modules = [Pubid::Iso,
|
6
|
+
Pubid::Ieee,
|
7
|
+
Pubid::Nist,
|
8
|
+
Pubid::Iec,
|
9
|
+
Pubid::Cen,
|
10
|
+
Pubid::Bsi,
|
11
|
+
Pubid::Ccsds,
|
12
|
+
Pubid::Itu,
|
13
|
+
Pubid::Jis]
|
14
|
+
modules.each do |mod|
|
15
|
+
module_identifier = Kernel.const_get("#{mod}::Identifier")
|
16
|
+
return module_identifier.parse(*args) if module_identifier.parseable?(*args)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Go through each module to try to parse unknown prefix
|
20
|
+
modules.each do |mod|
|
21
|
+
return Kernel.const_get("#{mod}::Identifier").parse(*args)
|
22
|
+
rescue Pubid::Core::Errors::ParseError
|
23
|
+
next
|
24
|
+
end
|
25
|
+
|
26
|
+
raise Pubid::Core::Errors::ParseError, "cannot find module to parse #{args}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/pubid/version.rb
CHANGED
data/lib/pubid.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Pubid
|
2
|
+
end
|
3
|
+
|
4
|
+
require_relative "pubid/registry"
|
5
|
+
|
6
|
+
require "pubid-core"
|
7
|
+
require "pubid-iso"
|
8
|
+
require "pubid-ieee"
|
9
|
+
require "pubid-nist"
|
10
|
+
require "pubid-iec"
|
11
|
+
require "pubid-cen"
|
12
|
+
require "pubid-bsi"
|
13
|
+
require "pubid-ccsds"
|
14
|
+
require "pubid-itu"
|
15
|
+
require "pubid-jis"
|
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: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,70 +44,70 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.12.
|
47
|
+
version: 1.12.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.12.
|
54
|
+
version: 1.12.5
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pubid-nist
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.4.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pubid-iso
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.7.
|
75
|
+
version: 0.7.5
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.7.
|
82
|
+
version: 0.7.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pubid-ieee
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.2.
|
89
|
+
version: 0.2.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.2.
|
96
|
+
version: 0.2.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pubid-cen
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.2.
|
103
|
+
version: 0.2.4
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.
|
110
|
+
version: 0.2.4
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pubid-iec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +170,28 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.3.
|
173
|
+
version: 0.3.4
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.3.
|
180
|
+
version: 0.3.4
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pubid-etsi
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.1.0
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.1.0
|
181
195
|
description: Gem including all pubid-* gems.
|
182
196
|
email:
|
183
197
|
- open.source@ribose.com
|
@@ -189,6 +203,8 @@ extra_rdoc_files:
|
|
189
203
|
files:
|
190
204
|
- LICENSE.txt
|
191
205
|
- README.adoc
|
206
|
+
- lib/pubid.rb
|
207
|
+
- lib/pubid/registry.rb
|
192
208
|
- lib/pubid/version.rb
|
193
209
|
homepage: https://github.com/metanorma/pubid
|
194
210
|
licenses:
|
@@ -209,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
225
|
- !ruby/object:Gem::Version
|
210
226
|
version: '0'
|
211
227
|
requirements: []
|
212
|
-
rubygems_version: 3.3.
|
228
|
+
rubygems_version: 3.3.27
|
213
229
|
signing_key:
|
214
230
|
specification_version: 4
|
215
231
|
summary: Gem including all pubid-* gems.
|