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 +4 -4
- data/README.adoc +3 -3
- data/lib/glossarist/concept_manager.rb +8 -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: 3a4cc39193c017e8f66dd84a4c8252f67bfce4d39dcffd149097cd3148def5e7
|
4
|
+
data.tar.gz: 1b876ae71c7d505b4280d9aa2eab9b40ad70c7662fbd795c5a0200ee3f881f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 `
|
43
|
-
folder and its localized concepts are stored in the `
|
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.
|
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
|
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
|
-
|
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
|
|
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.3.
|
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-
|
11
|
+
date: 2025-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lutaml-model
|