relaton-bib 0.9.1 → 0.9.2
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 +4 -2
- 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: 103eab0d5c12a5bdb75281aebd1f59ad96e81da707f69c09355d9bf05f841f1a
|
4
|
+
data.tar.gz: 3c51acb08e97d791e977a6752db949683f67e60e8402f7d0c6d3aa43ac4c4d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c9e8003d2f2c859a6600381955e61f3bdc540a1504b17eda23cfce99271b657e178173d123f89cafff8eadb19c5dd3a67c89714ecb83035d40053debaaadb6
|
7
|
+
data.tar.gz: f9607f2ff6b590a10b190e00d1e512148ecbfe9ad60b7a7e1dbea3ae032617817a6aa1dd4836b5cf10ffbb497792639ab1a3ea8496d13518f81fc59df84e08c4
|
data/lib/relaton_bib/version.rb
CHANGED
@@ -262,8 +262,10 @@ module RelatonBib
|
|
262
262
|
entity = if (org = c.at "./organization") then get_org(org)
|
263
263
|
elsif (person = c.at "./person") then get_person(person)
|
264
264
|
end
|
265
|
-
|
266
|
-
|
265
|
+
role = c.xpath("./role").map do |r|
|
266
|
+
{ type: r[:type], description: r.xpath("./description").map(&:text) }
|
267
|
+
end
|
268
|
+
ContributionInfo.new entity: entity, role: role
|
267
269
|
end
|
268
270
|
end
|
269
271
|
|
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.9.
|
4
|
+
version: 0.9.2
|
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-
|
11
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|