glossarist 2.3.10 → 2.3.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: 92a374af660211342e4f275381d50abb770cd2db1dc13a605d41d1e688ef75d2
4
- data.tar.gz: 6971b2ac8948034157b07adfbe81d805fffe12b90989f4cad628368a57cc1abb
3
+ metadata.gz: 3a4cc39193c017e8f66dd84a4c8252f67bfce4d39dcffd149097cd3148def5e7
4
+ data.tar.gz: 1b876ae71c7d505b4280d9aa2eab9b40ad70c7662fbd795c5a0200ee3f881f88
5
5
  SHA512:
6
- metadata.gz: e748889d5afa2a7be0091e4a4d65937e7f2dbbfcf40fbcaa0bb186a16c7283b0d7150a573c7a02d969a5ad2623eef13b5f57a2acf912db6810717d7666b0fd94
7
- data.tar.gz: b866f37821ea3ed8964ae2fe7942082e4f8a98c41766ca0f948ab0a3b1956ecb61c232a8cbb377d7759d0e08c02c9336c6d722fdd2c4d3cb951e4e6c183def98
6
+ metadata.gz: fe5475e31ddb035e8b7b2ff1225a678449be2dcc6f72c04f790d85af5f905e7339559d741d6ebb4111e7560b7be759c5185695f392a4851df859afd97bf290ad
7
+ data.tar.gz: a9d36fcfeebadc62003a2579ff77eee012b5b5a952d8874c25da69c9792f335364a5b7f76e8a7f9a88a9eba20dbc24bb70aff636b5a862e1497139235d95df3b
data/README.adoc CHANGED
@@ -39,10 +39,10 @@ concepts in the form of YAML files.
39
39
  The storage structure of the dataset has 2 forms:
40
40
 
41
41
  1. Each concept is stored in a concept YAML file and its localized concepts are
42
- stored in separate YAML files. The concept files are stored in the `concepts`
43
- folder and its localized concepts are stored in the `localized_concepts` folder.
42
+ stored in separate YAML files. The concept files are stored in the `concept`
43
+ folder and its localized concepts are stored in the `localized_concept` folder.
44
44
  2. Each concept and its related localized concepts are stored in a single YAML
45
- file. The concept files are stored in the `concepts` folder.
45
+ file. These concept files are stored directly in the specified path.
46
46
 
47
47
  To load the glossarist model V2 dataset:
48
48
 
@@ -112,7 +112,7 @@ module Glossarist
112
112
 
113
113
  def save_grouped_concepts_to_file(concept)
114
114
  @localized_concepts_path ||= "localized_concept"
115
- concept_dir = File.join(path, "concept")
115
+ concept_dir = File.join(path)
116
116
 
117
117
  Dir.mkdir(concept_dir) unless Dir.exist?(concept_dir)
118
118
 
@@ -134,7 +134,13 @@ module Glossarist
134
134
  if v1_collection?
135
135
  File.join(path, "concept-*.{yaml,yml}")
136
136
  else
137
- File.join(path, "concept", "*.{yaml,yml}")
137
+ # normal v2 collection
138
+ concepts_glob = File.join(path, "concept", "*.{yaml,yml}")
139
+ if Dir.glob(concepts_glob).empty?
140
+ # multiple content YAML files
141
+ concepts_glob = File.join(path, "*.{yaml,yml}")
142
+ end
143
+ concepts_glob
138
144
  end
139
145
  end
140
146
 
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.3.10"
7
+ VERSION = "2.3.11"
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.3.10
4
+ version: 2.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-16 00:00:00.000000000 Z
11
+ date: 2025-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model