relaton-render 0.3.1 → 0.3.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: 077a906da97ebd8417a856d6c5b73ae81cd3c5457ba8383094e752fd5c585bc0
4
- data.tar.gz: 85c8446d1a644ba1b4cd28cfae099dddaa31867a376a9e484d387387ac7d0c7c
3
+ metadata.gz: 2495f2c083785da7e91cb8a512af90c47a1b47cc3e1f3fc2749453008e50255b
4
+ data.tar.gz: 73ec9b1aad3fa6dea3473a842f3cc5b91a99beb978fb32481b286a2c2fad5b04
5
5
  SHA512:
6
- metadata.gz: 3fb5003aaefb0915a9eebd6d021bdd20e92dcf2c2eb015aea68c102928f1b8702841624d356d14dc00912752df3a50f7e98222d2e9a84cda819d1ed755610aad
7
- data.tar.gz: 5cd715d1b65f71d1e4126b8443dbcb99a4bf078145cd3bfaa9e9fff5c67bac96b9d6b9e97e55b995c6f63764997f1e703bc65e366fde5b1d2c376f4e7af384bf
6
+ metadata.gz: 7fe97369899d14717f7f7cefbdd5fa5f0cf3b297005e0a30b7172b4a7f001f1586dc9088c90a6025733b680cf09041b3adf5206dff429e4ad712b2a35208a775
7
+ data.tar.gz: 7f3e4c19809cbfa730fab9aa844891a879844279e6a95808f77541edce3e9d1b5986d3d20e5b9a6b618e984dfb9ddcdfa399181e4cc191cf1058dc9773723b00
@@ -11,7 +11,9 @@ module Relaton
11
11
 
12
12
  t = doc.title.select { |x| x.title.language&.include? @lang }
13
13
  t.empty? and t = doc.title
14
- t.first&.title&.content
14
+ t1 = t.select { |x| x.type == "main" }
15
+ t1.empty? and t1 = t
16
+ t1.first&.title&.content
15
17
  end
16
18
 
17
19
  def medium(doc, host)
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.3.1".freeze
3
+ VERSION = "0.3.2".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.3.1
4
+ version: 0.3.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: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler