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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff3dc2816c021cb1fdb8c1402accf7ef56f9bdc96a62ae353961610206fcf7a3
4
- data.tar.gz: c5346effa784afc5f8b14ff09656ae056c0715421faf3f7655762cfc2cf66bdb
3
+ metadata.gz: 670ef1b7391c8d5b2f576a67f7da3f3320094778302898603ee9fb819d5d8b8e
4
+ data.tar.gz: bb1aa27c00811ad9b111da9c97f0f3b9190cc328b632361ed1314c36a26541e0
5
5
  SHA512:
6
- metadata.gz: d4c27399582f5265dd962fe9b352e2e24a81cbeeca9759fc54bb94777f70181825b5337917efa1a2b71df1cff09555197b9110d468e019ca7d56ba269fb2b3d6
7
- data.tar.gz: 28551377f3767fed23b16d62ef51712f1e5380616edccfab47fceb3e870a701e8396e78467a0b310890d8c5d11284d9438f7329deb33ffc98819ac6dc1c92560
6
+ metadata.gz: 94795c4877fcf2d970377ce2455fda3f8abda4b54bd31f203d692fa1e1f9bae1fe00203f7623e343810c41ac372215727f166a22d62b6b04bd225f51dbe7f9ab
7
+ data.tar.gz: 21bd2bd896f9ad6de4fe3f9b8f9fa1e5ace3c2186e758d691a23172c6951b95b6b650afd8769445268c47e6f18222ca262c66373347a484c57e675da3caa4e46
@@ -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).as(:adopted)) >>
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
 
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Cen
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-cen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.