relaton-nist 0.8.0 → 0.8.1

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: 5982953e5529d1c1617fd10bcc2ac6c7e12bbf9b5c9d035ace66d0ca8affbf6f
4
- data.tar.gz: 434af1b628c2151aea0b989ec9f72de2cd8759558ebe4cd434dfddeba5d68b26
3
+ metadata.gz: 06d8c511378ca4a23050ca5a6e1d65b8d78fda5f8104cb52da5619455e6dbfa2
4
+ data.tar.gz: 5587938b2ff4536214f5e159e6eecf04318c03aaaeaff0fd3cbe1dbd19740daf
5
5
  SHA512:
6
- metadata.gz: 6f4ebae4c3fdc2fce1381849d6ce41c6766514e1a1148d8f048ea83a5e7b2d1cbd4950fced9b40b2abce13ae0f7aca437abaeee301acd6b7827bc54c9f940899
7
- data.tar.gz: 95fb3c6a45e98e42b4c0ad7fdd10e618fc7b911bf55fa6f4484d01d2cdfa6c87638d65c2978e8a9351934192f63a4ffe68d5344f603516de577ab596299bc92b
6
+ metadata.gz: e56fb78bdcee718e5c7543d6a0e6c5af6a45b739319f9ddaaf1dd233894b196b8bb4ea8d3442af2d4918f73e96d73ff78ebfbbc394da964e05078ab8375c012e
7
+ data.tar.gz: b673fbe4caa5e9bdd30868aac90d1fed5d146cbdc2ee6e2eb42da8b59ad53e38feaa66052b04fa0e2eb90b0889f866f3c61a635545168955c35e861d5bba9c91
@@ -1,3 +1,3 @@
1
1
  module RelatonNist
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
@@ -4,7 +4,11 @@ module RelatonNist
4
4
  def from_xml(xml)
5
5
  doc = Nokogiri::XML xml
6
6
  nistitem = doc.at("/bibitem|/bibdata")
7
- NistBibliographicItem.new(item_data(nistitem))
7
+ if nistitem
8
+ NistBibliographicItem.new(item_data(nistitem))
9
+ elsif
10
+ warn "[relato-nist] can't find bibitem or bibdata element in the XML"
11
+ end
8
12
  end
9
13
 
10
14
  private
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.8.0
4
+ version: 0.8.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: 2020-02-25 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug