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 +4 -4
- data/lib/glossarist/version.rb +1 -1
- data/lib/glossarist.rb +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5d6954a79534063c54006d7d1037dcee6c9dd6ee0f12c1158501f80edee7cd7
|
|
4
|
+
data.tar.gz: 2b61ce856d91dca595a119e474c050345c3f99e47841d3d470da78ea4c5124fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c4e3dd3d497a4be0de1a8dc8674d7bea41cca68a12ef512b08c606a16233b2d194eb748e7cc3a00832d7f914f219768c23b9e606f431a651394c285e0d30951
|
|
7
|
+
data.tar.gz: cc0a8af8513ceaff32ef4bc110fe70e329571718210b05921930c93cc61735fba09315c182aaae353aafe2e019cced5c9e9964c357796c175fedd498c4b3b670
|
data/lib/glossarist/version.rb
CHANGED
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
|
|
14
|
-
#
|
|
15
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|