stepmod-utils 0.5.0 → 0.6.0

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: 18bfb358046e62d1504ff514004e1c01213a5cd3a86c53985dabcf5ede14e56c
4
- data.tar.gz: 37bf06f7198d4066bbabba3038ab4107dd4ac16dc65add33d0cd267b26fd2bdd
3
+ metadata.gz: a5dc18c380e823b42d5e958c7c83008805c7ae44966481bd892ebe8e7119df9b
4
+ data.tar.gz: 83e1abb4edb5a8c9b585fca855024fb4cabc689a3223b858dd4b4d7c6f449897
5
5
  SHA512:
6
- metadata.gz: 767a9ba90526a414738cbc5bafe61b0e80da0f5b7ed9a714aa10442f87ca200303bd565ad718b0e5c2f5255311d174400fa00be6932f2b291c0b1ee55ed597b8
7
- data.tar.gz: a73c95f1f931e1023f44bf308888a38cb1f1f7bc570e7fe910131e50e843b6c2d0384bb863f33fe35456ffdd39512ca85bb0e85f13cb62c7b663dc7178d78e39
6
+ metadata.gz: b55e1bce8655edcc98ded98f9bd1658ecedafb15c413e123f9de6d5aecfe079f9ed929417683ad54b17e0586b55354baf4a798a94fc4a0908b825b58ca973209
7
+ data.tar.gz: 9dd2822119df10d4c6e1f66b5a49329e093c8c1a8b2bfcf05609f67660b3a5b5e0aff62fc86e8b116eb3c7da0721088d1aee91df2d9879b42da243897c10e4ba
@@ -7,6 +7,41 @@ require "fileutils"
7
7
  require "bundler/setup"
8
8
  require "optparse"
9
9
 
10
+ SKIP_DETACHED_SCHEMAS = %w(
11
+ assembly_constraint_schema
12
+ assembly_feature_relationship_schema
13
+ basis_schema
14
+ conditions_schema
15
+ domain_schema
16
+ equations_schema
17
+ explicit_constraint_schema
18
+ explicit_geometric_constraint_schema
19
+ fea_scalar_vector_tensor_schema
20
+ finite_element_analysis_control_and_result_schema
21
+ hierarchy_schema
22
+ iso13584_expressions_schema
23
+ ISO13584_expressions_schema
24
+ iso13584_generic_expressions_schema
25
+ ISO13584_generic_expressions_schema
26
+ mathematical_functions_schema
27
+ mesh_connectivity_schema
28
+ mesh_function_schema
29
+ mesh_topology_schema
30
+ method_definition_schema
31
+ parameterization_schema
32
+ procedural_model_schema
33
+ procedural_shape_model_schema
34
+ procedural_sketch_schema
35
+ process_property_representation_schema
36
+ process_property_schema
37
+ results_schema
38
+ sketch_schema
39
+ solid_shape_element_schema
40
+ structural_response_definition_schema
41
+ structural_response_representation_schema
42
+ variational_representation_schema
43
+ )
44
+
10
45
  def log(message, indent = 0)
11
46
  indent_spaces = " " * (indent * 2)
12
47
  puts "[stepmod-utils] #{indent_spaces}#{message}"
@@ -91,8 +126,9 @@ def all_express_files(stepmod_dir)
91
126
  files << "#{stepmod_dir}/data/modules/#{item['name']}/mim.exp"
92
127
  end
93
128
 
129
+ # Skip resource schemas
94
130
  index.xpath("resources/resource").each do |item|
95
- next if item["name"] == "iso13584_expressions_schema"
131
+ next if SKIP_DETACHED_SCHEMAS.include?(item["name"])
96
132
 
97
133
  files << "#{stepmod_dir}/data/resources/#{item['name']}/#{item['name']}.exp"
98
134
  end
@@ -1,5 +1,5 @@
1
1
  module Stepmod
2
2
  module Utils
3
- VERSION = "0.5.0".freeze
3
+ VERSION = "0.6.0".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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.