pubid-cen 0.2.0 → 0.2.1
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/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 670ef1b7391c8d5b2f576a67f7da3f3320094778302898603ee9fb819d5d8b8e
|
4
|
+
data.tar.gz: bb1aa27c00811ad9b111da9c97f0f3b9190cc328b632361ed1314c36a26541e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94795c4877fcf2d970377ce2455fda3f8abda4b54bd31f203d692fa1e1f9bae1fe00203f7623e343810c41ac372215727f166a22d62b6b04bd225f51dbe7f9ab
|
7
|
+
data.tar.gz: 21bd2bd896f9ad6de4fe3f9b8f9fa1e5ace3c2186e758d691a23172c6951b95b6b650afd8769445268c47e6f18222ca262c66373347a484c57e675da3caa4e46
|
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