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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff3dc2816c021cb1fdb8c1402accf7ef56f9bdc96a62ae353961610206fcf7a3
4
- data.tar.gz: c5346effa784afc5f8b14ff09656ae056c0715421faf3f7655762cfc2cf66bdb
3
+ metadata.gz: f37cc8f76f0f0534a96c767beaa339d440c9562d30659f55b3cb32ec36ed66c7
4
+ data.tar.gz: '0530784b9b2e0f4c12ff2c4f03ddfaeddef8c03543f0e9b8450c290b17bedfbf'
5
5
  SHA512:
6
- metadata.gz: d4c27399582f5265dd962fe9b352e2e24a81cbeeca9759fc54bb94777f70181825b5337917efa1a2b71df1cff09555197b9110d468e019ca7d56ba269fb2b3d6
7
- data.tar.gz: 28551377f3767fed23b16d62ef51712f1e5380616edccfab47fceb3e870a701e8396e78467a0b310890d8c5d11284d9438f7329deb33ffc98819ac6dc1c92560
6
+ metadata.gz: 3e85cfe6e8e16436dab898b50efb3b1cb8c48537a05a931dac9dd1eab7ad0fe437959e4a344f0dd9b1d30dee4cc337fc70650c02e4f0039c2bfdae8a63f1e134
7
+ data.tar.gz: 3c946c0dd3e0e5c5082b2579cd24a00ec1394b873ac7d3cea5aa77f102cfc01ab6d8ea5ff4ca1534863778695098885db087240a22dc5a519f4a8801ae49deb5
@@ -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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Cen
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.2".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.0
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-04-03 00:00:00.000000000 Z
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.0
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.0
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.5.2
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.5.2
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.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.