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 +4 -4
- data/lib/relaton/render/parse/parse_extract.rb +3 -1
- data/lib/relaton/render/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2495f2c083785da7e91cb8a512af90c47a1b47cc3e1f3fc2749453008e50255b
|
4
|
+
data.tar.gz: 73ec9b1aad3fa6dea3473a842f3cc5b91a99beb978fb32481b286a2c2fad5b04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
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.
|
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-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|