relaton-iso-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: 3376a78eee7e1994137090287bfc9f31f7e1431935934a8b13640c56bb4fed96
4
- data.tar.gz: 1775614a24980aded9778a69ca4c303abc5872fdc62ce0df419dff359804a23b
3
+ metadata.gz: a3acae9aa049444f9d5a9eb512612b1d085e888e6a8bd32088a2d5137e68fe26
4
+ data.tar.gz: 94fc512c1479bf2fff43fd50af5162c4519e96f697f86103c75c9ea50f804b5a
5
5
  SHA512:
6
- metadata.gz: 43d26653e681d77de26babd46b00e988f9e8dfd3ac701ee8fb9f5026e64f8c10821025c47ff806ce9720f9e4c27e7c1ecb8c360ba6f20cb73d5bce3ee16ebf11
7
- data.tar.gz: f9c0b8e331f6779d52f9d799230261e10b8295cb9a4ccec5729c68d567ab74204b9254b266cbd18036aecdb5b29f4fd300b380a9d5d3b93bf1b717999e41c3b7
6
+ metadata.gz: dcf76383c923649831cb0b390aa679c45da075d57b77c7c3e6cbe5cb18d1df768028134da6c96bd8518d86a50b5a69c7f3eb5ed89644dae5d7052a212f45dd0b
7
+ data.tar.gz: 3ca5df2eba1b03ad1c2b8bc264e660df2f10f4196ab52d2e641fe9aa89e442877adb03c86eb939de49e8e8e27b1b5fdc35d8bce26a9515f8f58f5a1057a767a8
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
@@ -10,7 +10,11 @@ module RelatonIsoBib
10
10
  doc = Nokogiri::XML(xml)
11
11
  doc.remove_namespaces!
12
12
  isoitem = doc.at "/bibitem|/bibdata"
13
- IsoBibliographicItem.new item_data(isoitem)
13
+ if isoitem
14
+ IsoBibliographicItem.new item_data(isoitem)
15
+ else
16
+ warn "[relato-bib] can't find bibitem or bibdata element in the XML"
17
+ end
14
18
  end
15
19
 
16
20
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-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: pry-byebug