pubid-cen 0.2.0 → 0.2.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/cen/parser.rb +6 -1
- data/lib/pubid/cen/renderer/base.rb +1 -1
- data/lib/pubid/cen/version.rb +1 -1
- metadata +7 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f37cc8f76f0f0534a96c767beaa339d440c9562d30659f55b3cb32ec36ed66c7
|
4
|
+
data.tar.gz: '0530784b9b2e0f4c12ff2c4f03ddfaeddef8c03543f0e9b8450c290b17bedfbf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e85cfe6e8e16436dab898b50efb3b1cb8c48537a05a931dac9dd1eab7ad0fe437959e4a344f0dd9b1d30dee4cc337fc70650c02e4f0039c2bfdae8a63f1e134
|
7
|
+
data.tar.gz: 3c946c0dd3e0e5c5082b2579cd24a00ec1394b873ac7d3cea5aa77f102cfc01ab6d8ea5ff4ca1534863778695098885db087240a22dc5a519f4a8801ae49deb5
|
data/lib/pubid/cen/parser.rb
CHANGED
@@ -39,7 +39,12 @@ module Pubid::Cen
|
|
39
39
|
|
40
40
|
rule(:identifier) do
|
41
41
|
stage.maybe >> originator.maybe >> ((type.maybe >> space >> digits.as(:number) >> part >>
|
42
|
-
(str(":") >> year).maybe) | space >> match("[^+/]").repeat(1)
|
42
|
+
(str(":") >> year).maybe) | (space >> (match("[^+/]").repeat(1) >>
|
43
|
+
# XXX: hack to match part after "/" for identifiers like
|
44
|
+
# EN ISO/IEC 80079-34:2020 ED2
|
45
|
+
# but march only part before "/" for identifiers like
|
46
|
+
# EN ISO 13485:2016/AC:2016
|
47
|
+
(supplement.absent? >> match("[^+]").repeat(1)).maybe).as(:adopted))) >>
|
43
48
|
supplement.maybe >> incorporated_supplement.repeat
|
44
49
|
end
|
45
50
|
|
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.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: 2023-
|
11
|
+
date: 2023-08-06 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,28 +58,28 @@ dependencies:
|
|
100
58
|
requirements:
|
101
59
|
- - "~>"
|
102
60
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.8.
|
61
|
+
version: 1.8.6
|
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.
|
68
|
+
version: 1.8.6
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
70
|
name: pubid-iso
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
114
72
|
requirements:
|
115
73
|
- - "~>"
|
116
74
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
75
|
+
version: 0.6.0
|
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.6.0
|
125
83
|
- !ruby/object:Gem::Dependency
|
126
84
|
name: pubid-iec
|
127
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|