relaton-itu 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: caf4c7e674479b6b0caaa75dd8ef0dff3c1f3274db3d8ca8c2f3a139b7709d46
4
- data.tar.gz: c39ba0a9d6171fa83e91c9a5cc1109ef5c5150854b45692daafe3f8b7acb50a1
3
+ metadata.gz: 4d41566d2edd5f2e8c2757b8c74fb68c26c4b56943f84dcad3cb98d129023db1
4
+ data.tar.gz: ad70f1d469d40195f950201d3e15db288764469f6d940d8abe8bdafdec450222
5
5
  SHA512:
6
- metadata.gz: 4d27fe629aa5b8eb16512592ec6f180c37ed1c620a4be3802298992b31983ac63184a46f3e37c14dc49a870576e4826f0c85a5a2de95ea1c208c9e99d3a15fc8
7
- data.tar.gz: dac4e205554c678dbd95ee90b0e899e740f9e4f334df1914f6dbd394a8e2a8432986c111b1d2f3b8107a504758664e82e600b19664c13e30fbd0045c479daa82
6
+ metadata.gz: 992227b0d7c971aa6908aa68e4b274033232067af58c534a53ec7e4faab024faeb79ae9cbda91f7251d6f3ccb895e484bb5f5821500d8c2e946e0d30205af7f2
7
+ data.tar.gz: 3f6cff1e0c18a5e94c8f1f5c9beac1c24b346b7b462060f133c7da634b33f497d5d65a0bf807d5e0a43e57e96d8dcdfd259cfb6bf97e7233975870f6b9f76efe
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
@@ -9,7 +9,11 @@ module RelatonItu
9
9
  def from_xml(xml)
10
10
  doc = Nokogiri::XML(xml)
11
11
  ituitem = doc.at "/bibitem|/bibdata"
12
- ItuBibliographicItem.new item_data(ituitem)
12
+ if ituitem
13
+ ItuBibliographicItem.new item_data(ituitem)
14
+ elsif
15
+ warn "[relato-itu] can't find bibitem or bibdata element in the XML"
16
+ end
13
17
  end
14
18
 
15
19
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
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