stepmod-utils 0.3.25 → 0.3.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/stepmod-annotate-all +2 -0
- data/lib/stepmod/utils/concept.rb +1 -1
- data/lib/stepmod/utils/express_bibdata.rb +6 -6
- data/lib/stepmod/utils/stepmod_file_annotator.rb +1 -1
- data/lib/stepmod/utils/terms_extractor.rb +2 -2
- data/lib/stepmod/utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9ad52321cd8307aae7754edc2b9e45f2e20d372aceca95c667befce3717fae2
|
4
|
+
data.tar.gz: c86cb0fb6e7a7c8e654571cbc0eb31792e760be7069402e04d05c17db8e13e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e19c30c54c9f4b8d6b32fbdf998ac7b741f5fb81193552e991c3e3daa194dc2bd37c1a3277245e8954672cb64d0c1260a070509e1e3daa199628acd993c89cf
|
7
|
+
data.tar.gz: a3601da30f90d16a8bb6c53a17950af15ca761379ded0f7ebb0a25607822944221e8d2d79c32a78c752ba470badc68b69ce3d047a30452201fbd78dfb28a1664
|
data/exe/stepmod-annotate-all
CHANGED
@@ -17,7 +17,7 @@ module Stepmod
|
|
17
17
|
# TODO: converted_definition is not supposed to be an attribute, it is
|
18
18
|
# supposed to be a method!
|
19
19
|
class << self
|
20
|
-
def parse(definition_xml, reference_anchor:, reference_clause:, file_path:, language_code: "
|
20
|
+
def parse(definition_xml, reference_anchor:, reference_clause:, file_path:, language_code: "eng")
|
21
21
|
converted_definition = Stepmod::Utils::StepmodDefinitionConverter.convert(
|
22
22
|
definition_xml,
|
23
23
|
{
|
@@ -21,13 +21,13 @@ module Stepmod
|
|
21
21
|
if !published_info.nil?
|
22
22
|
@pubid = Pubid::Iso::Identifier.parse(published_info)
|
23
23
|
|
24
|
-
@part = pubid.part
|
25
|
-
@version = pubid.edition
|
26
|
-
@pub_year = pubid.year
|
24
|
+
@part = pubid.part&.to_s
|
25
|
+
@version = pubid.edition&.to_s
|
26
|
+
@pub_year = pubid.year&.to_s
|
27
27
|
elsif !schema.version.nil?
|
28
|
-
@part = schema.version.items.find { |i| i.name == "part" }.value
|
29
|
-
@version = schema.version.items.find { |i| i.name == "part" }.value
|
30
|
-
@pub_year = schema.version.items.find { |i| i.name == "part" }.value
|
28
|
+
@part = schema.version.items.find { |i| i.name == "part" }.value&.to_s
|
29
|
+
@version = schema.version.items.find { |i| i.name == "part" }.value&.to_s
|
30
|
+
@pub_year = schema.version.items.find { |i| i.name == "part" }.value&.to_s
|
31
31
|
else
|
32
32
|
raise "PublishedInfoNotFound"
|
33
33
|
end
|
@@ -102,7 +102,7 @@ module Stepmod
|
|
102
102
|
|
103
103
|
# add resource paths
|
104
104
|
repo_index.xpath("//resource").each do |x|
|
105
|
-
next if x[
|
105
|
+
next if x["status"] == WITHDRAWN_STATUS || x["name"] == "iso13584_expressions_schema"
|
106
106
|
|
107
107
|
path = Pathname.new("#{stepmod_dir}/resources/#{x['name']}/#{x['name']}_annotated.exp")
|
108
108
|
files << path if File.exist? path
|
@@ -340,7 +340,7 @@ module Stepmod
|
|
340
340
|
},
|
341
341
|
],
|
342
342
|
notes: notes,
|
343
|
-
language_code: "
|
343
|
+
language_code: "eng",
|
344
344
|
part: bibdata.part,
|
345
345
|
schema: schema,
|
346
346
|
document: document,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stepmod-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|