glossarist 2.14.10 → 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: 39407659b9bb3a6f3f9c7fc2da7fbb8c3adb1a619ca1021e95541eebc2e5220a
4
- data.tar.gz: 1680ec8bcc852bd4b8345f87cdb78c3d8556fd43d00167f6e0696447d87004b0
3
+ metadata.gz: a5d6954a79534063c54006d7d1037dcee6c9dd6ee0f12c1158501f80edee7cd7
4
+ data.tar.gz: 2b61ce856d91dca595a119e474c050345c3f99e47841d3d470da78ea4c5124fb
5
5
  SHA512:
6
- metadata.gz: 2c8e3c4d7b255ff81b50e072e648f440fd1961016fc94fbcbb28ce05b459dfa21dd6c1d1f9c4e457f6831527004a56105098c4034fab190595c14a1a100c7c7c
7
- data.tar.gz: 073e06486669bbe40295609fa1e39696a69a1026da1c129586ae9d9f51b883c3445bfa4c9bd69cd4127881d3cf197c57601ab43b22471bb49b88cfa90211058c
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.10"
7
+ VERSION = "2.14.11"
8
8
  end
data/lib/glossarist.rb CHANGED
@@ -10,10 +10,21 @@ require "lutaml/store"
10
10
 
11
11
  # glossarist datasets on disk are written in yeptris dump form (long plain
12
12
  # scalars unwrapped), so a silent fallback to Psych would reformat every
13
- # stored concept on the next save. Keep the native lane; hosts can override
14
- # with FONTIST_YAML (lutaml-model 0.8.161 stopped auto-detecting yeptris).
15
- if ENV.fetch("FONTIST_YAML", "yeptris") == "yeptris"
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
16
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
17
28
  end
18
29
 
19
30
  module Glossarist
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.10
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