relaton-nist 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_nist/scrapper.rb +6 -6
- data/lib/relaton_nist/version.rb +1 -1
- data/relaton_nist.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f8ebd25c3d58d4680e06a0e3deea8771165830e754b8bdba7efa33e11438ae9
|
4
|
+
data.tar.gz: 49039dee4164341953e7d3f4b0c886f25a568987e88d63656057dbb4733cb30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e5021613582dfbd5ae9ece8a805d436e86e917f0041d6d6584f6955fd6f7c6b52c6e9e93ba3ed821f6adfc4d7789001eabcbe06863a82ec29b89f681b4ac87f
|
7
|
+
data.tar.gz: a2ad1bffcbfe3bc948d63d3b0d9ffc2b287a344fa6baf9f62e4fc672dc8b3bdacd4ff3c5ef669cf1325dbf5c4a994a468fbcc187624353d00dc84e2a67fa19ff
|
@@ -16,10 +16,10 @@ module RelatonNist
|
|
16
16
|
else
|
17
17
|
from_csrs hit_data
|
18
18
|
end
|
19
|
-
doctype = "standard"
|
19
|
+
# doctype = "standard"
|
20
20
|
titles = fetch_titles(hit_data)
|
21
21
|
unless /^(SP|NISTIR|FIPS) / =~ item_data[:docid][0].id
|
22
|
-
doctype = id_cleanup(item_data[:docid][0].id)
|
22
|
+
# doctype = id_cleanup(item_data[:docid][0].id)
|
23
23
|
item_data[:docid][0] = RelatonBib::DocumentIdentifier.new(
|
24
24
|
id: titles[0][:content].upcase, type: "NIST",
|
25
25
|
)
|
@@ -78,9 +78,9 @@ module RelatonNist
|
|
78
78
|
# Strip status from doc id
|
79
79
|
# @param id String
|
80
80
|
# @return String
|
81
|
-
def id_cleanup(id)
|
82
|
-
|
83
|
-
end
|
81
|
+
# def id_cleanup(id)
|
82
|
+
# id.sub(/ \(WITHDRAWN\)/, "").sub(/ \(([^) ]+ )?DRAFT\)/i, "")
|
83
|
+
# end
|
84
84
|
|
85
85
|
# Get page.
|
86
86
|
# @param path [String] page's path
|
@@ -304,7 +304,7 @@ module RelatonNist
|
|
304
304
|
def name_parts(part, lang, script)
|
305
305
|
return [] unless part
|
306
306
|
|
307
|
-
[RelatonBib::LocalizedString.new(
|
307
|
+
[RelatonBib::LocalizedString.new(part, lang, script)]
|
308
308
|
end
|
309
309
|
|
310
310
|
# @param doc [String, Hash]
|
data/lib/relaton_nist/version.rb
CHANGED
data/relaton_nist.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-nist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.0.
|
159
|
+
version: 1.0.4
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.0.
|
166
|
+
version: 1.0.4
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rubyzip
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|