relaton-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 +4 -4
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib/xml_parser.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 924c1178be50079233bcdaab53273e403db6d0b88eb52072dda0c35c407cbb1b
|
4
|
+
data.tar.gz: aa998727f67bfa48b1f332727e1fcd528c0f875ea76ec14b581273ad17364f3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94db650838f6549d4d8d954e5a3af5e261dea2450638a3b6fc3b1a6c265b3f83888f2cace0043bad06b43f722b9aff9ed74f675a5bc0efe26d98d1f0dd74f19c
|
7
|
+
data.tar.gz: 93bf2cf0b5a504e909ca03794fe27c53bc62c08b88c1d75be1be59681898b664e1c5bc39ccebc94f4b04d2888d9448da3a2dbe02a98dd08d3d82800d1418495c
|
data/lib/relaton_bib/version.rb
CHANGED
@@ -7,7 +7,11 @@ module RelatonBib
|
|
7
7
|
doc = Nokogiri::XML(xml)
|
8
8
|
doc.remove_namespaces!
|
9
9
|
bibitem = doc.at "/bibitem|/bibdata"
|
10
|
-
|
10
|
+
if bibitem
|
11
|
+
BibliographicItem.new(item_data(bibitem))
|
12
|
+
else
|
13
|
+
warn "[relato-bib] can't find bibitem or bibdata element in the XML"
|
14
|
+
end
|
11
15
|
end
|
12
16
|
|
13
17
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
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-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|