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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 670ef1b7391c8d5b2f576a67f7da3f3320094778302898603ee9fb819d5d8b8e
4
- data.tar.gz: bb1aa27c00811ad9b111da9c97f0f3b9190cc328b632361ed1314c36a26541e0
3
+ metadata.gz: 768b329239f1899791f61ff6d53c05e204cca3fe340d7fa36b7ace8e8f557ad1
4
+ data.tar.gz: 0bc490c9082ed170d3c4c63e51589557364725063b311880d9b4d9f8cdfcf841
5
5
  SHA512:
6
- metadata.gz: 94795c4877fcf2d970377ce2455fda3f8abda4b54bd31f203d692fa1e1f9bae1fe00203f7623e343810c41ac372215727f166a22d62b6b04bd225f51dbe7f9ab
7
- data.tar.gz: 21bd2bd896f9ad6de4fe3f9b8f9fa1e5ace3c2186e758d691a23172c6951b95b6b650afd8769445268c47e6f18222ca262c66373347a484c57e675da3caa4e46
6
+ metadata.gz: c114121489269b3f8d89b962c12c577ddaab8b27da087dd47647527e766f1c0609e62373e32f182cd1579449c05777d2c7400452da36ba2b9a41b0c925a522b5
7
+ data.tar.gz: 0ea931556cc1f4c79b7063d52d1c7379c8fa05f7e0590b41d2a0f353ca92aa28d17d8985ba793a389c8420fe9eb594329e05a422a831268b33b6157158bb315a
@@ -8,15 +8,15 @@ module Pubid::Cen
8
8
  Base.parse(*args)
9
9
  end
10
10
 
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
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
@@ -11,7 +11,7 @@ module Pubid::Cen::Renderer
11
11
  end
12
12
 
13
13
  def render_part(part, opts, _params)
14
- return "-#{part.reverse.join('-')}" if part.is_a?(Array)
14
+ return "-#{part.join('-')}" if part.is_a?(Array)
15
15
 
16
16
  "-#{part}"
17
17
  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
 
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Cen
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.3".freeze
4
4
  end
5
5
  end
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.1
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: 2023-04-03 00:00:00.000000000 Z
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.8.0
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.8.0
68
+ version: 1.12.2
111
69
  - !ruby/object:Gem::Dependency
112
- name: pubid-iso
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.5.2
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.5.2
82
+ version: 0.3.1
125
83
  - !ruby/object:Gem::Dependency
126
- name: pubid-iec
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.2.2
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.2.2
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.0.3.1
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.