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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eb3d7c78878f193ed90c49d57b80201fa20db0c7a80bee39a9e7458d091135f
4
- data.tar.gz: 709a9d56a3a6956d88e2dd111ad4d29a02288f28feca43eb850fb4e2a7d83dec
3
+ metadata.gz: b3342996cc6138d6314fc904cc38790e593dfc6336943b421357406f78c62df9
4
+ data.tar.gz: f385a95f0ee4cf4b9c1a927f9e63bb3dd6ba9bbbc468c5881011d49041b79a8c
5
5
  SHA512:
6
- metadata.gz: 0e612d2dae7f525da03f4f677575feca311af0b93b0c8d6c7e6c54f51c3f11d86fa899eca3ab998ea1e63f366717055dd42dac20172721327cdbb99335070f4b
7
- data.tar.gz: 63ac17b342e1478973a3387fafdde5abcc12554453fd70500980f9b88207bff294ff5636bc909a68facad00c6c4f5966ad2eaa9e6442a9914e7a16ac8dda41c6
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
@@ -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
- # Dataset-register fields (concept-browser Deployments). These were
22
- # previously dropped during GCR packaging, causing downstream
23
- # consumers (e.g. concept-browser's lineage-series renderer) to lose
24
- # year/ref/urn/status needed for timeline sorting and identity.
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
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.11.2"
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.2
4
+ version: 2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose