relaton-render 0.4.0 → 0.4.1

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: adb92be3ce06dd2d7d1f2c940826ffcb94b061e0beeef81ccc745f85d10aed42
4
- data.tar.gz: a7333f5a5d1154c8dcbe85135955595530bab40b584ac34a5f1febe67882d3b8
3
+ metadata.gz: 3e893e8e3387625e3c0fa4d92117bf0580df3eda1fd24b7893627e97a70aa6e5
4
+ data.tar.gz: 0741eec09057676c8198d3572ed5c441fe3ae89669bf0120a37f8ab357f746e9
5
5
  SHA512:
6
- metadata.gz: c7fb788d09f5ad3ccc820d52c171522498ad3f46782754aac07ce91e85b1c318864848be6df9391d0ec099a7b9a50afc21d1c069d07692a7c2a9b88505514f5b
7
- data.tar.gz: 1f35895353ef8fdc5db0b71dd8cb7f8bf6bcf2ecf49ef06ebfa754391ac4b29e4268a14295febc1fceb4226c970e5f849c8c35597b42a16b00d5ff0ee36c1e62
6
+ metadata.gz: 5f504a73a3b3ec8e5aeb2bea0557daf0f66f552af05277fdc6b52e8bf905bd629fdc06b6a02c8a8d8ab5a19f4be6aff10135c0e3b24feeb5a9b18c5d19c952a5
7
+ data.tar.gz: 87add59c85c84d861650b95e2d6ae2954dbd63ba4013a199493f2e9417b727de13955b4fbf2a5b20e3a00405dd0ae2c4e78d3cc1e8496f1d8ad2cd6d5c4188b4
@@ -94,7 +94,7 @@ module Relaton
94
94
  end
95
95
 
96
96
  def authorciteformat(names)
97
- return names if names.nil?
97
+ return names if names.nil? || @r.authorcitetemplate.nil?
98
98
 
99
99
  parts = %i(surname initials given middle nonpersonal)
100
100
  names_out = names.each_with_object({}) do |n, m|
@@ -44,7 +44,7 @@ module Relaton
44
44
  @nametemplate = @nametemplateklass
45
45
  .new(template: opt["nametemplate"], i18n: @i18n)
46
46
  @authorcitetemplate = @authorcitetemplateklass
47
- .new(template: opt["authorcitetemplate"], i18n: @i18n)
47
+ &.new(template: opt["authorcitetemplate"], i18n: @i18n)
48
48
  @seriestemplate = @seriestemplateklass
49
49
  .new(template: opt["seriestemplate"], i18n: @i18n)
50
50
  @journaltemplate = @seriestemplateklass
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.4.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.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: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler