glossarist 2.3.1 → 2.3.3
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/Gemfile +4 -3
- data/exe/glossarist +5 -3
- data/glossarist.gemspec +1 -1
- data/lib/glossarist/concept.rb +5 -6
- data/lib/glossarist/concept_data.rb +7 -7
- data/lib/glossarist/concept_manager.rb +1 -1
- data/lib/glossarist/designation/base.rb +2 -2
- data/lib/glossarist/designation/expression.rb +2 -2
- data/lib/glossarist/designation/grammar_info.rb +1 -3
- data/lib/glossarist/localized_concept.rb +1 -1
- data/lib/glossarist/managed_concept.rb +1 -2
- data/lib/glossarist/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75cc5452007137935ee367597782e90653e258410395ec0999759c476b17951
|
4
|
+
data.tar.gz: 288b8e2296bc38eec16a23d98cde09c8d8bfb3b80c9faa6ae9d8e93b74f9e602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d96f49186c0afc7908fc13300fba02376e50a9a216efa49e3e196a7bbd3aa469507469c86d98fecdd63a8ee4c37bbf8fd9f8ac8ca912f1bb80008b4cefd41342
|
7
|
+
data.tar.gz: ece9076469e7989b2733016466622cd7371b633fb6f26880c0d184716bd8a7040a78378d1629a3de65084ce34b07ab4656424cb79f951c08aab97294a512b2de
|
data/Gemfile
CHANGED
data/exe/glossarist
CHANGED
@@ -21,12 +21,14 @@ class GlossaristCommand < Thor
|
|
21
21
|
|
22
22
|
concept_set = Glossarist::ConceptSet.new(options[:concepts_path], assets)
|
23
23
|
latex_str = concept_set.to_latex(latex_concepts_file)
|
24
|
+
output_latex(latex_str)
|
25
|
+
end
|
24
26
|
|
27
|
+
def output_latex(latex_str)
|
25
28
|
output_file_path = options[:output_file]
|
29
|
+
|
26
30
|
if output_file_path
|
27
|
-
File.open(output_file_path, "w")
|
28
|
-
file.puts latex_str
|
29
|
-
end
|
31
|
+
File.open(output_file_path, "w") { |file| file.puts latex_str }
|
30
32
|
else
|
31
33
|
puts latex_str
|
32
34
|
end
|
data/glossarist.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "lutaml-model", "~> 0.
|
33
|
+
spec.add_dependency "lutaml-model", "~> 0.7"
|
34
34
|
spec.add_dependency "relaton", "~> 1.19"
|
35
35
|
spec.add_dependency "thor"
|
36
36
|
end
|
data/lib/glossarist/concept.rb
CHANGED
@@ -15,14 +15,13 @@ module Glossarist
|
|
15
15
|
map :data, to: :data
|
16
16
|
map :termid, to: :termid
|
17
17
|
map :subject, to: :subject
|
18
|
-
map
|
19
|
-
map
|
20
|
-
map
|
18
|
+
map %i[non_verb_rep nonVerbRep], to: :non_verb_rep
|
19
|
+
map %i[extension_attributes extensionAttributes], to: :extension_attributes
|
20
|
+
map %i[lineage_source lineageSource], to: :lineage_source
|
21
21
|
map :localizations, to: :localizations
|
22
|
-
map
|
22
|
+
map %i[extension_attributes extensionAttributes], to: :extension_attributes
|
23
23
|
|
24
|
-
map
|
25
|
-
with: { from: :date_accepted_from_yaml, to: :date_accepted_to_yaml }
|
24
|
+
map %i[date_accepted dateAccepted], with: { from: :date_accepted_from_yaml, to: :date_accepted_to_yaml }
|
26
25
|
map :uuid, to: :uuid, with: { to: :uuid_to_yaml, from: :uuid_from_yaml }
|
27
26
|
map :id, to: :id, with: { to: :id_to_yaml, from: :id_from_yaml }
|
28
27
|
map :identifier, to: :id, with: { to: :id_to_yaml, from: :id_from_yaml }
|
@@ -28,7 +28,7 @@ module Glossarist
|
|
28
28
|
map :definition, to: :definition, render_nil: true
|
29
29
|
map :examples, to: :examples, render_nil: true
|
30
30
|
map :id, to: :id
|
31
|
-
map
|
31
|
+
map %i[lineage_source_similarity lineageSourceSimilarity], to: :lineage_source_similarity
|
32
32
|
map :notes, to: :notes, render_nil: true
|
33
33
|
map :release, to: :release
|
34
34
|
map :sources, to: :sources
|
@@ -36,11 +36,11 @@ module Glossarist
|
|
36
36
|
with: { from: :terms_from_yaml, to: :terms_to_yaml }
|
37
37
|
map :related, to: :related
|
38
38
|
map :domain, to: :domain
|
39
|
-
map
|
40
|
-
map
|
41
|
-
map
|
42
|
-
map
|
43
|
-
map
|
39
|
+
map %i[language_code languageCode], to: :language_code
|
40
|
+
map %i[entry_status entryStatus], to: :entry_status
|
41
|
+
map %i[review_date reviewDate], to: :review_date
|
42
|
+
map %i[review_decision_date reviewDecisionDate], to: :review_decision_date
|
43
|
+
map %i[review_decision_event reviewDecisionEvent], to: :review_decision_event
|
44
44
|
end
|
45
45
|
|
46
46
|
def terms_from_yaml(model, value)
|
@@ -48,7 +48,7 @@ module Glossarist
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def terms_to_yaml(model, doc)
|
51
|
-
doc["terms"] = model.terms
|
51
|
+
doc["terms"] = model.terms&.map(&:to_yaml_hash)
|
52
52
|
end
|
53
53
|
|
54
54
|
def date_accepted
|
@@ -9,8 +9,8 @@ module Glossarist
|
|
9
9
|
|
10
10
|
yaml do
|
11
11
|
map :type, to: :type
|
12
|
-
map
|
13
|
-
map
|
12
|
+
map %i[normative_status normativeStatus], to: :normative_status
|
13
|
+
map %i[geographical_area geographicalArea], to: :geographical_area
|
14
14
|
map :designation, to: :designation
|
15
15
|
end
|
16
16
|
|
@@ -16,8 +16,8 @@ module Glossarist
|
|
16
16
|
yaml do
|
17
17
|
map :type, to: :type, render_default: true
|
18
18
|
map :prefix, to: :prefix
|
19
|
-
map
|
20
|
-
map
|
19
|
+
map %i[usage_info usageInfo], to: :usage_info
|
20
|
+
map %i[grammar_info grammarInfo], to: :grammar_info
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.of_yaml(hash, options = {})
|
@@ -12,9 +12,7 @@ module Glossarist
|
|
12
12
|
map :gender, to: :gender
|
13
13
|
map :number, to: :number
|
14
14
|
|
15
|
-
map
|
16
|
-
with: { to: :part_of_speech_to_yaml,
|
17
|
-
from: :part_of_speech_from_yaml }
|
15
|
+
map %i[part_of_speech partOfSpeech], with: { to: :part_of_speech_to_yaml, from: :part_of_speech_from_yaml }
|
18
16
|
Glossarist::GlossaryDefinition::GRAMMAR_INFO_BOOLEAN_ATTRIBUTES.each do |bool_attr|
|
19
17
|
map bool_attr,
|
20
18
|
with: { to: :"part_of_speech_#{bool_attr}_to_yaml",
|
@@ -28,8 +28,7 @@ module Glossarist
|
|
28
28
|
with: { to: :identifier_to_yaml, from: :identifier_from_yaml }
|
29
29
|
map :related, to: :related
|
30
30
|
map :dates, to: :dates
|
31
|
-
map
|
32
|
-
with: { from: :date_accepted_from_yaml, to: :date_accepted_to_yaml }
|
31
|
+
map %i[date_accepted dateAccepted], with: { from: :date_accepted_from_yaml, to: :date_accepted_to_yaml }
|
33
32
|
map :status, to: :status
|
34
33
|
|
35
34
|
map :uuid, to: :uuid, with: { from: :uuid_from_yaml, to: :uuid_to_yaml }
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lutaml-model
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: relaton
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.5.22
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Concept models for terminology glossaries conforming ISO 10241-1.
|