relaton-bib 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: 4e9e77fcafd4d9937bc4076463c4b96cf7fffada
4
- data.tar.gz: 5eff627669c4a456d41b15f85f898bfc3563310f
2
+ SHA256:
3
+ metadata.gz: c666eff3590a39978b0d0e4547096284b8eedb28c9bb87d819491adc19ad3181
4
+ data.tar.gz: 9fe53d79fbca6cb27d0febfbb79981b8cee85ee1f4954db53664bc5f5769394d
5
5
  SHA512:
6
- metadata.gz: 968fa8eae4a590a4fc392a9cde9c97059e5b07e692db31fbbc74d5c00f196b301d55df226261586587bad2d009a2cba55e1e170239508fbd2ce367f930c62f81
7
- data.tar.gz: 96cfc0b51bb02bebcfcf5583ea2aa30ef02886bac7ae04a42b43e626c167a03518ba1289c0ecd5cd4c37d2cd1e359bdabf167d643299d101ca2eed774dcfe947
6
+ metadata.gz: e70371f853c3ab10c91cffea4a96453f9929b5979d5947541d8bea21116e236c7eb063968e72ead587af2f0fbd9e3c9a7489e4d83e5c729cbd6571b5ce1f4a2e
7
+ data.tar.gz: 96dc61bc07a449c64877fd94e86e9228259c084e5ddef22e4540133b4adc95321caeff297dff3aef3847df5213ffc17d9c874555d7ab13929c6a5e7c7c28abf2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-bib (0.3.2)
4
+ relaton-bib (0.3.3)
5
5
  addressable
6
6
  nokogiri (~> 1.10)
7
7
 
@@ -11,7 +11,7 @@ GEM
11
11
  addressable (2.6.0)
12
12
  public_suffix (>= 2.0.2, < 4.0)
13
13
  byebug (11.0.1)
14
- debase (0.2.2)
14
+ debase (0.2.3)
15
15
  debase-ruby_core_source (>= 0.10.2)
16
16
  debase-ruby_core_source (0.10.5)
17
17
  diff-lcs (1.3)
@@ -28,7 +28,7 @@ GEM
28
28
  rspec-core (~> 3.8.0)
29
29
  rspec-expectations (~> 3.8.0)
30
30
  rspec-mocks (~> 3.8.0)
31
- rspec-core (3.8.1)
31
+ rspec-core (3.8.2)
32
32
  rspec-support (~> 3.8.0)
33
33
  rspec-expectations (3.8.4)
34
34
  diff-lcs (>= 1.2.0, < 2.0)
@@ -39,7 +39,7 @@ GEM
39
39
  rspec-support (3.8.2)
40
40
  ruby-debug-ide (0.7.0)
41
41
  rake (>= 0.8.1)
42
- simplecov (0.16.1)
42
+ simplecov (0.17.0)
43
43
  docile (~> 1.1)
44
44
  json (>= 1.8, < 3)
45
45
  simplecov-html (~> 0.10.0)
@@ -91,8 +91,8 @@ abstract:
91
91
  script: Latn
92
92
  format: text/plain
93
93
  # contributors are an array of entity/role pairs, where entity is either person or organization.
94
- # The role is an array; if there is a more complete description, that is given as the second element
95
- # of an array, and is itself an array.
94
+ # The role is an array of type and description; it can be a an array of just string, which are treated
95
+ # as the type.
96
96
  # Organisations have attributes name, url, abbreviation, subdivision, contacts, identifiers
97
97
  # Persons have attributes name, affiliation, contacts
98
98
  # Person names have attributes surname, completename, initials, forename, additions, prefixes.
@@ -112,9 +112,8 @@ contributor:
112
112
  abbreviation: ISO
113
113
  subdivision: division
114
114
  role:
115
- - publisher
116
- -
117
- - Publisher role
115
+ type: publisher
116
+ description: Publisher role
118
117
  - person:
119
118
  name:
120
119
  completename:
@@ -437,9 +436,8 @@ person::
437
436
  abbreviation::: ISO
438
437
  subdivision::: division
439
438
  role::
440
- * publisher
441
- *
442
- ** Publisher role
439
+ type::: publisher
440
+ description::: Publisher role
443
441
 
444
442
  ==== Contributor
445
443
  person::
@@ -136,7 +136,9 @@ module RelatonBib
136
136
  ret[:contributor] = array(ret[:contributor])
137
137
  ret[:contributor]&.each_with_index do |c, i|
138
138
  roles = array(ret[:contributor][i][:role]).map do |r|
139
- if r.is_a? Array
139
+ if r.is_a? Hash
140
+ { type: r[:type], description: array(r[:description]) }
141
+ elsif r.is_a? Array
140
142
  { type: r[0], description: r.fetch(1) }
141
143
  else
142
144
  { type: r }
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-02 00:00:00.000000000 Z
11
+ date: 2019-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  version: '0'
221
221
  requirements: []
222
222
  rubyforge_project:
223
- rubygems_version: 2.6.12
223
+ rubygems_version: 2.7.6
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: 'RelatonBib: Ruby XMLDOC impementation.'