glossarist 2.0.9 → 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: b513e776c8273441505b742e4ab559ecf887d994f0242943ac139483b4945749
4
- data.tar.gz: 3ee9b5ec607d2ca40f7b7b6bec0f05dd2a4dc0c89d1ca44371c2737ff97b9082
3
+ metadata.gz: ab9f794633ad83fc5d35fec74fad5006d187a4cd3c5c1ba91e563506a16ddaed
4
+ data.tar.gz: 1c0af3de4b228856e9adc0f579f709e2f4c63a44d827b66325f2ea1b79df776a
5
5
  SHA512:
6
- metadata.gz: 2d229ebe8d4a08abe267a13afc67d2eb04b00dfee2e1c2d4c9d6441f7f42d35441effddf48716693778fbcd65095791ee9f1690fc1d064220e74bcabca563807
7
- data.tar.gz: 85555a89c34a7894b6354fcb3fda79d0170f94c295dc557a0917cdaabcf4e3b4ea80e88812799108b5a3c8117aba9c4256a69a0b901488efca4e2a90302ae937
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:
@@ -208,7 +208,11 @@ module Glossarist
208
208
  data = arg.delete("data")
209
209
 
210
210
  arg.merge!(data) if data
211
- arg.delete("authoritative_source") if arg["sources"]
211
+
212
+ if arg["sources"]
213
+ arg.delete("authoritative_source")
214
+ arg.delete("authoritativeSource")
215
+ end
212
216
  end
213
217
  end
214
218
  end
@@ -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.9"
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.9
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.