glossarist 2.11.2 → 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 +4 -4
- data/lib/glossarist/gcr_metadata.rb +2 -2
- data/lib/glossarist/register_data.rb +12 -8
- data/lib/glossarist/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3342996cc6138d6314fc904cc38790e593dfc6336943b421357406f78c62df9
|
|
4
|
+
data.tar.gz: f385a95f0ee4cf4b9c1a927f9e63bb3dd6ba9bbbc468c5881011d49041b79a8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
|
56
|
-
description: options[: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
|
|
@@ -18,10 +16,10 @@ module Glossarist
|
|
|
18
16
|
attribute :license, :string
|
|
19
17
|
attribute :tags, :string, collection: true
|
|
20
18
|
attribute :translations, :hash, default: -> {}
|
|
21
|
-
|
|
22
|
-
#
|
|
23
|
-
# consumers (
|
|
24
|
-
# year
|
|
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.
|
|
25
23
|
attribute :ref, :string
|
|
26
24
|
attribute :ref_aliases, :string, collection: true
|
|
27
25
|
attribute :year, :integer
|
|
@@ -31,10 +29,15 @@ module Glossarist
|
|
|
31
29
|
attribute :supersedes, :string
|
|
32
30
|
attribute :source_repo, :string
|
|
33
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.
|
|
38
|
+
|
|
34
39
|
key_value do
|
|
35
40
|
map %i[id shortname], to: :shortname
|
|
36
|
-
map "name", to: :name
|
|
37
|
-
map "description", to: :description
|
|
38
41
|
map "schema_version", to: :schema_version
|
|
39
42
|
map "version", to: :version
|
|
40
43
|
map "owner", to: :owner
|
|
@@ -47,6 +50,7 @@ module Glossarist
|
|
|
47
50
|
map "license", to: :license
|
|
48
51
|
map "tags", to: :tags
|
|
49
52
|
map "translations", to: :translations
|
|
53
|
+
|
|
50
54
|
map "ref", to: :ref
|
|
51
55
|
map "ref_aliases", to: :ref_aliases
|
|
52
56
|
map "year", to: :year
|
data/lib/glossarist/version.rb
CHANGED