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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a814c793e3b49cb28bde037781d8343d8d336ded06282a3103be503c5db54f1
4
- data.tar.gz: 265ac2fdde0771e01c9730a9c3bdf3af7b272340fc7a2295098fcfea1bb92d9a
3
+ metadata.gz: 103eab0d5c12a5bdb75281aebd1f59ad96e81da707f69c09355d9bf05f841f1a
4
+ data.tar.gz: 3c51acb08e97d791e977a6752db949683f67e60e8402f7d0c6d3aa43ac4c4d95
5
5
  SHA512:
6
- metadata.gz: 655c27d5d4f8977d2d0a50a2c7b09ea20e6d8f97089fbbb1b89b9f882e2a28b08d308622c080888e2b8ab2e7650516b1cf2d8dc26ed607bb777a114f288e20af
7
- data.tar.gz: e23563ef7106393b9dd38e8980914c7b72e611257d9887d3ca42fe0e00bcfef74ca593e5ab5c67ad41b743deebbb715766ac950aad12e5815f44beb2386a3d2c
6
+ metadata.gz: c1c9e8003d2f2c859a6600381955e61f3bdc540a1504b17eda23cfce99271b657e178173d123f89cafff8eadb19c5dd3a67c89714ecb83035d40053debaaadb6
7
+ data.tar.gz: f9607f2ff6b590a10b190e00d1e512148ecbfe9ad60b7a7e1dbea3ae032617817a6aa1dd4836b5cf10ffbb497792639ab1a3ea8496d13518f81fc59df84e08c4
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.9.1".freeze
2
+ VERSION = "0.9.2".freeze
3
3
  end
@@ -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
- role_descr = c.xpath("./role/description").map &:text
266
- ContributionInfo.new entity: entity, role: [{ type: c.at("role")[:type], description: role_descr }]
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.1
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-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase