relaton-nist 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_nist/version.rb +1 -1
- data/lib/relaton_nist/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: 06d8c511378ca4a23050ca5a6e1d65b8d78fda5f8104cb52da5619455e6dbfa2
|
4
|
+
data.tar.gz: 5587938b2ff4536214f5e159e6eecf04318c03aaaeaff0fd3cbe1dbd19740daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e56fb78bdcee718e5c7543d6a0e6c5af6a45b739319f9ddaaf1dd233894b196b8bb4ea8d3442af2d4918f73e96d73ff78ebfbbc394da964e05078ab8375c012e
|
7
|
+
data.tar.gz: b673fbe4caa5e9bdd30868aac90d1fed5d146cbdc2ee6e2eb42da8b59ad53e38feaa66052b04fa0e2eb90b0889f866f3c61a635545168955c35e861d5bba9c91
|
data/lib/relaton_nist/version.rb
CHANGED
@@ -4,7 +4,11 @@ module RelatonNist
|
|
4
4
|
def from_xml(xml)
|
5
5
|
doc = Nokogiri::XML xml
|
6
6
|
nistitem = doc.at("/bibitem|/bibdata")
|
7
|
-
|
7
|
+
if nistitem
|
8
|
+
NistBibliographicItem.new(item_data(nistitem))
|
9
|
+
elsif
|
10
|
+
warn "[relato-nist] can't find bibitem or bibdata element in the XML"
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-nist
|
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: byebug
|