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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4ef478920734e534e1826dbe3f4797f0d7efb6ec0be12d20d2524a51ce4e8eb
4
- data.tar.gz: 2f22189c970b05874d390af4f95f322e9b7412ad65568c56740af2985359d4f5
3
+ metadata.gz: 434eb7054df007c7604456b7770b728f5396b6bba71fd0f9e922147d0522962d
4
+ data.tar.gz: b486651f96863f6d4b5c3b3e8e731fbe16d056188a1fe072108e9c368b057d4a
5
5
  SHA512:
6
- metadata.gz: 28f16fbd808e2e59a341201dd61e26960c1243d9650ef5862c16b8205b7e459b943645780cbf841d3d329f42fc743fee33718253e401b20cb388bec57fa429bf
7
- data.tar.gz: ffdb848ef8d9c949dc246f197487eaa80e5364c1827f6207cdbab062a89ff93d7352c87b781ee0854fb4dab8280a5a18ffebab345b441996e434d2576a3f4b9b
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
- - 2.4.0
7
- before_install: gem install bundler -v 2.0.1
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.0)
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.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
@@ -1,3 +1,3 @@
1
1
  module NistBib
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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
- ::Nistbib::NistBibliography.get(code, date, opts)
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.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-04 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler