glossarist 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/glossarist +5 -3
- data/glossarist.gemspec +1 -1
- data/lib/glossarist/concept.rb +5 -6
- data/lib/glossarist/concept_data.rb +6 -6
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0667bd53eab8d4a86ef3376ddb095b7dafe5ce903b5df39683f279ef51c01a7e
|
4
|
+
data.tar.gz: 66a281d1f6132de430a6c24706eeb564c98c10f97cfac4751811c33dae2fdcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eb5758d7c7528f8cf8759924e9b2e6e5872ea58ef4c63b86365265f884f99ac4899caf62003bd01b2cb9ff8f32d914775df95820f21907c8f5cb80c306009a4
|
7
|
+
data.tar.gz: 43b9635c121ca5e910611a46109a3353c2290ef8e901bec2b1a55e37e03d707e28cfb927ed6a20c9e6e85df9bc708801552bab821d20f63dff71bce832055e14
|
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.6"
|
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)
|
@@ -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.2
|
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-02-13 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.6'
|
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.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: relaton
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|