glossarist 2.14.9 → 2.14.11

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: 5998b563be6ba537552a419b8fd199a5cda32f2337ccda0deee2c09b3db248e7
4
- data.tar.gz: bcc888fd4972c5f3253c8daa31d5b897199afdb35eec6ead02b4c1610bc34778
3
+ metadata.gz: a5d6954a79534063c54006d7d1037dcee6c9dd6ee0f12c1158501f80edee7cd7
4
+ data.tar.gz: 2b61ce856d91dca595a119e474c050345c3f99e47841d3d470da78ea4c5124fb
5
5
  SHA512:
6
- metadata.gz: 659e5bc82dd9d60f8ec31b0214f49ef581edaf4f32ca329622f926c39f7e5bb0f4f0594143cb953a5b10cf5ccac65536e36cc7508fa0f4afccff0508f0fe5aee
7
- data.tar.gz: 4a5146720fe468eeff50f825d6460b7bbbd666cc62b657ea95d022678b7c1cbe85487b8a193eed99527ab7f9e1a63f92825967ff5aba91d6ad4358576011b72c
6
+ metadata.gz: 4c4e3dd3d497a4be0de1a8dc8674d7bea41cca68a12ef512b08c606a16233b2d194eb748e7cc3a00832d7f914f219768c23b9e606f431a651394c285e0d30951
7
+ data.tar.gz: cc0a8af8513ceaff32ef4bc110fe70e329571718210b05921930c93cc61735fba09315c182aaae353aafe2e019cced5c9e9964c357796c175fedd498c4b3b670
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.14.9"
7
+ VERSION = "2.14.11"
8
8
  end
data/lib/glossarist.rb CHANGED
@@ -8,6 +8,25 @@ require "thor"
8
8
  require "lutaml/model"
9
9
  require "lutaml/store"
10
10
 
11
+ # glossarist datasets on disk are written in yeptris dump form (long plain
12
+ # scalars unwrapped), so a silent fallback to Psych would reformat every
13
+ # stored concept on the next save. Keep the native lane; hosts opt out via
14
+ # LUTAML_YAML (the consumer-neutral switch, lutaml-model#1115) or its
15
+ # legacy FONTIST_YAML spelling.
16
+ native_lane = %w[LUTAML_YAML FONTIST_YAML].none? { |k| ENV.key?(k) } ||
17
+ %w[LUTAML_YAML FONTIST_YAML].any? { |k| ENV[k] == "yeptris" }
18
+ if native_lane
19
+ Lutaml::Model::Config.instance.set_adapter(:yaml, :yeptris)
20
+ # The yamls (multi-document stream) lane ships in lutaml-model 0.8.163+;
21
+ # older releases validate!-reject the adapter type with ArgumentError —
22
+ # stay on the default stream adapter there.
23
+ begin
24
+ Lutaml::Model::Config.instance.set_adapter(:yamls, :yeptris)
25
+ rescue ArgumentError
26
+ nil
27
+ end
28
+ end
29
+
11
30
  module Glossarist
12
31
  autoload :Asset, "glossarist/asset"
13
32
  autoload :AssetReference, "glossarist/asset_reference"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glossarist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.9
4
+ version: 2.14.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-03 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model