relaton-render 3.0.0.pre.alpha.41 → 3.0.0.pre.alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaa53e917eda4357ec51973bf0c8898c8d25fec15918eb2647874e8493c56152
4
- data.tar.gz: 304753e30cd5897dfc6ce7b95da61cf0d018309fab1fae709cc8d3a7e0533de4
3
+ metadata.gz: fc9353e7957ae86c466052968a77f3175a2ed765e6433f7e7d255ef8036614e2
4
+ data.tar.gz: a35cb0ee37e731243be02beadc676de056d3b6e91e9f0dc6e9856c151373dbea
5
5
  SHA512:
6
- metadata.gz: 6cbf5815eb1d846403a2a094a7a51723642f26014ed6a4329f82635a52feaca62599768c47cb05d58a5eaec9d6c553fba2e64cea6463cf6c641fc1f9a1ea6d45
7
- data.tar.gz: c233dc2b8c49a57d13fa8bbc18d4fbd1c8b51b84add8da005a547406b5a609b0214bd14ca07c019abf35dee6e9736a40d755db0f2e345e62ff972ef6dd10af3d
6
+ metadata.gz: a21521192e248bc508c0256d07c52d59d7cfbc911b82c43073dc99276a62031d4d4f7381eb7e435373850ab665ceee7f93b7c04ad9ee1572e37d9e996a0bc85e
7
+ data.tar.gz: 3edca91d8e0c43c547e3e7d8b8007d47df15278e9d0f4a1baee6e4e7e02be52fdbcb86d9400570d7b41d45a5d99af3c6fccc86d722455d975c3673d46b1e19d1
@@ -22,11 +22,13 @@ module Relaton
22
22
  authorizer_name
23
23
  end
24
24
 
25
- # The kind's declared form for this slot
25
+ # The kind's declared form for this slot: the first entry of
26
+ # the kind carrying one (a home variant may shadow the type)
26
27
  def authorizer_form
27
- variant = @style.per_type
28
- .find { |t| t.type == @style.kind_for(@model.type) }
29
- variant&.authorizer
28
+ kind = @style.kind_for(@model.type)
29
+ @style.per_type.find do |t|
30
+ t.type == kind && !t.authorizer.to_s.empty?
31
+ end&.authorizer
30
32
  end
31
33
 
32
34
  private
@@ -44,11 +44,13 @@ module Relaton
44
44
  sep.empty? ? place : place.gsub(", ", sep)
45
45
  end
46
46
 
47
- # The kind's declared form for this slot
47
+ # The kind's declared form for this slot: the first entry of
48
+ # the kind carrying one (a home variant may shadow the type)
48
49
  def production_form
49
- variant = @style.per_type
50
- .find { |t| t.type == @style.kind_for(@model.type) }
51
- variant&.production
50
+ kind = @style.kind_for(@model.type)
51
+ @style.per_type.find do |t|
52
+ t.type == kind && !t.production.to_s.empty?
53
+ end&.production
52
54
  end
53
55
 
54
56
  def publisher_first?
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "3.0.0.pre.alpha.41".freeze
3
+ VERSION = "3.0.0.pre.alpha.43".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.alpha.41
4
+ version: 3.0.0.pre.alpha.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.