glossarist 2.10.0 → 2.10.1
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/glossary_store.rb +6 -2
- data/lib/glossarist/version.rb +1 -1
- 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: 444891250f970481ea0b53319bd26988f47374eecbbbf73a4e7e1ab3af0f8cf6
|
|
4
|
+
data.tar.gz: '074328e959207512be6b9c8fc175c3c343a72242e75ca1ed6d75a1c6792846d8'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79aedba5703e0e807f48304caeb17a1e8d95e716aa7e344260417c1f344f2607ee2c416c6b16c397b1c828e0f57a2250cd76a32bccb5172e781ca7c45df754e1
|
|
7
|
+
data.tar.gz: 7b080759a869d7018c1f2019f972cc3b1d374a5fa278aa97cb1db0bb938c0116ebd0a72f121b58cb9f9c6f785d3d68efd6225bb6e67c2d1013a95b65c598b1e6
|
|
@@ -269,7 +269,11 @@ module Glossarist
|
|
|
269
269
|
end
|
|
270
270
|
|
|
271
271
|
def load_legacy_localizations(managed_concept, lc_index, version = "3")
|
|
272
|
-
l10n_class = version.to_s
|
|
272
|
+
l10n_class = case version.to_s
|
|
273
|
+
when "2" then V2::LocalizedConcept
|
|
274
|
+
when "3" then V3::LocalizedConcept
|
|
275
|
+
else LocalizedConcept
|
|
276
|
+
end
|
|
273
277
|
lc_map = managed_concept.data.localized_concepts || {}
|
|
274
278
|
lc_map.each_value do |uuid|
|
|
275
279
|
lc_file = lc_index[uuid]
|
|
@@ -344,7 +348,7 @@ module Glossarist
|
|
|
344
348
|
end
|
|
345
349
|
|
|
346
350
|
def detect_version(raw)
|
|
347
|
-
if (m = raw.match(/^schema_version:\s*v?(\d)/))
|
|
351
|
+
if (m = raw.match(/^schema_version:\s*['"]?v?(\d)/))
|
|
348
352
|
m[1]
|
|
349
353
|
else
|
|
350
354
|
"2"
|
data/lib/glossarist/version.rb
CHANGED
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.10.
|
|
4
|
+
version: 2.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|