glossarist 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +0 -3
- data/lib/glossarist/concept.rb +4 -3
- data/lib/glossarist/localized_concept.rb +1 -0
- data/lib/glossarist/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: daa4a50f33edeace0d689bb252dcf58d09572f35bd03fcb5110879ce4e24e996
|
4
|
+
data.tar.gz: fe18be21d7fe17e0a03b63e8de2bda5217a7fa50363ce032d28248caafc4c0a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a77fb0986ed398a0ea24876cecef2c18d222bb993269219976dcee805bef3b6515eb0b1a07da3dcb7ec8540f1103f609fe3cba36c1591a0f4cfb4c90df7b8a2b
|
7
|
+
data.tar.gz: 2750b65aa74df42185ade592d1506eec5f7a6f84eefb6ecfdf099db8de284ebeaa39bc435d8f70efe71512d6f9266bb55dc22e96e55f8061858ed12befbd685c
|
data/.github/workflows/test.yml
CHANGED
data/lib/glossarist/concept.rb
CHANGED
@@ -43,8 +43,9 @@ module Glossarist
|
|
43
43
|
"termid" => id,
|
44
44
|
"term" => default_designation,
|
45
45
|
"related" => related_concepts,
|
46
|
-
|
47
|
-
|
46
|
+
}
|
47
|
+
.compact
|
48
|
+
.merge(localizations.transform_values(&:to_h))
|
48
49
|
end
|
49
50
|
|
50
51
|
# @deprecated For legacy reasons only.
|
@@ -62,7 +63,7 @@ module Glossarist
|
|
62
63
|
.compact
|
63
64
|
.each { |lc| concept.add_l10n lc }
|
64
65
|
|
65
|
-
concept.l10n("eng")&.superseded_concepts = hash.dig("
|
66
|
+
concept.l10n("eng")&.superseded_concepts = hash.dig("related") || []
|
66
67
|
end
|
67
68
|
end
|
68
69
|
# rubocop:enable Metrics/AbcSize, Style/RescueModifier
|
data/lib/glossarist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glossarist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|