relaton-gb 0.11.0 → 0.11.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: 2dcdabd1b722b0ba76bbd8be2c3925920b2081a7d775e1e02f43f198796dbe1c
4
- data.tar.gz: c4a92af3aad9e678571aed485efe3875069db3fb353bacfb5481cc3a49844623
3
+ metadata.gz: 8dde73dc09260674db2ebe47a9b589e5c60bc0b1d5ea1096df990301b841e91b
4
+ data.tar.gz: bddb4a7fe6e4e8b3119dc272634cf6492f6388f8151fe4262857d6afb5137756
5
5
  SHA512:
6
- metadata.gz: cfac8c58345f32fa9f5211b5883f85f4e13fe2955cf426d934fa584aa3b07994303b7bfb1d7ee71bcbaede64294cff1593a411f4cde41c196793fc0292a87ae5
7
- data.tar.gz: e82420161d12134e51fcbd40bcfe84450eddea234e2215defb95fe3226a1d3054eb725df993b9d8bd439f1179e6fadf750224269780ffe92f01cf73c547beddf
6
+ metadata.gz: 99d20c25fed779ef7c8285ad97ae0b7352393e4d6804785cfe40c5c7d0fab4453ba550c290d9a25f9d3001430869c99420be94457cf3c79dab9f04c11cd40308
7
+ data.tar.gz: 6f1c161f0f480b4209a2b155bbaaa0d62e5cfd2bce6be9542561c7a37f6aa7ecba5daeeae9a2cef93f5dc0bd1fafa813bd73db06c08371ccabcc79c4bece4e86
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonGb
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
@@ -6,7 +6,11 @@ module RelatonGb
6
6
  def from_xml(xml)
7
7
  doc = Nokogiri::XML(xml)
8
8
  gbitem = doc.at "/bibitem|/bibdata"
9
- GbBibliographicItem.new item_data(gbitem)
9
+ if gbitem
10
+ GbBibliographicItem.new item_data(gbitem)
11
+ else
12
+ warn "[relato-gb] can't find bibitem or bibdata element in the XML"
13
+ end
10
14
  end
11
15
 
12
16
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.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