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: b4bb366577c4b43d545ccbdf77ea88e46ece9f0bbefe5ca493769131e18ccaed
4
- data.tar.gz: 9811424a834ad40699bfd1c2ed900762469407d764adbe714a5ccf47bc792ed7
3
+ metadata.gz: 9a89ee0f20383197f50531f7cb40ed5119dd9ff76570512827684fa748fd90df
4
+ data.tar.gz: da1604250c4468e0b8a27e4d580efed8ae96b83a24b1b321d93767568ee04f80
5
5
  SHA512:
6
- metadata.gz: 38fe3f3a2292c0f4e891bcb29997165ff5550aa2c4e95d5997afda0a77b01bd037642b8f412cd84fa4b01ffd90c70a12dea7a29acb532376984259ed7522a39d
7
- data.tar.gz: 2644087f0c877378d0d1e2fc417e74157906a0c00121f0504a0df3475d0d40de5b94a9ed542385ab3977b573e134747cb6f5bd2478d7ae41bb5a43fd9ce8622a
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&.to_s
25
- @version = pubid.edition&.to_s
26
- @pub_year = pubid.year&.to_s
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&.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
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
- note && note.match?(REDUNDENT_NOTE_REGEX) && !note.include?("\n")
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
@@ -1,5 +1,5 @@
1
1
  module Stepmod
2
2
  module Utils
3
- VERSION = "0.3.27".freeze
3
+ VERSION = "0.3.28".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stepmod-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.27
4
+ version: 0.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.