relaton-itu 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_itu/version.rb +1 -1
- data/lib/relaton_itu/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: 4d41566d2edd5f2e8c2757b8c74fb68c26c4b56943f84dcad3cb98d129023db1
|
4
|
+
data.tar.gz: ad70f1d469d40195f950201d3e15db288764469f6d940d8abe8bdafdec450222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 992227b0d7c971aa6908aa68e4b274033232067af58c534a53ec7e4faab024faeb79ae9cbda91f7251d6f3ccb895e484bb5f5821500d8c2e946e0d30205af7f2
|
7
|
+
data.tar.gz: 3f6cff1e0c18a5e94c8f1f5c9beac1c24b346b7b462060f133c7da634b33f497d5d65a0bf807d5e0a43e57e96d8dcdfd259cfb6bf97e7233975870f6b9f76efe
|
data/lib/relaton_itu/version.rb
CHANGED
@@ -9,7 +9,11 @@ module RelatonItu
|
|
9
9
|
def from_xml(xml)
|
10
10
|
doc = Nokogiri::XML(xml)
|
11
11
|
ituitem = doc.at "/bibitem|/bibdata"
|
12
|
-
|
12
|
+
if ituitem
|
13
|
+
ItuBibliographicItem.new item_data(ituitem)
|
14
|
+
elsif
|
15
|
+
warn "[relato-itu] 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-itu
|
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
|