pubid-nist 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +25 -0
  3. data/README.adoc +727 -0
  4. data/exe/pubid-nist +97 -0
  5. data/lib/pubid/nist/document.rb +286 -0
  6. data/lib/pubid/nist/document_parser.rb +34 -0
  7. data/lib/pubid/nist/document_transform.rb +21 -0
  8. data/lib/pubid/nist/edition.rb +26 -0
  9. data/lib/pubid/nist/errors.rb +5 -0
  10. data/lib/pubid/nist/nist_tech_pubs.rb +110 -0
  11. data/lib/pubid/nist/parsers/default.rb +107 -0
  12. data/lib/pubid/nist/parsers/fips_pub.rb +8 -0
  13. data/lib/pubid/nist/parsers/nbs_bh.rb +6 -0
  14. data/lib/pubid/nist/parsers/nbs_circ.rb +21 -0
  15. data/lib/pubid/nist/parsers/nbs_crpl.rb +17 -0
  16. data/lib/pubid/nist/parsers/nbs_csm.rb +11 -0
  17. data/lib/pubid/nist/parsers/nbs_fips.rb +14 -0
  18. data/lib/pubid/nist/parsers/nbs_hb.rb +31 -0
  19. data/lib/pubid/nist/parsers/nbs_ir.rb +29 -0
  20. data/lib/pubid/nist/parsers/nbs_lc.rb +21 -0
  21. data/lib/pubid/nist/parsers/nbs_mn.rb +6 -0
  22. data/lib/pubid/nist/parsers/nbs_mp.rb +9 -0
  23. data/lib/pubid/nist/parsers/nbs_rpt.rb +13 -0
  24. data/lib/pubid/nist/parsers/nbs_sp.rb +13 -0
  25. data/lib/pubid/nist/parsers/nbs_tn.rb +9 -0
  26. data/lib/pubid/nist/parsers/nist_gcr.rb +14 -0
  27. data/lib/pubid/nist/parsers/nist_hb.rb +8 -0
  28. data/lib/pubid/nist/parsers/nist_ir.rb +29 -0
  29. data/lib/pubid/nist/parsers/nist_ncstar.rb +7 -0
  30. data/lib/pubid/nist/parsers/nist_owmwp.rb +11 -0
  31. data/lib/pubid/nist/parsers/nist_sp.rb +53 -0
  32. data/lib/pubid/nist/parsers/nist_tn.rb +13 -0
  33. data/lib/pubid/nist/publisher.rb +43 -0
  34. data/lib/pubid/nist/serie.rb +27 -0
  35. data/lib/pubid/nist/stage.rb +28 -0
  36. data/lib/pubid/nist/version.rb +5 -0
  37. data/lib/pubid/nist.rb +33 -0
  38. data/lib/pubid-nist.rb +3 -0
  39. data/publishers.yaml +6 -0
  40. data/series.yaml +139 -0
  41. data/stages.yaml +5 -0
  42. data/update_codes.yaml +58 -0
  43. metadata +213 -0
