diff --git a/jekyll-geolexica.gemspec b/jekyll-geolexica.gemspec index 94f4048..a5d84b3 100644 --- a/jekyll-geolexica.gemspec +++ b/jekyll-geolexica.gemspec @@ -35,7 +35,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_runtime_dependency "glossarist", "~> 2.0" + spec.add_runtime_dependency "glossarist", "~> 2.0.7" # Jekyll 4.1.0 adds some breaking changes which are reverted in 4.1.1. # I doubt we should be worried, but there is no good reason to allow them # either. diff --git a/lib/jekyll/geolexica/glossary.rb b/lib/jekyll/geolexica/glossary.rb index 5d774c5..25f56b1 100644 --- a/lib/jekyll/geolexica/glossary.rb +++ b/lib/jekyll/geolexica/glossary.rb @@ -25,6 +25,7 @@ def load_glossary "id" => managed_concept.uuid, "term" => managed_concept.default_designation, "termid" => managed_concept.id, + "status" => managed_concept.status, }.merge(managed_concept.to_h) managed_concept.localizations.each do |lang, localization| diff --git a/spec/unit/jekyll/geolexica/glossary_spec.rb b/spec/unit/jekyll/geolexica/glossary_spec.rb index 7f06de9..1c25266 100644 --- a/spec/unit/jekyll/geolexica/glossary_spec.rb +++ b/spec/unit/jekyll/geolexica/glossary_spec.rb @@ -45,6 +45,7 @@ "id" => "055c7785-e3c2-4df0-bcbc-83c1314864af", "term" => "association ", "termid" => "SPP", + "status" => "valid", "data" => { "identifier" => "SPP", "localized_concepts" => {