pubid-cen 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pubid/cen/identifier.rb +9 -9
- data/lib/pubid/cen/renderer/base.rb +1 -1
- data/lib/pubid/cen/transformer.rb +2 -2
- data/lib/pubid/cen/version.rb +1 -1
- metadata +11 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768b329239f1899791f61ff6d53c05e204cca3fe340d7fa36b7ace8e8f557ad1
|
4
|
+
data.tar.gz: 0bc490c9082ed170d3c4c63e51589557364725063b311880d9b4d9f8cdfcf841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c114121489269b3f8d89b962c12c577ddaab8b27da087dd47647527e766f1c0609e62373e32f182cd1579449c05777d2c7400452da36ba2b9a41b0c925a522b5
|
7
|
+
data.tar.gz: 0ea931556cc1f4c79b7063d52d1c7379c8fa05f7e0590b41d2a0f353ca92aa28d17d8985ba793a389c8420fe9eb594329e05a422a831268b33b6157158bb315a
|
data/lib/pubid/cen/identifier.rb
CHANGED
@@ -8,15 +8,15 @@ module Pubid::Cen
|
|
8
8
|
Base.parse(*args)
|
9
9
|
end
|
10
10
|
|
11
|
-
def resolve_identifier(parameters = {})
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
11
|
+
# def resolve_identifier(parameters = {})
|
12
|
+
# return @config.default_type.new(**parameters) if parameters[:type].nil?
|
13
|
+
#
|
14
|
+
# @config.types.each do |identifier_type|
|
15
|
+
# return identifier_type.new(**parameters) if identifier_type.type_match?(parameters)
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# raise Errors::ParseTypeError, "cannot parse type #{parameters[:type]}"
|
19
|
+
# end
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -28,9 +28,9 @@ module Pubid::Cen
|
|
28
28
|
def self.convert_supplement(supplement)
|
29
29
|
case supplement[:type]
|
30
30
|
when "A"
|
31
|
-
Identifier::Amendment.new(**supplement)
|
31
|
+
Identifier::Amendment.new(**supplement.dup.tap { |h| h.delete(:type) })
|
32
32
|
when "AC"
|
33
|
-
Identifier::Corrigendum.new(**supplement)
|
33
|
+
Identifier::Corrigendum.new(**supplement.dup.tap { |h| h.delete(:type) })
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
data/lib/pubid/cen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubid-cen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -38,48 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: nokogiri
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: thor
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: lightly
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
41
|
- !ruby/object:Gem::Dependency
|
84
42
|
name: parslet
|
85
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,42 +58,42 @@ dependencies:
|
|
100
58
|
requirements:
|
101
59
|
- - "~>"
|
102
60
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
61
|
+
version: 1.12.2
|
104
62
|
type: :runtime
|
105
63
|
prerelease: false
|
106
64
|
version_requirements: !ruby/object:Gem::Requirement
|
107
65
|
requirements:
|
108
66
|
- - "~>"
|
109
67
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
68
|
+
version: 1.12.2
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: pubid-
|
70
|
+
name: pubid-iec
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
114
72
|
requirements:
|
115
73
|
- - "~>"
|
116
74
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
75
|
+
version: 0.3.1
|
118
76
|
type: :runtime
|
119
77
|
prerelease: false
|
120
78
|
version_requirements: !ruby/object:Gem::Requirement
|
121
79
|
requirements:
|
122
80
|
- - "~>"
|
123
81
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
82
|
+
version: 0.3.1
|
125
83
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: pubid-
|
84
|
+
name: pubid-iso
|
127
85
|
requirement: !ruby/object:Gem::Requirement
|
128
86
|
requirements:
|
129
87
|
- - "~>"
|
130
88
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
89
|
+
version: '0.7'
|
132
90
|
type: :runtime
|
133
91
|
prerelease: false
|
134
92
|
version_requirements: !ruby/object:Gem::Requirement
|
135
93
|
requirements:
|
136
94
|
- - "~>"
|
137
95
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
96
|
+
version: '0.7'
|
139
97
|
description: Library to generate, parse and manipulate CEN PubID.
|
140
98
|
email:
|
141
99
|
- open.source@ribose.com
|
@@ -189,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
147
|
- !ruby/object:Gem::Version
|
190
148
|
version: '0'
|
191
149
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.3.26
|
193
151
|
signing_key:
|
194
152
|
specification_version: 4
|
195
153
|
summary: Library to generate, parse and manipulate CEN PubID.
|