relaton-nist 0.3.6 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/macos.yml +27 -0
- data/.github/workflows/ubuntu.yml +27 -0
- data/.github/workflows/windows.yml +30 -0
- data/Gemfile.lock +9 -5
- data/grammars/basicdoc.rng +1029 -0
- data/grammars/biblio.rng +1142 -0
- data/grammars/isodoc.rng +514 -0
- data/grammars/isostandard.rng +857 -0
- data/grammars/nist.rng +227 -0
- data/grammars/reqt.rng +165 -0
- data/lib/relaton_nist.rb +9 -0
- data/lib/relaton_nist/hit_collection.rb +3 -1
- data/lib/relaton_nist/nist_bibliographic_item.rb +1 -1
- data/lib/relaton_nist/nist_bibliography.rb +2 -0
- data/lib/relaton_nist/processor.rb +7 -1
- data/lib/relaton_nist/scrapper.rb +2 -2
- data/lib/relaton_nist/version.rb +1 -1
- data/relaton_nist.gemspec +2 -1
- metadata +28 -9
- data/.travis.yml +0 -18
- data/appveyor.yml +0 -37
- data/lib/relaton_nist/data/pubs-export.zip +0 -0
@@ -21,13 +21,13 @@ module RelatonNist
|
|
21
21
|
unless /^(SP|NISTIR|FIPS) / =~ item_data[:docid][0].id
|
22
22
|
doctype = id_cleanup(item_data[:docid][0].id)
|
23
23
|
item_data[:docid][0] = RelatonBib::DocumentIdentifier.new(
|
24
|
-
id: titles[0][:content], type: "NIST",
|
24
|
+
id: titles[0][:content].upcase, type: "NIST",
|
25
25
|
)
|
26
26
|
end
|
27
27
|
item_data[:fetched] = Date.today.to_s
|
28
28
|
item_data[:type] = "standard"
|
29
29
|
item_data[:title] = titles
|
30
|
-
item_data[:doctype] = doctype
|
30
|
+
item_data[:doctype] = "standard" # doctype
|
31
31
|
|
32
32
|
NistBibliographicItem.new(**item_data)
|
33
33
|
end
|
data/lib/relaton_nist/version.rb
CHANGED
data/relaton_nist.gemspec
CHANGED
@@ -34,7 +34,8 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_development_dependency "simplecov"
|
35
35
|
spec.add_development_dependency "vcr"
|
36
36
|
spec.add_development_dependency "webmock"
|
37
|
+
spec.add_development_dependency "ruby-jing"
|
37
38
|
|
38
|
-
spec.add_dependency "relaton-bib", "~> 0.
|
39
|
+
spec.add_dependency "relaton-bib", "~> 0.4.0"
|
39
40
|
spec.add_dependency "rubyzip"
|
40
41
|
end
|
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: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,20 +164,34 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: ruby-jing
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: relaton-bib
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
170
184
|
requirements:
|
171
185
|
- - "~>"
|
172
186
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
187
|
+
version: 0.4.0
|
174
188
|
type: :runtime
|
175
189
|
prerelease: false
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
192
|
- - "~>"
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
194
|
+
version: 0.4.0
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: rubyzip
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,21 +213,27 @@ executables: []
|
|
199
213
|
extensions: []
|
200
214
|
extra_rdoc_files: []
|
201
215
|
files:
|
216
|
+
- ".github/workflows/macos.yml"
|
217
|
+
- ".github/workflows/ubuntu.yml"
|
218
|
+
- ".github/workflows/windows.yml"
|
202
219
|
- ".gitignore"
|
203
220
|
- ".rspec"
|
204
221
|
- ".rubocop.yml"
|
205
|
-
- ".travis.yml"
|
206
222
|
- Gemfile
|
207
223
|
- Gemfile.lock
|
208
224
|
- LICENSE.txt
|
209
225
|
- README.adoc
|
210
226
|
- Rakefile
|
211
|
-
- appveyor.yml
|
212
227
|
- bin/console
|
213
228
|
- bin/setup
|
229
|
+
- grammars/basicdoc.rng
|
230
|
+
- grammars/biblio.rng
|
231
|
+
- grammars/isodoc.rng
|
232
|
+
- grammars/isostandard.rng
|
233
|
+
- grammars/nist.rng
|
234
|
+
- grammars/reqt.rng
|
214
235
|
- lib/relaton_nist.rb
|
215
236
|
- lib/relaton_nist/comment_period.rb
|
216
|
-
- lib/relaton_nist/data/pubs-export.zip
|
217
237
|
- lib/relaton_nist/document_status.rb
|
218
238
|
- lib/relaton_nist/hash_converter.rb
|
219
239
|
- lib/relaton_nist/hit.rb
|
@@ -245,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
265
|
- !ruby/object:Gem::Version
|
246
266
|
version: '0'
|
247
267
|
requirements: []
|
248
|
-
|
249
|
-
rubygems_version: 2.6.12
|
268
|
+
rubygems_version: 3.0.6
|
250
269
|
signing_key:
|
251
270
|
specification_version: 4
|
252
271
|
summary: 'RelatonNist: retrive NIST standards.'
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# Auto-generated !!! Do not edit it manually
|
2
|
-
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
os:
|
6
|
-
- linux
|
7
|
-
- osx
|
8
|
-
rvm:
|
9
|
-
- 2.6
|
10
|
-
- 2.5
|
11
|
-
- 2.4
|
12
|
-
- ruby-head
|
13
|
-
before_install:
|
14
|
-
- gem install bundler -v "~> 2"
|
15
|
-
- bundle update
|
16
|
-
matrix:
|
17
|
-
allow_failures:
|
18
|
-
- rvm: ruby-head
|
data/appveyor.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Auto-generated !!! Do not edit it manually
|
2
|
-
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
-
version: '{build}'
|
4
|
-
|
5
|
-
cache:
|
6
|
-
- vendor/bundle
|
7
|
-
|
8
|
-
environment:
|
9
|
-
matrix:
|
10
|
-
- RUBY_VERSION: 26
|
11
|
-
- RUBY_VERSION: 25
|
12
|
-
- RUBY_VERSION: 24
|
13
|
-
- RUBY_VERSION: _trunk
|
14
|
-
|
15
|
-
matrix:
|
16
|
-
allow_failures:
|
17
|
-
- RUBY_VERSION: _trunk
|
18
|
-
|
19
|
-
install:
|
20
|
-
- ps: . { iwr -useb https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/appveyor.ps1 } | iex
|
21
|
-
- refreshenv
|
22
|
-
|
23
|
-
build_script:
|
24
|
-
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
25
|
-
- set GIT_TERMINAL_PROMPT=0
|
26
|
-
- gem install bundler -v "~> 2"
|
27
|
-
- bundle config --local path vendor/bundle
|
28
|
-
- bundle update
|
29
|
-
- bundle install
|
30
|
-
|
31
|
-
before_test:
|
32
|
-
- ruby -v
|
33
|
-
- gem -v
|
34
|
-
- bundle -v
|
35
|
-
|
36
|
-
test_script:
|
37
|
-
- bundle exec rake
|
Binary file
|