relaton-omg 0.2.0 → 0.2.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: a80964a90260f50b750dbba7e6ee0eff9202a0b31a012636c2450efc7093003e
4
- data.tar.gz: 7ad2e5ee6e3ec5ae718dd9cedaaf491802fbdff0a15c7b4e48bd197319ca483d
3
+ metadata.gz: 8a3fa25520ee5306759f37d20b34898fd15338bcca3817989ecdbd237e6b1b41
4
+ data.tar.gz: 0a4b60e966d282a143e0a5b4ced089228f0e8bc29730b2eb981b89a795b8f679
5
5
  SHA512:
6
- metadata.gz: ad4bdd369f9f780cdfc4ea21d3fd3803b123bd58219d408f60abdf1af8b9d9af6f8acf8b8b0831299865f8878d6a3b82c880a13d1524270c6d33af9f9d49a56a
7
- data.tar.gz: 34107a67c9417f3f406b6c3d230ce67e96dae7515a2fbe547f4d26462cd0eb6aa27d56cb136bf06ebfbb94f14b7290c3cefa8b78b3c31f9c856e530673f4bbdc
6
+ metadata.gz: b3b8ac6d1f2d426f9abd3fc5e3d55c161f96f2d8ae499f7645ea215de2e71558455f2715c2219acdc5fc44a1a0f876b5a6a87cd163a7c181de78f4b5f89113b8
7
+ data.tar.gz: 1d0f01a06e0e3b1d1f2dc4e0c8753b38b5b807be2fea8a266c726a2daf8d825026e290ed9baeed6a88985a70be42ab54df2d4af3037a426db83845bb4f2cba1c
@@ -1,3 +1,3 @@
1
1
  module RelatonOmg
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -6,8 +6,12 @@ module RelatonOmg
6
6
  def from_xml(xml)
7
7
  doc = Nokogiri::XML(xml)
8
8
  doc.remove_namespaces!
9
- ietfitem = doc.at("/bibitem|/bibdata")
10
- RelatonOmg::OmgBibliographicItem.new(item_data(ietfitem))
9
+ item = doc.at("/bibitem|/bibdata")
10
+ if item
11
+ RelatonOmg::OmgBibliographicItem.new(item_data(item))
12
+ else
13
+ warn "[relato-omg] can't find bibitem or bibdata element in the XML"
14
+ end
11
15
  end
12
16
 
13
17
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-omg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.