stepmod-utils 0.3.27 → 0.3.28
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a89ee0f20383197f50531f7cb40ed5119dd9ff76570512827684fa748fd90df
|
|
4
|
+
data.tar.gz: da1604250c4468e0b8a27e4d580efed8ae96b83a24b1b321d93767568ee04f80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d85e5bba81c33686ce6043101d441414aedade864308e32bd6f6334444f1abecb6c18031a8250163977e56892457e245504112440735c59a122c6dd03ebd33b
|
|
7
|
+
data.tar.gz: 9b2bbbd5cd86c8069bbb26854e0187808c16774856552ee5838ad5c5c0133e45721e533caf8eef0c867da4fd2c264cd67692f68066afcd236a3b8f71078a0514
|
|
@@ -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_i
|
|
25
|
+
@version = pubid.edition&.to_i
|
|
26
|
+
@pub_year = pubid.year&.to_i
|
|
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_i
|
|
29
|
+
@version = schema.version.items.find { |i| i.name == "part" }.value&.to_i
|
|
30
|
+
@pub_year = schema.version.items.find { |i| i.name == "part" }.value&.to_i
|
|
31
31
|
else
|
|
32
32
|
raise "PublishedInfoNotFound"
|
|
33
33
|
end
|
|
@@ -141,6 +141,11 @@ module Stepmod
|
|
|
141
141
|
next
|
|
142
142
|
end
|
|
143
143
|
|
|
144
|
+
if x["name"] == "iso13584_generic_expressions_schema"
|
|
145
|
+
log "INFO: skipping resource #{x['name']} as the ISO 13584 series is out of scope."
|
|
146
|
+
next
|
|
147
|
+
end
|
|
148
|
+
|
|
144
149
|
path = @stepmod_path.join("resources/#{x['name']}/#{x['name']}_annotated.exp")
|
|
145
150
|
if File.exist? path
|
|
146
151
|
files << path
|
|
@@ -558,7 +563,9 @@ module Stepmod
|
|
|
558
563
|
end
|
|
559
564
|
|
|
560
565
|
def redundant_note?(note)
|
|
561
|
-
|
|
566
|
+
return true if note.nil?
|
|
567
|
+
|
|
568
|
+
note.match?(REDUNDENT_NOTE_REGEX) && !note.include?("\n")
|
|
562
569
|
end
|
|
563
570
|
end
|
|
564
571
|
end
|