nist-pubid 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/README.adoc +3 -2
- data/exe/nist-pubid +25 -0
- data/lib/nist_pubid/document.rb +176 -18
- data/lib/nist_pubid/errors.rb +5 -0
- data/lib/nist_pubid/nist_tech_pubs.rb +92 -0
- data/lib/nist_pubid/serie.rb +3 -1
- data/lib/nist_pubid/version.rb +1 -1
- data/lib/nist_pubid.rb +2 -0
- data/nist_pubid.gemspec +5 -0
- data/series.yaml +1 -1
- metadata +64 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c894fedad676cd7d989d771acdceeacfb5b8e55afd9c24777fe127593820ad52
|
4
|
+
data.tar.gz: def901ca2a772e9594b487a4af7d6db8d0ce97c801bb2f3c2324a5b1d4a00f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc67a75ba8a03228d68e21d7967806a4b83663cfac77641b1050d807d2b84fe42b12da64f588205e63056cdb3641a72181d28599f076cb17a22bac933cd74c1c
|
7
|
+
data.tar.gz: 3e00e519a9fe89fc2adb276416d31b15669ae4211ae44508d8136b5f3a4e6c49e232508933b777a652ea74bc85883dea8e18c62030a2ae17ed4bed9d308e8ac9
|
data/README.adoc
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
NIST publications are numbered according to an identification scheme.
|
6
6
|
|
7
|
-
This gem implements a mechanism to parse and utilize NIST publication
|
7
|
+
This gem implements a mechanism to parse and utilize NIST publication identifiers
|
8
8
|
provided in the https://github.com/usnistgov/NIST-Tech-Pubs[NIST-Tech-Pubs]
|
9
9
|
repository.
|
10
10
|
|
@@ -296,9 +296,10 @@ A "Part" can also be indicated by an appended alphabetic character to the end.
|
|
296
296
|
| Section | Sec. | `sec`
|
297
297
|
| Supplement | Suppl. | `sup`
|
298
298
|
| Index | Index | `indx`
|
299
|
-
| Addendum | Add. | `add` (
|
299
|
+
| Addendum | Add. | `add` (TBC with NIST)
|
300
300
|
| Insert | Ins. | `ins` (TBC with NIST)
|
301
301
|
| Errata | Err. | `err` (TBC with NIST)
|
302
|
+
| Appendix | App. | `app` (TBC with NIST)
|
302
303
|
|
303
304
|
|===
|
304
305
|
|
data/exe/nist-pubid
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'nist_pubid'
|
6
|
+
require 'optparse'
|
7
|
+
|
8
|
+
OptionParser.new do |opts|
|
9
|
+
opts.banner = "Usage: nist_pubid [ -s | PubID ]"
|
10
|
+
opts.on("-s", "--status", "Get a NIST Tech Pubs list with final PubID") do
|
11
|
+
puts "Current document ID | DOI | Title | Final PubID"
|
12
|
+
NistPubid::NistTechPubs.status.each do |row|
|
13
|
+
puts row.join(" | ")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
opts.on("-h", "--help", "Prints this help") do
|
18
|
+
puts opts
|
19
|
+
exit
|
20
|
+
end
|
21
|
+
|
22
|
+
end.parse!
|
23
|
+
|
24
|
+
code = ARGV.join(" ")
|
25
|
+
puts NistPubid::Document.parse(code).to_s(:short) unless code.empty?
|
data/lib/nist_pubid/document.rb
CHANGED
@@ -35,10 +35,40 @@ EDITION_DESC = {
|
|
35
35
|
mr: "e",
|
36
36
|
}.freeze
|
37
37
|
|
38
|
+
SUPPLEMENT_DESC = {
|
39
|
+
long: " Supplement ",
|
40
|
+
abbrev: " Suppl. ",
|
41
|
+
short: "sup",
|
42
|
+
mr: "sup",
|
43
|
+
}.freeze
|
44
|
+
|
45
|
+
SECTION_DESC = {
|
46
|
+
long: " Section ",
|
47
|
+
abbrev: " Sec. ",
|
48
|
+
short: "sec",
|
49
|
+
mr: "sec",
|
50
|
+
}.freeze
|
51
|
+
|
52
|
+
APPENDIX_DESC = {
|
53
|
+
long: " Appendix ",
|
54
|
+
abbrev: " App. ",
|
55
|
+
short: "app",
|
56
|
+
mr: "app",
|
57
|
+
}.freeze
|
58
|
+
|
59
|
+
ERRATA_DESC = {
|
60
|
+
long: " Errata ",
|
61
|
+
abbrev: " Err. ",
|
62
|
+
short: "-err",
|
63
|
+
mr: "-err",
|
64
|
+
}.freeze
|
65
|
+
|
38
66
|
module NistPubid
|
39
67
|
class Document
|
40
68
|
attr_accessor :serie, :code, :revision, :publisher, :version, :volume,
|
41
|
-
:part, :addendum, :stage, :translation, :
|
69
|
+
:part, :addendum, :stage, :translation, :update_number,
|
70
|
+
:edition, :supplement, :update_year, :section, :appendix,
|
71
|
+
:errata
|
42
72
|
|
43
73
|
def initialize(publisher:, serie:, docnumber:, **opts)
|
44
74
|
@publisher = Publisher.new(publisher: publisher)
|
@@ -47,28 +77,128 @@ module NistPubid
|
|
47
77
|
opts.each { |key, value| send("#{key}=", value) }
|
48
78
|
end
|
49
79
|
|
80
|
+
# returns weight based on amount of defined attributes
|
81
|
+
def weight
|
82
|
+
instance_variables.inject(0) do |sum, var|
|
83
|
+
sum + (instance_variable_get(var).nil? ? 0 : 1)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def merge(document)
|
88
|
+
instance_variables.each do |var|
|
89
|
+
val = document.instance_variable_get(var)
|
90
|
+
instance_variable_set(var, val) unless val.nil?
|
91
|
+
end
|
92
|
+
|
93
|
+
self
|
94
|
+
end
|
95
|
+
|
96
|
+
def self.update_old_code(code)
|
97
|
+
code = code.gsub("FIPS", "FIPS PUB") unless code.include?("FIPS PUB")
|
98
|
+
code.gsub("NBS MONO", "NBS MN").gsub("NIST MONO", "NIST MN")
|
99
|
+
.gsub("NIST MP", "NBS MP")
|
100
|
+
.gsub("NIST SP 304a-2017", "NIST SP 304A-2017")
|
101
|
+
.gsub("NIST SP 260-162 2006ed.", "NIST SP 260-162e2006")
|
102
|
+
.gsub("NBS CIRC 154suprev", "NBS CIRC 154r1sup")
|
103
|
+
.gsub("NIST SP 260-126 rev 2013", "NIST SP 260-126r2013")
|
104
|
+
.gsub(/(?<=NBS MP )(\d+)\((\d+)\)/, '\1e\2')
|
105
|
+
.gsub(/(?<=\d)es/, "(spa)")
|
106
|
+
.gsub(/(?<=\d)chi/, "(zho)")
|
107
|
+
.gsub(/(?<=\d)viet/, "(vie)")
|
108
|
+
.gsub(/(?<=\d)port/, "(por)")
|
109
|
+
# .gsub(/^LCIRC/, "NBS LC")
|
110
|
+
end
|
111
|
+
|
50
112
|
def self.parse(code)
|
113
|
+
code = update_old_code(code)
|
51
114
|
matches = {
|
52
115
|
publisher: match(Publisher.regexp, code) || "NIST",
|
53
|
-
serie: match(Serie.regexp, code)
|
116
|
+
serie: match(Serie.regexp, code),
|
54
117
|
stage: Stage.parse(code),
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
118
|
+
part: /(?<=(\.))?(?<![a-z])+(?:pt|Pt|p)(?(1)-)([A-Z\d]+)/.match(code)
|
119
|
+
&.[](2),
|
120
|
+
version:
|
121
|
+
/(?<=\.)?(?:(?:ver)((?(1)[-\d]|[.\d])+|\d+)|(?:v)(\d+\.[.\d]+))/
|
122
|
+
.match(code).to_a[1..-1]&.compact&.first&.gsub(/-/, "."),
|
123
|
+
revision: /[\da](?:r|Rev\.\s|([0-9]+[A-Za-z]*-[0-9]+[A-Za-z]*-))([\da]+)/
|
60
124
|
.match(code)&.[](2),
|
61
|
-
addendum: match(/(?<=(\.))?(add(
|
62
|
-
update: match(/(?<=Upd\s)([\d:]+)/, code),
|
125
|
+
addendum: match(/(?<=(\.))?(add(?:-\d+)?|Addendum)/, code),
|
63
126
|
edition: /(?<=[^a-z])(?<=(\.))?(?:e(?(1)-)|Ed\.\s)(\d+)/
|
64
127
|
.match(code)&.[](2),
|
128
|
+
section: /(?<=sec)\d+/.match(code)&.to_s,
|
129
|
+
appendix: /\d+app/.match(code)&.to_s,
|
130
|
+
errata: /-errata/.match(code)&.to_s
|
65
131
|
}
|
66
|
-
|
132
|
+
supplement = /(?:(?:supp?)-?(\d*)|Supplement|Suppl.)/
|
133
|
+
.match(code)
|
134
|
+
unless supplement.nil?
|
135
|
+
matches[:supplement] = supplement[1].nil? ? "" : supplement[1]
|
136
|
+
end
|
137
|
+
|
138
|
+
update = code.scan(/((?<=Upd)\s?[\d:]+|-upd)-?(\d*)/).first
|
139
|
+
|
140
|
+
(matches[:update_number], matches[:update_year]) = update if update
|
141
|
+
|
142
|
+
unless matches[:serie]
|
143
|
+
raise Errors::ParseError.new("failed to parse serie for #{code}")
|
144
|
+
end
|
145
|
+
|
146
|
+
unless matches[:stage].nil?
|
147
|
+
code = code.gsub(matches[:stage].original_code, "")
|
148
|
+
end
|
149
|
+
|
150
|
+
unless ["NBS CSM", "NBS CS"].include?(matches[:serie])
|
151
|
+
matches[:volume] = /(?<=(\.))?v(?(1)-)(\d+)(?!\.\d+)/.match(code)&.[](2)
|
152
|
+
end
|
153
|
+
|
154
|
+
matches[:revision] = nil if matches[:addendum]
|
155
|
+
|
156
|
+
matches[:docnumber] = parse_docnumber(matches[:serie], code)
|
157
|
+
|
158
|
+
matches[:serie] = SERIES["mr"].invert[matches[:serie]] || matches[:serie]
|
159
|
+
# matches[:serie].gsub!(/\./, " ")
|
67
160
|
matches[:translation] = match(/(?<=\()\w{3}(?=\))/, code)
|
68
161
|
|
69
162
|
new(**matches)
|
70
163
|
end
|
71
164
|
|
165
|
+
def self.parse_docnumber(serie, code)
|
166
|
+
localities = "[Pp]t\\d+|r(?:\\d+|[A-Za-z]?)|e\\d+|p|v|sec\\d+"
|
167
|
+
excluded_parts = "(?!#{localities}|supp?)"
|
168
|
+
|
169
|
+
if ["NBS CSM", "NBS CS"].include?(serie)
|
170
|
+
docnumber = /v(\d+)n(\d+)/.match(code).to_a[1..-1]&.join("-")
|
171
|
+
else
|
172
|
+
# match docnumbers with localities in the first part, like NBS CIRC 11e2-1915
|
173
|
+
docnumber =
|
174
|
+
/(?:#{serie.gsub(" ", "\s|\.")})(?:\s|\.)?([0-9]+)(?:#{localities})(-[0-9]+)?/
|
175
|
+
.match(code)&.captures&.join
|
176
|
+
|
177
|
+
docnumber ||=
|
178
|
+
/(?:#{serie.gsub(" ", "\s|\.")})(?:\s|\.)? # match serie
|
179
|
+
([0-9]+ # first part of report number
|
180
|
+
(?:#{excluded_parts}[A-Za-z]+)? # with letter but without localities
|
181
|
+
(?:-m)? # for NBS CRPL 4-m-5
|
182
|
+
(?:-[A-Z]+)? # for NIST SP 1075-NCNR, NIST SP 1113-BFRL, etc
|
183
|
+
(?:-[0-9.]+)? # second part
|
184
|
+
(?:
|
185
|
+
(?: # only big letter
|
186
|
+
(#{excluded_parts}[A-Z]|(?![a-z]))+|#{excluded_parts}[a-z]?|#{excluded_parts}[a-z]+
|
187
|
+
)? # or small letter but without localities
|
188
|
+
)
|
189
|
+
)/x
|
190
|
+
.match(code)&.[](1)&.upcase
|
191
|
+
end
|
192
|
+
|
193
|
+
unless docnumber
|
194
|
+
raise Errors::ParseError.new(
|
195
|
+
"failed to parse document identifier for #{code}",
|
196
|
+
)
|
197
|
+
end
|
198
|
+
|
199
|
+
docnumber
|
200
|
+
end
|
201
|
+
|
72
202
|
def self.match(regex, code)
|
73
203
|
regex.match(code)&.to_s
|
74
204
|
end
|
@@ -78,6 +208,7 @@ module NistPubid
|
|
78
208
|
result += " " unless format == :short || stage.nil?
|
79
209
|
result += "#{stage&.to_s(format)}"\
|
80
210
|
" #{code}#{render_part(format)}#{render_edition(format)}"\
|
211
|
+
"#{render_localities(format)}"\
|
81
212
|
"#{render_update(format)}#{render_translation(format)}"
|
82
213
|
result = render_addendum(result, format)
|
83
214
|
|
@@ -87,13 +218,14 @@ module NistPubid
|
|
87
218
|
end
|
88
219
|
|
89
220
|
def render_serie(format)
|
90
|
-
|
221
|
+
if serie.to_s(format).include?(publisher.to_s(format))
|
222
|
+
return serie.to_s(format)
|
223
|
+
end
|
91
224
|
|
92
225
|
"#{publisher.to_s(format)} #{serie.to_s(format)}"
|
93
226
|
end
|
94
227
|
|
95
228
|
def render_part(format)
|
96
|
-
# TODO: Section, Supplement, Index, Insert, Errata
|
97
229
|
result = ""
|
98
230
|
result += "#{VOLUME_DESC[format]}#{volume}" unless volume.nil?
|
99
231
|
result += "#{PART_DESC[format]}#{part}" unless part.nil?
|
@@ -102,24 +234,50 @@ module NistPubid
|
|
102
234
|
|
103
235
|
def render_edition(format)
|
104
236
|
result = ""
|
105
|
-
|
237
|
+
if revision
|
238
|
+
result += if %i[long abbrev].include?(format) ||
|
239
|
+
[volume, part, supplement, version, edition].any?
|
240
|
+
"#{REVISION_DESC[format]}#{revision}"
|
241
|
+
else
|
242
|
+
"-#{revision}"
|
243
|
+
end
|
244
|
+
end
|
106
245
|
result += "#{VERSION_DESC[format]}#{version}" unless version.nil?
|
107
246
|
result += "#{EDITION_DESC[format]}#{edition}" unless edition.nil?
|
108
247
|
result
|
109
248
|
end
|
110
249
|
|
250
|
+
def render_localities(format)
|
251
|
+
# TODO: Index, Insert
|
252
|
+
|
253
|
+
result = ""
|
254
|
+
result += "#{SUPPLEMENT_DESC[format]}#{supplement}" unless supplement.nil?
|
255
|
+
result += "#{SECTION_DESC[format]}#{section}" unless section.nil?
|
256
|
+
result += "#{APPENDIX_DESC[format]}" unless appendix.nil?
|
257
|
+
result += "#{ERRATA_DESC[format]}" unless errata.nil?
|
258
|
+
|
259
|
+
result
|
260
|
+
end
|
261
|
+
|
111
262
|
def render_update(format)
|
112
|
-
return "" if
|
263
|
+
return "" if update_year.nil?
|
264
|
+
|
265
|
+
if update_number.match?(/\d+/)
|
266
|
+
update_text = update_number
|
267
|
+
update_text += "-#{update_year}" if update_year
|
268
|
+
else
|
269
|
+
update_text = "1"
|
270
|
+
end
|
113
271
|
|
114
272
|
case format
|
115
273
|
when :long
|
116
|
-
" Update #{
|
274
|
+
" Update #{update_text}"
|
117
275
|
when :abbrev
|
118
|
-
" Upd. #{
|
276
|
+
" Upd. #{update_text}"
|
119
277
|
when :short
|
120
|
-
"/Upd
|
278
|
+
"/Upd#{update_text}"
|
121
279
|
when :mr
|
122
|
-
".u#{
|
280
|
+
".u#{update_text}"
|
123
281
|
end
|
124
282
|
end
|
125
283
|
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require "relaton_nist/data_fetcher"
|
2
|
+
require "nokogiri"
|
3
|
+
require "open-uri"
|
4
|
+
|
5
|
+
module NistPubid
|
6
|
+
class NistTechPubs
|
7
|
+
URL = "https://raw.githubusercontent.com/usnistgov/NIST-Tech-Pubs/nist-pages/xml/allrecords.xml".freeze
|
8
|
+
|
9
|
+
@converted_id = @converted_doi = {}
|
10
|
+
|
11
|
+
class << self
|
12
|
+
|
13
|
+
attr_accessor :documents, :converted_id, :converted_doi
|
14
|
+
|
15
|
+
def fetch
|
16
|
+
@documents ||= Nokogiri::XML(URI.open(URL))
|
17
|
+
.xpath("/body/query/doi_record/report-paper/report-paper_metadata")
|
18
|
+
.map { |doc| parse_docid doc }
|
19
|
+
rescue StandardError => e
|
20
|
+
warn e.message
|
21
|
+
[]
|
22
|
+
end
|
23
|
+
|
24
|
+
def convert(doc)
|
25
|
+
id = @converted_id[doc[:id]] ||= NistPubid::Document.parse(doc[:id])
|
26
|
+
return id.to_s(:short) unless doc.key?(:doi)
|
27
|
+
|
28
|
+
begin
|
29
|
+
doi = @converted_doi[doc[:doi]] ||=
|
30
|
+
NistPubid::Document.parse(doc[:doi])
|
31
|
+
rescue Errors::ParseError
|
32
|
+
return id.to_s(:short)
|
33
|
+
end
|
34
|
+
# return more complete pubid
|
35
|
+
id.merge(doi).to_s(:short)
|
36
|
+
rescue Errors::ParseError
|
37
|
+
@converted_doi[doc[:doi]] ||= NistPubid::Document.parse(doc[:doi])
|
38
|
+
.to_s(:short)
|
39
|
+
end
|
40
|
+
|
41
|
+
def parse_docid(doc)
|
42
|
+
id = doc.at("publisher_item/item_number", "publisher_item/identifier")
|
43
|
+
.text.sub(%r{^/}, "")
|
44
|
+
doi = doc.at("doi_data/doi").text.gsub("10.6028/", "")
|
45
|
+
title = doc.at("titles/title").text
|
46
|
+
title += " #{doc.at('titles/subtitle').text}" if doc.at("titles/subtitle")
|
47
|
+
case doi
|
48
|
+
when "10.6028/NBS.CIRC.12e2revjune" then id.sub!("13e", "12e")
|
49
|
+
when "10.6028/NBS.CIRC.36e2" then id.sub!("46e", "36e")
|
50
|
+
when "10.6028/NBS.HB.67suppJune1967" then id.sub!("1965", "1967")
|
51
|
+
when "10.6028/NBS.HB.105-1r1990" then id.sub!("105-1-1990", "105-1r1990")
|
52
|
+
when "10.6028/NIST.HB.150-10-1995" then id.sub!(/150-10$/, "150-10-1995")
|
53
|
+
end
|
54
|
+
|
55
|
+
{ id: id, doi: doi, title: title }
|
56
|
+
end
|
57
|
+
|
58
|
+
def comply_with_pubid
|
59
|
+
fetch.select do |doc|
|
60
|
+
convert(doc) == doc[:id]
|
61
|
+
rescue Errors::ParseError
|
62
|
+
false
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def different_with_pubid
|
67
|
+
fetch.reject do |doc|
|
68
|
+
convert(doc) == doc[:id]
|
69
|
+
rescue Errors::ParseError
|
70
|
+
true
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def parse_fail_with_pubid
|
75
|
+
fetch.select do |doc|
|
76
|
+
convert(doc) && false
|
77
|
+
rescue Errors::ParseError
|
78
|
+
true
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# returning current document id, doi, title and final PubID
|
83
|
+
def status
|
84
|
+
fetch.map do |doc|
|
85
|
+
[doc[:id], doc[:doi], doc[:title], convert(doc)]
|
86
|
+
rescue Errors::ParseError
|
87
|
+
[doc[:id], doc[:doi], doc[:title], "parse error"]
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/lib/nist_pubid/serie.rb
CHANGED
@@ -18,7 +18,9 @@ module NistPubid
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.regexp
|
21
|
-
/(#{(SERIES["long"].keys + SERIES["mr"].values
|
21
|
+
/(#{(SERIES["long"].keys + SERIES["mr"].values
|
22
|
+
.map { |v| v.gsub(".", '\.') } + ["NISTIR"])
|
23
|
+
.sort_by(&:length).reverse.join('|')})/
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
data/lib/nist_pubid/version.rb
CHANGED
data/lib/nist_pubid.rb
CHANGED
data/nist_pubid.gemspec
CHANGED
@@ -28,4 +28,9 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_development_dependency "rake", "~> 13.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
+
spec.add_development_dependency "vcr"
|
32
|
+
spec.add_development_dependency "webmock"
|
33
|
+
|
34
|
+
spec.add_dependency "relaton-nist"
|
35
|
+
spec.add_dependency "nokogiri"
|
31
36
|
end
|
data/series.yaml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nist-pubid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -38,10 +38,67 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
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'
|
41
97
|
description: Library to generate, parse and manipulate NIST PubID.
|
42
98
|
email:
|
43
99
|
- open.source@ribose.com
|
44
|
-
executables:
|
100
|
+
executables:
|
101
|
+
- nist-pubid
|
45
102
|
extensions: []
|
46
103
|
extra_rdoc_files:
|
47
104
|
- README.adoc
|
@@ -55,8 +112,11 @@ files:
|
|
55
112
|
- LICENSE.txt
|
56
113
|
- README.adoc
|
57
114
|
- Rakefile
|
115
|
+
- exe/nist-pubid
|
58
116
|
- lib/nist_pubid.rb
|
59
117
|
- lib/nist_pubid/document.rb
|
118
|
+
- lib/nist_pubid/errors.rb
|
119
|
+
- lib/nist_pubid/nist_tech_pubs.rb
|
60
120
|
- lib/nist_pubid/publisher.rb
|
61
121
|
- lib/nist_pubid/serie.rb
|
62
122
|
- lib/nist_pubid/stage.rb
|
@@ -84,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
144
|
- !ruby/object:Gem::Version
|
85
145
|
version: '0'
|
86
146
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.3.3
|
88
148
|
signing_key:
|
89
149
|
specification_version: 4
|
90
150
|
summary: Library to generate, parse and manipulate NIST PubID.
|