iev 0.3.5 → 0.3.6
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/lib/iev/cli/command_helper.rb +4 -4
- data/lib/iev/term_builder.rb +26 -19
- data/lib/iev/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42bd017437d3f78d461046e2cf5252eddb3d4b45988f1b885abe3eb4ddcf6999
|
4
|
+
data.tar.gz: 2c234ead4432ea4f469973997d7c7c0fa4ba90a03d9db9039477eec7cf77a84e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828c3d9eb81d35e71ef7b90b5abe6f39d9cdf3828db452092a60313e46bee8d2b1e7d6a44a4d6affe03e76e1f1ab90a7788959db9c0ff3d70a33624f748aafc0
|
7
|
+
data.tar.gz: 62a2f57172955b8375a3dba2f5e8a6d4ffe004498a6aa0ceb97c5ad5dffe8083ca9f791b2b25e3d9d15efa4094e4844652b05e335c4b8aaff674d948b6d0c239
|
@@ -72,10 +72,10 @@ module Iev
|
|
72
72
|
Glossarist::ManagedConceptCollection.new.tap do |concept_collection|
|
73
73
|
dataset.each do |row|
|
74
74
|
term = TermBuilder.build_from(row)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
next unless term
|
76
|
+
|
77
|
+
concept = concept_collection.fetch_or_initialize(term.id)
|
78
|
+
concept.add_l10n(term)
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
data/lib/iev/term_builder.rb
CHANGED
@@ -44,7 +44,7 @@ module Iev
|
|
44
44
|
|
45
45
|
split_definition
|
46
46
|
|
47
|
-
Glossarist::LocalizedConcept.
|
47
|
+
Glossarist::LocalizedConcept.from_hash(term_hash)
|
48
48
|
end
|
49
49
|
|
50
50
|
def term_hash
|
@@ -65,19 +65,22 @@ module Iev
|
|
65
65
|
|
66
66
|
{
|
67
67
|
id: term_id,
|
68
|
-
entry_status: extract_entry_status,
|
69
68
|
classification: extract_classification,
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
69
|
+
entry_status: extract_entry_status,
|
70
|
+
data: {
|
71
|
+
id: term_id,
|
72
|
+
dates: dates,
|
73
|
+
definition: [{ "content" => extract_definition_value }],
|
74
|
+
examples: extract_examples,
|
75
|
+
notes: extract_notes,
|
76
|
+
terms: extract_terms,
|
77
|
+
review_date: flesh_date(find_value_for("PUBLICATIONDATE")),
|
78
|
+
review_decision_date: flesh_date(find_value_for("PUBLICATIONDATE")),
|
79
|
+
review_decision_event: "published",
|
80
|
+
language_code: term_language,
|
81
|
+
sources: extract_authoritative_source,
|
82
|
+
related: extract_superseded_concepts,
|
83
|
+
}.compact,
|
81
84
|
}.compact
|
82
85
|
end
|
83
86
|
|
@@ -215,17 +218,21 @@ module Iev
|
|
215
218
|
|
216
219
|
def extract_examples
|
217
220
|
@examples.map do |str|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
+
{
|
222
|
+
content: Iev::Converter.mathml_to_asciimath(
|
223
|
+
replace_newlines(parse_anchor_tag(str, term_domain)),
|
224
|
+
).strip,
|
225
|
+
}
|
221
226
|
end
|
222
227
|
end
|
223
228
|
|
224
229
|
def extract_notes
|
225
230
|
@notes.map do |str|
|
226
|
-
|
227
|
-
|
228
|
-
|
231
|
+
{
|
232
|
+
content: Iev::Converter.mathml_to_asciimath(
|
233
|
+
replace_newlines(parse_anchor_tag(str, term_domain)),
|
234
|
+
).strip,
|
235
|
+
}
|
229
236
|
end
|
230
237
|
end
|
231
238
|
|
data/lib/iev/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-05-12 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: creek
|
@@ -197,6 +198,7 @@ homepage: https://github.com/metanorma/iev
|
|
197
198
|
licenses:
|
198
199
|
- BSD-2-Clause
|
199
200
|
metadata: {}
|
201
|
+
post_install_message:
|
200
202
|
rdoc_options: []
|
201
203
|
require_paths:
|
202
204
|
- lib
|
@@ -211,7 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
213
|
- !ruby/object:Gem::Version
|
212
214
|
version: '0'
|
213
215
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.5.22
|
217
|
+
signing_key:
|
215
218
|
specification_version: 4
|
216
219
|
summary: 'Iev: Fetch and encode Iev term from Electropedia'
|
217
220
|
test_files: []
|