relaton-ogc 0.6.0 → 0.6.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: 1cfdc0ae74a58817950f5903156cd05fa21444a7e71c0fe7cb8996d5ee94f864
4
- data.tar.gz: 4240557bb7b4fc3e730cb94d9e7300525fc5657cbd3a974b34b9d3c99c0555e7
3
+ metadata.gz: e3c06d93936ffdfe9d0ad5ec9c970c6ffe60c999668d6297aba52c2ed829da8d
4
+ data.tar.gz: eada0a4b60c798b5034e7f224942f19e34dec434761da0fb0c687441b6b5bea1
5
5
  SHA512:
6
- metadata.gz: e117593eb621982f01be1b4f55050361df67b2ce7b82b8553bb37c4222c6551645cb1e68289c324c0c566ac300bde5dbf46f27b99ba824d5900186604dc1f586
7
- data.tar.gz: 17e66ab18682efedb59cab575f442f0e163cb6f3c4dc5d08792d262eb967913f3fd766a078dc9061f040a2b5dd80bf1fa5452008d29334d2e60b4e8dd684bdc6
6
+ metadata.gz: df4e9971ff827dd4c84833f6aabaf01fd85eac07f16edaa6d6a84ac4f4dfab2d66cb23a881b5e6f4ef17dc78f4ac8fa76795c8cfb22df07bf6b4bdc7346de295
7
+ data.tar.gz: d241a9c8e51ca9e57ddf057640c28549f155673cabef16645e31a96bc4abeb51fdce1a8b485a6ee2fdfa33bbade46a1be68132942d63b73d0e1d97dff027e4bf
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "0.6.0".freeze
2
+ VERSION = "0.6.1".freeze
3
3
  end
@@ -9,7 +9,11 @@ module RelatonOgc
9
9
  def from_xml(xml)
10
10
  doc = Nokogiri::XML(xml)
11
11
  isoitem = doc.at "/bibitem|/bibdata"
12
- OgcBibliographicItem.new item_data(isoitem)
12
+ if isoitem
13
+ OgcBibliographicItem.new item_data(isoitem)
14
+ else
15
+ warn "[relato-ogc] 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-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.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