stepmod-utils 0.4.6 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 452e61db6853badb9ad2d292020fe4e2209b8929b350aa1e72eb2861774fad18
4
- data.tar.gz: 585b3f1442e98f0416c061410dd0308d34912d065bc6eb347f05fe1a4d09ae3f
3
+ metadata.gz: 56af2e43aaa49e4c057e994a493a9c0d2c725814787d324e374593a153b94130
4
+ data.tar.gz: 79619510b0aeed2723f8559b5279ae1eb4deaa95c39d2166313a2081d37ba681
5
5
  SHA512:
6
- metadata.gz: d94e1ee3ff438a2982c464b7e0c478f0b1fade7c7472d01bfeabccab76892834bec5e5bc0f62739a6ab37062be3cc3ececdbf7d8f7f1fe8aa7a6fc6b7564e2d6
7
- data.tar.gz: 92c857ca6f410d1f00a3498a908a5255cbab78cec9cac603b54c0e40ecf38c3de442827176df4cd3ac81aac4b7fa22f17b4a667b859153f89c7169b2293fdb48
6
+ metadata.gz: 45c66ca593d749fc7313d27f730cfe9b652b93f2528cf8895e812334b3e26e2a390c263d086c4a0a6dbed62f3fd0b68dbe341f477625a6c469a927e750012bcc
7
+ data.tar.gz: f4414a374e31493b945f1474a150e5684a3a661b72a327ebddcb8c204f28904f74446b46d87ae079993f49a44b843858c17e0cf39eaeb88aa5451e1cd61b5f7e
@@ -26,11 +26,18 @@ jobs:
26
26
  token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
27
27
  path: iso-10303-stepmod-wg12
28
28
 
29
+ - name: Generate Folders for schemas
30
+ run: mkdir schemas
31
+
32
+ - name: Generate Folders for documents
33
+ run: mkdir documents
34
+
29
35
  - name: Generate Annotated EXPRESS files
30
36
  run: |
31
37
  bundle exec stepmod-annotate-all \
32
38
  --stepmod-dir ./iso-10303-stepmod-wg12 \
33
- --output schemas
39
+ --schemas schemas \
40
+ --documents documents
34
41
 
35
42
  - name: Generate Concept YAML files
36
43
  working-directory: iso-10303-stepmod-wg12
@@ -149,14 +149,15 @@ log("[SRL MIGRATION] Migration starts!")
149
149
  log("*"*30)
150
150
  log("[SRL MIGRATION: stepmod2mn.jar] START SVG generation.")
151
151
  log("*"*30)
152
- system "java -Xss5m -jar #{stepmod2mn_path} #{stepmod_dir} --output #{srl_output_docs_dir} --svg"
152
+ system "java -Xss5m -jar #{stepmod2mn_path} #{stepmod_dir} --output-documents #{srl_output_docs_dir} --output-schemas #{srl_output_schemas_dir} --svg"
153
+
153
154
  log("*"*30)
154
155
  log("[SRL MIGRATION: stepmod2mn.jar] COMPLETE SVG generation.")
155
156
 
156
157
  log("*"*30)
157
158
  log("[SRL MIGRATION: stepmod2mn.jar] START document migration and SVG generation.")
158
159
  log("*"*30)
159
- system "java -Xss5m -jar #{stepmod2mn_path} #{stepmod_dir} --output #{srl_output_docs_dir}"
160
+ system "java -Xss5m -jar #{stepmod2mn_path} #{stepmod_dir} --output-documents #{srl_output_docs_dir} --output-schemas #{srl_output_schemas_dir}"
160
161
  log("*"*30)
161
162
  log("[SRL MIGRATION: stepmod2mn.jar] COMPLETE document migration and SVG generation.")
162
163
 
@@ -60,6 +60,7 @@ module Stepmod
60
60
  #{remove_trash_symbols(content.strip)}
61
61
  ++++
62
62
 
63
+
63
64
  TEMPLATE
64
65
  res = "[[#{cloned_node['id']}]]\n#{res}" if cloned_node["id"]&.length&.positive?
65
66
  res
@@ -10,6 +10,7 @@ module Stepmod
10
10
 
11
11
  <<~TEMPLATE
12
12
 
13
+
13
14
  [example]
14
15
  ====
15
16
  #{treat_children(node, state).strip}
@@ -6,6 +6,7 @@ module Stepmod
6
6
  class ExpressNote < ReverseAdoc::Converters::Base
7
7
  def convert(node, state = {})
8
8
  <<~TEMPLATE
9
+
9
10
  (*"#{state[:schema_and_entity]}.__note"
10
11
  #{treat_children(node, state).strip}
11
12
  *)
@@ -6,7 +6,6 @@ module Stepmod
6
6
  module Utils
7
7
  module Converters
8
8
  class Figure < ReverseAdoc::Converters::Figure
9
-
10
9
  def self.pattern(state, id)
11
10
  if state[:schema_and_entity].nil?
12
11
  raise StandardError.new("[figure]: no state given, #{id}")
@@ -10,6 +10,7 @@ module Stepmod
10
10
 
11
11
  <<~TEMPLATE
12
12
 
13
+
13
14
  [NOTE]
14
15
  --
15
16
  #{treat_children(node, state).strip}
@@ -1,5 +1,5 @@
1
1
  module Stepmod
2
2
  module Utils
3
- VERSION = "0.4.6".freeze
3
+ VERSION = "0.4.8".freeze
4
4
  end
5
5
  end
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.4.6
4
+ version: 0.4.8
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-12-11 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby