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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3603e9187cc51c667cf1a2c3590cd356188849dcc123244003b90b602d86c20a
4
- data.tar.gz: ee4981edbeada9c0478442ab062f444aaa100d31b87a2b800c5c3191e88a7bbb
3
+ metadata.gz: ab9f794633ad83fc5d35fec74fad5006d187a4cd3c5c1ba91e563506a16ddaed
4
+ data.tar.gz: 1c0af3de4b228856e9adc0f579f709e2f4c63a44d827b66325f2ea1b79df776a
5
5
  SHA512:
6
- metadata.gz: dd469aff1f5b5698227c49801b66f7caaca3435ec0895a62375ba98c262f59773f87cfdccb778e0d5fcfd07647c284d82213537055bf2f5562072d617f34f6e0
7
- data.tar.gz: 457f0d331fdf88502e9d1c145ad8e6ed75c915c9613d1d77d620e5c8f4fd27a3f10672e9c9a3dbea2740dce12fcdfcf0cad616a267b9d1ecd78e7cb433748109
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 |localized_concept|
84
- lang = localized_concept["language_code"].to_s
83
+ localized_concepts.each do |localized_concept_hash|
84
+ lang = localized_concept_hash["language_code"].to_s
85
85
 
86
- @localized_concepts[lang] = Glossarist::Utilities::UUID.uuid_v5(@uuid_namespace, localized_concept.to_h.to_yaml)
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
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "2.0.10"
7
+ VERSION = "2.1.0"
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.0.10
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-03-28 00:00:00.000000000 Z
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.26
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.