glossarist 2.11.1 → 2.11.3

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: db275fe34501d897cc24b130bf5f0f37a447dc9f440d3aa6a7b0fc1f5ab49051
4
- data.tar.gz: 29f0e1559a03e9c6c740f6853db1546091ef9aa3acc7b93b091f01ed9ee6fcee
3
+ metadata.gz: b3342996cc6138d6314fc904cc38790e593dfc6336943b421357406f78c62df9
4
+ data.tar.gz: f385a95f0ee4cf4b9c1a927f9e63bb3dd6ba9bbbc468c5881011d49041b79a8c
5
5
  SHA512:
6
- metadata.gz: a281074b57a07df9792775ccbfff3002be6303049979030ccbe7133de46a9ee04a69a807ef3e65eb9aa82c7ff6c62fdc8b00a5182213650d4af5ba6d9cdf8681
7
- data.tar.gz: bf03d853b4406f6fd42ed3379600d75425058150e0247da46833139085d5752c3fe71b62465b29dcdbad00ee53d72159d7f8a449034e6844bf9f7866a56cd4c1
6
+ metadata.gz: 39a3a8436356b5280bde95caff163f18d1e2654f4c00603d124dff135f242f27ca15e50664cf6a649b9be8718678723218b37ec9548ba9b5acae029bbe132b9d
7
+ data.tar.gz: f01d59ac8056b432faeeb9addc329c080d2b4dcd6a8ab74941016d5325d0814c3dab77381682d5c6b570c61d38f70990af9c8d742c5538faa9e53d157643b087
@@ -52,8 +52,8 @@ module Glossarist
52
52
  new(
53
53
  shortname: options[:shortname] || rd&.shortname,
54
54
  version: options[:version] || rd&.version,
55
- title: options[:title] || rd&.name,
56
- description: options[:description] || rd&.description,
55
+ title: options[:title],
56
+ description: options[:description],
57
57
  owner: options[:owner],
58
58
  tags: options[:tags] || [],
59
59
  concept_count: concepts.length,
@@ -4,8 +4,6 @@ module Glossarist
4
4
  class RegisterData < Lutaml::Model::Serializable
5
5
  attribute :key, :string, default: -> { "register" }
6
6
  attribute :shortname, :string
7
- attribute :name, :string
8
- attribute :description, :string
9
7
  attribute :schema_version, :string
10
8
  attribute :version, :string
11
9
  attribute :owner, :string
@@ -17,12 +15,29 @@ module Glossarist
17
15
  attribute :repository, :string
18
16
  attribute :license, :string
19
17
  attribute :tags, :string, collection: true
20
- attribute :translations, :hash, default: -> { {} }
18
+ attribute :translations, :hash, default: -> {}
19
+
20
+ # Identity and lifecycle fields. These MUST round-trip through GCR
21
+ # packaging so consumers (concept-browser's lineage-series renderer,
22
+ # manifest year propagation, status badge logic) see them.
23
+ attribute :ref, :string
24
+ attribute :ref_aliases, :string, collection: true
25
+ attribute :year, :integer
26
+ attribute :urn, :string
27
+ attribute :urn_aliases, :string, collection: true
28
+ attribute :status, :string
29
+ attribute :supersedes, :string
30
+ attribute :source_repo, :string
31
+
32
+ # Display name + description are deliberately NOT serialized in the GCR.
33
+ # They are localized (hash) values in source register.yaml and the gem
34
+ # can't coerce them to a stable wire form without lossy .to_s coercion.
35
+ # Display metadata belongs in the deployment's site-config.yml, which
36
+ # is the SSOT for per-dataset title/description overrides. The GCR
37
+ # carries identity (ref, urn, year, status) only.
21
38
 
22
39
  key_value do
23
40
  map %i[id shortname], to: :shortname
24
- map "name", to: :name
25
- map "description", to: :description
26
41
  map "schema_version", to: :schema_version
27
42
  map "version", to: :version
28
43
  map "owner", to: :owner
@@ -35,6 +50,15 @@ module Glossarist
35
50
  map "license", to: :license
36
51
  map "tags", to: :tags
37
52
  map "translations", to: :translations
53
+
54
+ map "ref", to: :ref
55
+ map "ref_aliases", to: :ref_aliases
56
+ map "year", to: :year
57
+ map "urn", to: :urn
58
+ map "urn_aliases", to: :urn_aliases
59
+ map "status", to: :status
60
+ map "supersedes", to: :supersedes
61
+ map "source_repo", to: :source_repo
38
62
  end
39
63
 
40
64
  def self.from_file(path)
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.11.1"
7
+ VERSION = "2.11.3"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glossarist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.1
4
+ version: 2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose