relaton-render 0.7.4 → 0.7.5
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_id.rb +6 -6
- 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: becbf196e867ac9a64df91c19387b625bfe163373d7e69a32dbddf3aeceb038b
|
4
|
+
data.tar.gz: eb9c37c8ec28ef04b8d2640d65315cfdc5fc267bdc14b3dd7586d95e8113a341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55743d8230566133861e60685e7ccc53aec9c40334e7d4a13e7b1513cb16ded137ebc38ddb0d9cafb45df46280feb964956c917106d37acf5f90e79b3cb94138
|
7
|
+
data.tar.gz: fa1f1f37f74d4aeb7f356a97abffa4d0ebcefcd06198bc531d89c0e047c9845921d9bf97dfe121bb7e2ab7953603c3f40ecdeb7731fc392b0acd1ded8b3b5bb3
|
@@ -11,9 +11,10 @@ module Relaton
|
|
11
11
|
id_sort_by_scope(ids).each_with_object([]) do |(k, v), m|
|
12
12
|
case k
|
13
13
|
when "IEEE"
|
14
|
-
|
15
|
-
|
16
|
-
m <<
|
14
|
+
f = id_extract_by_scope(v, "trademark")
|
15
|
+
f.empty? and f = id_extract_by_scope(v, nil)
|
16
|
+
m << f
|
17
|
+
else m << id_extract_by_scope(v, nil)
|
17
18
|
end
|
18
19
|
end.flatten
|
19
20
|
end
|
@@ -27,10 +28,9 @@ module Relaton
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def id_extract_by_scope(idents, key)
|
30
|
-
if idents.key?(key)
|
31
|
+
if idents.key?(key)
|
31
32
|
idents[key]
|
32
|
-
else
|
33
|
-
idents.each_with_object([]) { |(_, v), m| m << v }.flatten
|
33
|
+
else []
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
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.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|