relaton-bib 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: 2d8b311616840c90e25325574979fe74ec6253ef5d23c0873545255ff3dce033
4
- data.tar.gz: b144ea5a04e375c1a97ccc06891e0660b790048394a65e272f54ffda8d8c2edb
3
+ metadata.gz: 924c1178be50079233bcdaab53273e403db6d0b88eb52072dda0c35c407cbb1b
4
+ data.tar.gz: aa998727f67bfa48b1f332727e1fcd528c0f875ea76ec14b581273ad17364f3f
5
5
  SHA512:
6
- metadata.gz: 81c5c5906f25a7f2289f9393efce6233ba11c7d8a0ffa0dfa1b7b863d69413756a6df679e5e0222fc744b3450bb6610499cbabe89da8b75dbaa00c1d9502080b
7
- data.tar.gz: 31a66938522b61ca282a674106023d65c6250d0636f477b1dbed979427092a2f5aa3f6f8863331190b101a0eb56aa8e96dafed023c17a37f3c0459b148b2e413
6
+ metadata.gz: 94db650838f6549d4d8d954e5a3af5e261dea2450638a3b6fc3b1a6c265b3f83888f2cace0043bad06b43f722b9aff9ed74f675a5bc0efe26d98d1f0dd74f19c
7
+ data.tar.gz: 93bf2cf0b5a504e909ca03794fe27c53bc62c08b88c1d75be1be59681898b664e1c5bc39ccebc94f4b04d2888d9448da3a2dbe02a98dd08d3d82800d1418495c
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
@@ -7,7 +7,11 @@ module RelatonBib
7
7
  doc = Nokogiri::XML(xml)
8
8
  doc.remove_namespaces!
9
9
  bibitem = doc.at "/bibitem|/bibdata"
10
- BibliographicItem.new(item_data(bibitem))
10
+ if bibitem
11
+ BibliographicItem.new(item_data(bibitem))
12
+ else
13
+ warn "[relato-bib] can't find bibitem or bibdata element in the XML"
14
+ end
11
15
  end
12
16
 
13
17
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
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: debase