nistbib 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -4
- data/Gemfile.lock +2 -2
- data/lib/nistbib/nist_bibliography.rb +1 -5
- data/lib/nistbib/version.rb +1 -1
- data/lib/relaton/processor.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 434eb7054df007c7604456b7770b728f5396b6bba71fd0f9e922147d0522962d
|
4
|
+
data.tar.gz: b486651f96863f6d4b5c3b3e8e731fbe16d056188a1fe072108e9c368b057d4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b366f616b619aaa927a4312af17ca9eb9c2928ec7483acc4dcb3b6f4c5ddc858656ebbe72ea49e98cff7c42e3476aa4afcc5fb934bce5a7c21b3ca3a56ab34
|
7
|
+
data.tar.gz: 040e6331167a4c779c61d348fb230947c145ddb064d2359e3ded3dafd898d46d443cbbe44fac0d3f092d2e47c0151c4a468a0558ee1706076aaaec259ece416c
|
data/.travis.yml
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
1
|
language: ruby
|
4
2
|
cache: bundler
|
3
|
+
os:
|
4
|
+
- linux
|
5
|
+
- osx
|
5
6
|
rvm:
|
6
|
-
|
7
|
-
|
7
|
+
- 2.5
|
8
|
+
- 2.4
|
9
|
+
- ruby-head
|
10
|
+
before_install:
|
11
|
+
- gem install bundler -v 2.0.1
|
12
|
+
- bundle update
|
13
|
+
matrix:
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nistbib (0.1.
|
4
|
+
nistbib (0.1.2)
|
5
5
|
iso-bib-item (~> 0.4.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
equivalent-xml (0.6.0)
|
22
22
|
nokogiri (>= 1.4.3)
|
23
23
|
hashdiff (0.3.8)
|
24
|
-
iso-bib-item (0.4.
|
24
|
+
iso-bib-item (0.4.5)
|
25
25
|
isoics (~> 0.1.6)
|
26
26
|
nokogiri (~> 1.8.4)
|
27
27
|
ruby_deep_clone (~> 0.8.0)
|
@@ -93,13 +93,9 @@ module NistBib
|
|
93
93
|
if /\d-\d/ =~ code
|
94
94
|
warn "The provided document part may not exist, or the document "\
|
95
95
|
"may no longer be published in parts."
|
96
|
-
else
|
97
|
-
warn "If you wanted to cite all document parts for the reference, "\
|
98
|
-
"use \"#{code} (all parts)\".\nIf the document is not a standard, "\
|
99
|
-
"use its document type abbreviation (TS, TR, PAS, Guide)."
|
100
96
|
end
|
101
97
|
nil
|
102
98
|
end
|
103
99
|
end
|
104
100
|
end
|
105
|
-
end
|
101
|
+
end
|
data/lib/nistbib/version.rb
CHANGED
data/lib/relaton/processor.rb
CHANGED
@@ -7,12 +7,12 @@ module Relaton
|
|
7
7
|
def initialize
|
8
8
|
@short = :nistbib
|
9
9
|
@prefix = "NIST"
|
10
|
-
@defaultprefix = %r{^(NIST)[ /]}
|
10
|
+
@defaultprefix = %r{^(NIST|NISTGCR|ITL Bulletin|JPCRD|NISTIR|CSRC)[ /]}
|
11
11
|
@idtype = "NIST"
|
12
12
|
end
|
13
13
|
|
14
14
|
def get(code, date, opts)
|
15
|
-
::
|
15
|
+
::NistBib::NistBibliography.get(code, date, opts)
|
16
16
|
end
|
17
17
|
|
18
18
|
def from_xml(xml)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nistbib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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: 2019-04-
|
11
|
+
date: 2019-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|