glossarist 0.1.0 → 0.1.1

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: 34ea633c0a5f8f609e12c72d8a835fd8675f8cf52996633ed9c84c9d304f73cc
4
- data.tar.gz: a855be248a3ae9d9435969643660210a30ae1f7912b0c714ed4a7d1ee09632f3
3
+ metadata.gz: daa4a50f33edeace0d689bb252dcf58d09572f35bd03fcb5110879ce4e24e996
4
+ data.tar.gz: fe18be21d7fe17e0a03b63e8de2bda5217a7fa50363ce032d28248caafc4c0a6
5
5
  SHA512:
6
- metadata.gz: b98c00342f4107b361ddc27f7e6323540c1335a339b54594c7944a4d45e1dcf4746070f38cd91934320a39d2616305055f9cf62b88253deb1842686f238cbed1
7
- data.tar.gz: 8ec6121d3a5dd24e3c032bf92ab4e31ceefaf451aa81bf8f395c4d78e34e2ec1c594173f997c646af9f2a5b094db490a9f3fdcec1f8d4a57b8c79afa5107aa7b
6
+ metadata.gz: a77fb0986ed398a0ea24876cecef2c18d222bb993269219976dcee805bef3b6515eb0b1a07da3dcb7ec8540f1103f609fe3cba36c1591a0f4cfb4c90df7b8a2b
7
+ data.tar.gz: 2750b65aa74df42185ade592d1506eec5f7a6f84eefb6ecfdf099db8de284ebeaa39bc435d8f70efe71512d6f9266bb55dc22e96e55f8061858ed12befbd685c
@@ -20,9 +20,6 @@ jobs:
20
20
  - "2.5"
21
21
  - "2.4"
22
22
 
23
- name: Run tests
24
- runs-on: ubuntu-latest
25
-
26
23
  steps:
27
24
  - name: Fetch source code
28
25
  uses: actions/checkout@v2
@@ -43,8 +43,9 @@ module Glossarist
43
43
  "termid" => id,
44
44
  "term" => default_designation,
45
45
  "related" => related_concepts,
46
- **localizations.transform_values(&:to_h),
47
- }.compact
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("related_concepts")
66
+ concept.l10n("eng")&.superseded_concepts = hash.dig("related") || []
66
67
  end
67
68
  end
68
69
  # rubocop:enable Metrics/AbcSize, Style/RescueModifier
@@ -72,6 +72,7 @@ module Glossarist
72
72
  @examples = []
73
73
  @notes = []
74
74
  @designations = []
75
+ @superseded_concepts = []
75
76
  super
76
77
  end
77
78
 
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "0.1.0"
7
+ VERSION = "0.1.1"
8
8
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2021-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry