relaton-gb 0.11.0 → 0.11.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_gb/version.rb +1 -1
- data/lib/relaton_gb/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: 8dde73dc09260674db2ebe47a9b589e5c60bc0b1d5ea1096df990301b841e91b
|
4
|
+
data.tar.gz: bddb4a7fe6e4e8b3119dc272634cf6492f6388f8151fe4262857d6afb5137756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99d20c25fed779ef7c8285ad97ae0b7352393e4d6804785cfe40c5c7d0fab4453ba550c290d9a25f9d3001430869c99420be94457cf3c79dab9f04c11cd40308
|
7
|
+
data.tar.gz: 6f1c161f0f480b4209a2b155bbaaa0d62e5cfd2bce6be9542561c7a37f6aa7ecba5daeeae9a2cef93f5dc0bd1fafa813bd73db06c08371ccabcc79c4bece4e86
|
data/lib/relaton_gb/version.rb
CHANGED
@@ -6,7 +6,11 @@ module RelatonGb
|
|
6
6
|
def from_xml(xml)
|
7
7
|
doc = Nokogiri::XML(xml)
|
8
8
|
gbitem = doc.at "/bibitem|/bibdata"
|
9
|
-
|
9
|
+
if gbitem
|
10
|
+
GbBibliographicItem.new item_data(gbitem)
|
11
|
+
else
|
12
|
+
warn "[relato-gb] can't find bibitem or bibdata element in the XML"
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
16
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-gb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.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
|