data/update_codes.yaml ADDED
@@ -0,0 +1,58 @@
1
+ NBS MONO: NBS MN
2
+ NIST MONO: NIST MN
3
+ NIST MP: NBS MP
4
+ NIST SP 260-162 2006ed.: NIST SP 260-162e2006
5
+ NBS CIRC 154suprev: NBS CIRC 154r1sup
6
+ NBS CIRC supJun1925-Jun1926: NBS CIRC 24e7sup2
7
+ NBS CIRC supJun1925-Jun1927: NBS CIRC 24e7sup3
8
+ NBS CIRC sup: NBS CIRC 24e7sup
9
+ NBS CIRC e2: NBS CIRC 2e2
10
+ NBS CIRC 25sup-1924: NBS CIRC 25sup
11
+ NIST SP 260-126 rev 2013: NIST SP 260-126r2013
12
+ NIST CSWP: CSRC White Paper
13
+ NIST SP 800-56ar: NIST SP 800-56Ar1
14
+ NIST.LCIRC: NIST.LC
15
+ NBS.LCIRC: NBS.LC
16
+ NIST SP 800-57Pt3r1: NIST SP 800-57pt3r1
17
+ NISTIR: NIST IR
18
+ NIST FIPS: FIPS PUB
19
+ NIST.CSWP.01162020pt: NIST.CSWP.01162020(por)
20
+ NBS FIPS 11-1-Sep30: NBS FIPS 11-1-Sep30/1977
21
+ FIPS PUB 54-1-Jan15: FIPS PUB 54-1
22
+ FIPS PUB 54-1-Jan17: FIPS PUB 54-1-Jan17/1991
23
+ NBS CRPL c4-4: NBS CRPL 4-4
24
+ NIST AMS 300-8r1 (February 2021 update): NIST AMS 300-8r1/Upd1-201502
25
+ NIST IR 8115r1-upd: NIST IR 8115r1/Upd1-202103
26
+ NIST SP 500-300-upd: NIST SP 500-300/Upd1-202105
27
+ NIST TN 2150-upd: NIST TN 2150/Upd1-202102
28
+ NIST IR 8170-upd: NIST IR 8170/Upd1-202003
29
+ NBS IR 73-197r: NBS IR 73-197r1
30
+ NBS.HB.105-1r1990: NIST.HB.105-1r1990
31
+ NBS.HB.28p11969: NBS.HB.28-1969pt1
32
+ NIST HB 105-1-1990: NIST HB 105-1r1990
33
+ NBS.FIPS.100-1-1991: NIST.FIPS.100-1-1991
34
+ NBS.LC.1088sp: NBS.LC.1088.spa
35
+ #NBS.LC.145r11/1925: NBS.LC.145/Upd1-192511
36
+ #NBS.LC.118sup12/1926: NBS.LC.118sup/Upd1-192612
37
+ NIST SP 955 Suppl.: NIST SP 955sup
38
+ NIST SP 800-38e: NIST SP 800-38E
39
+ NIST SP 782-1995-96: NIST SP 782-1995
40
+ NIST FIPS 54-Jan15: NIST FIPS 54
41
+ NBS report ;: NBS RPT
42
+ NBS TN 467p1adde1: NBS TN 467pt1-add
43
+ NIST SP 1011-II-1.0: NIST SP 1011v2ver1.0
44
+ NIST SP 1011-I-2.0: NIST SP 1011v1ver2.0
45
+ NIST SP 500-281-v1.0: NIST SP 500-281v1.0
46
+ NIST IR 8259Aes: NIST IR 8259A(spa)
47
+ NIST IR 8259Apt: NIST IR 8259A(por)
48
+ NIST IR 8211-upd: NIST IR 8211/Upd1-2021
49
+ NIST IR 8115r1/upd: NIST IR 8115r1/Upd1-2021
50
+ NBS CS v: NBS CSM v
51
+ !ruby/regexp /NBS CRPL-F-B(?=\d+)/: "NBS CRPL-F-B "
52
+ !ruby/regexp /NBS[.\s]CS[.\s]e/: "NBS CS-E "
53
+ !ruby/regexp /(?<=\d)es/: (spa)
54
+ !ruby/regexp /(?<=\d)chi/: (zho)
55
+ !ruby/regexp /(?<=\d)viet/: (vie)
56
+ !ruby/regexp /(?<=\d)port/: (por)
57
+ !ruby/regexp /(?<=\d)(pt)(?!\d)/: (por)
58
+ !ruby/regexp /(?<=\d)id/: (ind)
metadata ADDED
@@ -0,0 +1,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pubid-nist
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.8
5
+ platform: ruby
6
+ authors:
7
+ - Ribose Inc.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: vcr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
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: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
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: relaton-nist
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
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: thor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: lightly
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: parslet
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Library to generate, parse and manipulate NIST PubID.
140
+ email:
141
+ - open.source@ribose.com
142
+ executables:
143
+ - pubid-nist
144
+ extensions: []
145
+ extra_rdoc_files:
146
+ - README.adoc
147
+ - LICENSE.txt
148
+ files:
149
+ - LICENSE.txt
150
+ - README.adoc
151
+ - exe/pubid-nist
152
+ - lib/pubid-nist.rb
153
+ - lib/pubid/nist.rb
154
+ - lib/pubid/nist/document.rb
155
+ - lib/pubid/nist/document_parser.rb
156
+ - lib/pubid/nist/document_transform.rb
157
+ - lib/pubid/nist/edition.rb
158
+ - lib/pubid/nist/errors.rb
159
+ - lib/pubid/nist/nist_tech_pubs.rb
160
+ - lib/pubid/nist/parsers/default.rb
161
+ - lib/pubid/nist/parsers/fips_pub.rb
162
+ - lib/pubid/nist/parsers/nbs_bh.rb
163
+ - lib/pubid/nist/parsers/nbs_circ.rb
164
+ - lib/pubid/nist/parsers/nbs_crpl.rb
165
+ - lib/pubid/nist/parsers/nbs_csm.rb
166
+ - lib/pubid/nist/parsers/nbs_fips.rb
167
+ - lib/pubid/nist/parsers/nbs_hb.rb
168
+ - lib/pubid/nist/parsers/nbs_ir.rb
169
+ - lib/pubid/nist/parsers/nbs_lc.rb
170
+ - lib/pubid/nist/parsers/nbs_mn.rb
171
+ - lib/pubid/nist/parsers/nbs_mp.rb
172
+ - lib/pubid/nist/parsers/nbs_rpt.rb
173
+ - lib/pubid/nist/parsers/nbs_sp.rb
174
+ - lib/pubid/nist/parsers/nbs_tn.rb
175
+ - lib/pubid/nist/parsers/nist_gcr.rb
176
+ - lib/pubid/nist/parsers/nist_hb.rb
177
+ - lib/pubid/nist/parsers/nist_ir.rb
178
+ - lib/pubid/nist/parsers/nist_ncstar.rb
179
+ - lib/pubid/nist/parsers/nist_owmwp.rb
180
+ - lib/pubid/nist/parsers/nist_sp.rb
181
+ - lib/pubid/nist/parsers/nist_tn.rb
182
+ - lib/pubid/nist/publisher.rb
183
+ - lib/pubid/nist/serie.rb
184
+ - lib/pubid/nist/stage.rb
185
+ - lib/pubid/nist/version.rb
186
+ - publishers.yaml
187
+ - series.yaml
188
+ - stages.yaml
189
+ - update_codes.yaml
190
+ homepage: https://github.com/metanorma/pubid-nist
191
+ licenses:
192
+ - BSD-2-Clause
193
+ metadata: {}
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 2.5.0
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubygems_version: 3.3.3
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: Library to generate, parse and manipulate NIST PubID.
213
+ test_files: []