glossarist 2.0.10 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +2 -0
- data/lib/glossarist/managed_concept.rb +8 -6
- data/lib/glossarist/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab9f794633ad83fc5d35fec74fad5006d187a4cd3c5c1ba91e563506a16ddaed
|
4
|
+
data.tar.gz: 1c0af3de4b228856e9adc0f579f709e2f4c63a44d827b66325f2ea1b79df776a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cb0ad5ac9ea10c2aaad16062c6c5a10878b7c7f7bf6dd7a9e7641417ed2d1f47ee3fd3c9fc86fbca7262234e5a05141a11f584e798fe493d99064b73bcead0d
|
7
|
+
data.tar.gz: e4431def5662c9f7eceff74cbff8258128525e657fb4901e06fd21a2243ad8f3d98fad62e28766aa5bdf0d20149ffd66525389fd3b703c57907e4fb2873dbd03
|
data/README.adoc
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
Glossarist gem implements the {glossarist_model_url}[Glossarist model] in ruby. All the entities in the model are available as classes and all the attributes are available as methods of those classes.
|
7
7
|
This gem also allows you to read/write data to concept dataset or create your own collection and save that to glossarist model V2 dataset.
|
8
8
|
|
9
|
+
The YAML schema for `concept` and `localized_concept` is available at {glossarist_model_v2_schema_url}[Concept model/yaml_schemas]
|
10
|
+
|
9
11
|
== Installation
|
10
12
|
|
11
13
|
Add this line to your application's Gemfile:
|
@@ -80,14 +80,16 @@ module Glossarist
|
|
80
80
|
if localized_concepts.is_a?(Hash)
|
81
81
|
@localized_concepts = stringify_keys(localized_concepts)
|
82
82
|
else
|
83
|
-
localized_concepts.each do |
|
84
|
-
lang =
|
83
|
+
localized_concepts.each do |localized_concept_hash|
|
84
|
+
lang = localized_concept_hash["language_code"].to_s
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
add_localization(
|
89
|
-
@localized_concept_class.new(localized_concept["data"] || localized_concept),
|
86
|
+
localized_concept = add_localization(
|
87
|
+
@localized_concept_class.new(localized_concept_hash["data"] || localized_concept_hash),
|
90
88
|
)
|
89
|
+
|
90
|
+
@localized_concepts[lang] = localization(lang).uuid
|
91
|
+
|
92
|
+
localized_concept
|
91
93
|
end
|
92
94
|
end
|
93
95
|
end
|
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.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.3.
|
172
|
+
rubygems_version: 3.3.27
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Concept models for terminology glossaries conforming ISO 10241-1.
|