jekyll-geolexica 1.8.8 → 1.8.10

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: 28a92c6437e168d14b81c6230871e51b864ad78ca6e8a465c2361553d5273f10
4
- data.tar.gz: 0f42f094620da7d67a4b744020e4f6063996f661281afb05488ccfdd422f9896
3
+ metadata.gz: 323766073e831a5ab9f954b741b40908c4450927624cc77cb79fdd29a300ba9c
4
+ data.tar.gz: 5e62242e26b9e87971fa73f365302bed470472c3e7c75f3f45f2684dbe5a2bb9
5
5
  SHA512:
6
- metadata.gz: 05c3892fd357900d2c6793b2725fcb43ec9cb2b24c3ca2e8ad536c266046c7fc1b6a0e3d88b6b1d18fd85694d09a99675cc5bfb7060da2c4e07a333530c52efa
7
- data.tar.gz: e09f1a3c68284ac5a859cca8ac4dd8357f3c1b5212a8ae0e8ccc55afb4824127f28383245132342a95abcfde8ba8d96a72c313b80387d0ed50e44cdb93eb51bd
6
+ metadata.gz: 8c9aae349fcd35b6b0b4de0ef2cb6356d0fcadc5d855c3aa50bdf6019d786774ed888fe3cb3fca0272d650d2cef077dd8e94800459ff923fe25b3bfff9072a6e
7
+ data.tar.gz: 9185da4c90ce2fde1624163a82796c137fa88a820f489591de509b65c023f82776ec3399831681b9c3dee5493b68105c2eb8f49ea207ab4a92966a65436db8cc
@@ -27,7 +27,7 @@ json.array! site["concepts"].each_with_index.to_a do |(concept, idx)|
27
27
  json.term localized.dig("terms", 0, "designation")
28
28
  json.id localized["id"]
29
29
  json.term_url "#{concept.url}#entry-lang-#{lang}"
30
- json.entry_status english["entry_status"]
30
+ json.entry_status concept["status"]
31
31
  json.language_code localized["language_code"]
32
32
  json.review_decision english["review_decision"]
33
33
  end
@@ -65,18 +65,13 @@ module Jekyll
65
65
  concept = YAML.safe_load(File.read(path), **safe_load_options)
66
66
  concept['termid'] = concept['data']['identifier']
67
67
 
68
- concept['data']['localizedConcepts'].each do |lang, local_concept_id|
68
+ (concept['data']['localizedConcepts'] || []).each do |lang, local_concept_id|
69
69
  localized_concept_path = File.join(localized_concepts_path, "#{local_concept_id}.yaml")
70
70
  concept[lang] = YAML.safe_load(File.read(localized_concept_path), **safe_load_options)['data']
71
71
 
72
72
  next unless concept[lang]
73
73
 
74
74
  concept['term'] = concept[lang]['terms'].first['designation'] if lang == 'eng'
75
-
76
- if concept[lang]['status'] && !concept[lang]['status'].empty? &&
77
- (concept[lang]['entry_status'].nil? || concept[lang]['entry_status'].empty?)
78
- concept[lang]['entry_status'] = concept[lang]['status']
79
- end
80
75
  end
81
76
 
82
77
  concept
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module Geolexica
6
- VERSION = "1.8.8".freeze
6
+ VERSION = "1.8.10".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-geolexica
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.8
4
+ version: 1.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll