pubid-iso 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +15 -0
- data/lib/pubid/iso/parser.rb +2 -1
- data/lib/pubid/iso/renderer/technical_committee.rb +2 -2
- data/lib/pubid/iso/transformer.rb +2 -0
- data/lib/pubid/iso/version.rb +1 -1
- data/lib/pubid/iso.rb +1 -0
- data/stages.yaml +10 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a01350a8297845b74d86ea2e79cc7862b54172a69c3d1485a0f1fc89f295da
|
4
|
+
data.tar.gz: 19e78818ca98757175c0b77e42ed41864a42e77340d3e0ada08e7dc7448aa172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 351bb73d170060744708322ac741be514b8f58688c985e1ab0056ea5335f8d8762ab89dbaeeefc43ee6c0e1c5ee0d0b128fe3be398930acd09289ef68dc8b3f0
|
7
|
+
data.tar.gz: c0571e874c295844d0ff2214dc5b872a344702f7b15161c79b6f48bee51b767976059e996cba8fd242664285a28e885dbfab647f4420294aa627a724f93800df
|
data/README.adoc
CHANGED
@@ -61,6 +61,21 @@ pubid.to_s
|
|
61
61
|
=> "ISO/WD 1234"
|
62
62
|
----
|
63
63
|
|
64
|
+
==== "PreCD" stage
|
65
|
+
|
66
|
+
For "PreCD" stage we’re using a special stage called "29" that is not in the International Harmonized Codes.
|
67
|
+
|
68
|
+
[source,ruby]
|
69
|
+
----
|
70
|
+
pubid = Pubid::Iso::Identifier.create(publisher: "ISO", stage: :PreCD, number: 123)
|
71
|
+
pubid.to_s
|
72
|
+
|
73
|
+
=> "ISO/PreCD 123"
|
74
|
+
|
75
|
+
subject.stage.harmonized_code.stages
|
76
|
+
=> ["29.00", "29.20", "29.60", "29.92", "29.98", "29.99"]
|
77
|
+
----
|
78
|
+
|
64
79
|
=== With part number
|
65
80
|
|
66
81
|
[source,ruby]
|
data/lib/pubid/iso/parser.rb
CHANGED
@@ -49,7 +49,8 @@ module Pubid::Iso
|
|
49
49
|
end
|
50
50
|
|
51
51
|
rule(:stage) do
|
52
|
-
array_to_str(Pubid::Iso::Renderer::Base::TRANSLATION[:russian][:stage].values) | array_to_str(STAGES)
|
52
|
+
array_to_str(Pubid::Iso::Renderer::Base::TRANSLATION[:russian][:stage].values) | array_to_str(STAGES) |
|
53
|
+
(str("preCD") | str("PreCD"))
|
53
54
|
end
|
54
55
|
|
55
56
|
rule(:typed_stage) do
|
@@ -10,9 +10,9 @@ module Pubid::Iso::Renderer
|
|
10
10
|
|
11
11
|
def render_identifier(params, opts)
|
12
12
|
if params[:wgnumber] && !params[:wgnumber].empty?
|
13
|
-
"%{publisher}%{tctype}
|
13
|
+
"%{publisher}%{tctype} %{tcnumber}%{sctype}%{scnumber}%{wgtype}%{wgnumber} %{number}" % params
|
14
14
|
else
|
15
|
-
"%{publisher}%{tctype}
|
15
|
+
"%{publisher}%{tctype} %{tcnumber}%{sctype}%{wgtype}%{scnumber} %{number}" % params
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
data/lib/pubid/iso/version.rb
CHANGED
data/lib/pubid/iso.rb
CHANGED
data/stages.yaml
CHANGED
@@ -3,6 +3,7 @@ abbreviations:
|
|
3
3
|
NP: ["10.00", "10.20", "10.60", "10.98", "10.92"]
|
4
4
|
AWI: ["20.00", "10.99"]
|
5
5
|
WD: ["20.20", "20.60", "20.98", "20.99"]
|
6
|
+
PreCD: ["29.00", "29.20", "29.60", "29.92", "29.98", "29.99"]
|
6
7
|
CD: ["30.00", "30.20", "30.60", "30.92", "30.98", "30.99"]
|
7
8
|
FCD: ["40.00", "40.20", "40.60", "40.92", "40.98", "40.99"]
|
8
9
|
PRF: ["50.00", "50.20", "50.60", "50.92", "50.98", "50.99"]
|
@@ -32,6 +33,12 @@ codes_description:
|
|
32
33
|
"20.60": Close of comment period
|
33
34
|
"20.98": Project deleted
|
34
35
|
"20.99": WD approved for registration as CD
|
36
|
+
"29.00": Committee draft (CD) registered
|
37
|
+
"29.20": CD study/ballot initiated
|
38
|
+
"29.60": Close of voting/ comment period
|
39
|
+
"29.92": CD referred back to Working Group
|
40
|
+
"29.98": Project deleted
|
41
|
+
"29.99": CD approved for registration as DIS
|
35
42
|
"30.00": Committee draft (CD) registered
|
36
43
|
"30.20": CD study/ballot initiated
|
37
44
|
"30.60": Close of voting/ comment period
|
@@ -84,9 +91,9 @@ substage_codes:
|
|
84
91
|
proceed: "99"
|
85
92
|
|
86
93
|
draft_codes: ["00.00", "00.20", "00.60", "00.99", "10.00", "10.20", "10.60", "10.92",
|
87
|
-
"10.99", "20.00", "20.20", "20.60", "20.99", "
|
88
|
-
"30.20", "30.60", "30.92", "30.99", "40.00", "40.20", "40.60",
|
89
|
-
"40.93", "40.99", "50.00", "50.20", "50.60", "50.92", "50.99"]
|
94
|
+
"10.99", "20.00", "20.20", "20.60", "20.99", "29.00", "29.20", "29.60", "29.92",
|
95
|
+
"29.99", "30.00", "30.20", "30.60", "30.92", "30.99", "40.00", "40.20", "40.60",
|
96
|
+
"40.92", "40.93", "40.99", "50.00", "50.20", "50.60", "50.92", "50.99"]
|
90
97
|
|
91
98
|
canceled_codes: ["00.98", "10.98", "20.98", "30.98", "40.98", "50.98", "95.99"]
|
92
99
|
published_codes: ["60.00", "60.60", "90.20", "90.60", "90.92", "90.93", "90.99", "95.20", "95.60", "95.92"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubid-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.12.
|
61
|
+
version: 1.12.5
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.12.
|
68
|
+
version: 1.12.5
|
69
69
|
description: Library to generate, parse and manipulate ISO PubID.
|
70
70
|
email:
|
71
71
|
- open.source@ribose.com
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.3.
|
151
|
+
rubygems_version: 3.3.27
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Library to generate, parse and manipulate ISO PubID.
|