jekyll-geolexica 1.8.10 → 1.8.11

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: 323766073e831a5ab9f954b741b40908c4450927624cc77cb79fdd29a300ba9c
4
- data.tar.gz: 5e62242e26b9e87971fa73f365302bed470472c3e7c75f3f45f2684dbe5a2bb9
3
+ metadata.gz: aaa9065328d0f51222f0f6e770de9066f0c2ab7e0f9bd74c711bfb1274a9fc23
4
+ data.tar.gz: fa425de8cecbc750b6805bf4c48b3050209fa35bf9746823a62b63319bee5767
5
5
  SHA512:
6
- metadata.gz: 8c9aae349fcd35b6b0b4de0ef2cb6356d0fcadc5d855c3aa50bdf6019d786774ed888fe3cb3fca0272d650d2cef077dd8e94800459ff923fe25b3bfff9072a6e
7
- data.tar.gz: 9185da4c90ce2fde1624163a82796c137fa88a820f489591de509b65c023f82776ec3399831681b9c3dee5493b68105c2eb8f49ea207ab4a92966a65436db8cc
6
+ metadata.gz: 7bce803d29510284253d69a9bba46752f497a9c52716e0919ddc0fc3c2bfb1bef42d729026552c459472b6965fb45370c6bd71bda0be9366892eb6be80b99651
7
+ data.tar.gz: 980d903d2d6bb184454ba6ad09119a031e963a17b15191ef972d6714761e9de6e8229f6edc55ae977df8a728620b10ed12234d9bef85f1aca403ab73d6b803b4
@@ -71,12 +71,22 @@ module Jekyll
71
71
 
72
72
  next unless concept[lang]
73
73
 
74
+ normalize_sources(concept[lang])
74
75
  concept['term'] = concept[lang]['terms'].first['designation'] if lang == 'eng'
75
76
  end
76
77
 
77
78
  concept
78
79
  end
79
80
 
81
+ def normalize_sources(concept)
82
+ authoritative_sources = concept.delete('authoritativeSource') || []
83
+ concept['sources'] ||= []
84
+
85
+ authoritative_sources.each do |authoritative_source|
86
+ concept['sources'] << authoritative_source.merge({ 'type' => 'authoritative' })
87
+ end
88
+ end
89
+
80
90
  # Does nothing, but some sites may replace this method.
81
91
  def preprocess_concept_hash(concept_hash); end
82
92
 
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module Geolexica
6
- VERSION = "1.8.10".freeze
6
+ VERSION = "1.8.11".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.10
4
+ version: 1.8.11
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-24 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll