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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 483020f943aae466ffd07054d852c766673b71ca17c4289d59be667c2bd7fb4f
4
- data.tar.gz: 876d6fdcdf3c087a4c6487a48e81592a14317bde57047fb7087104b2093d4e4f
3
+ metadata.gz: 444891250f970481ea0b53319bd26988f47374eecbbbf73a4e7e1ab3af0f8cf6
4
+ data.tar.gz: '074328e959207512be6b9c8fc175c3c343a72242e75ca1ed6d75a1c6792846d8'
5
5
  SHA512:
6
- metadata.gz: 3f7bca485b83de6c31bcf896f95d27007794e97eb54f1fc7136e7fa590b237d4a53735f9a136e624447bb886d6d5ff52b43a3adadbd3611dde296a06f2b214f7
7
- data.tar.gz: b7a489b23c7d504340cf7ae0c7bad68755d20cae57cacf8a6b340e2dde75a35fd64cce798157e9f0d4b0fc09a83d4f4fc94f7a58654d5cfda0c9aca835f77285
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 == "2" ? V2::LocalizedConcept : LocalizedConcept
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"
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.10.0"
7
+ VERSION = "2.10.1"
8
8
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2026-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model