cpee-transformation 1.1.1 → 1.1.2

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: 415e8dbb3e54ea1ab2fbc212c0c055eb67ea511d59d143b05afb2e12ecdd7413
4
- data.tar.gz: bbcc7ae1b3e2086719c40c557e731e6ea46e254eb8cbc3e1699a7bad3b15bc82
3
+ metadata.gz: 629e6bf4e083ebe49f5c5f25d189e6b82309dcee6a2547639691527298e256d1
4
+ data.tar.gz: aa2461392242c5e9dd2e07f8a8aad0e9b7997dbcb6d88b27b04874dc0bc81114
5
5
  SHA512:
6
- metadata.gz: 611200a834ba4158caa89a254a10183d0746d4bac420c8c8239d40aaf20770c2ec0bf69528646d8f86a1e40d5e1a35e69980241abc08df2d3c34254f385a57a4
7
- data.tar.gz: 72b7f7d8ebe8a0094a1006d26a7096296e015e6ef5f3917d5200a94273431e9953c4a7986b968f161b1830386b7d7371b5e7d46dfb90b9b3107be44bde881605
6
+ metadata.gz: 5e2d5c10129b41c22cfc9759aab3dcccf2f3990d5a9aa01f0e0e4a270a4563b58096dca40956960f831c0cc3145e6ef864a526f25c87ae69dca2f328c4c6cc53
7
+ data.tar.gz: b47bf04047725efbc50ee93444bdc869b14d794bb3d5468dbebe6e724584c0eea315c953bb82af973f6e86034ad07023299a62c51a92d5291111530a99e62815
data/README.md CHANGED
@@ -47,24 +47,24 @@ curl -F 'description=@model.xml;type=text/xml' -F 'type=description' http://loca
47
47
 
48
48
  ### BPMN2 target
49
49
 
50
- The BPMN2 target generates the CPEE model and lays it out with `bpmnexport`
51
- from [cpee-layout](https://github.com/etm/cpee-layout), so the result is BPMN
52
- with diagram interchange, laid out as drawn by cpee-layout. How `bpmnexport` is
50
+ The BPMN2 target generates the CPEE model and lays it out with `cpee-bpmnexport`
51
+ from [cpee-layout](https://github.com/etm/cpee-layout) 2, so the result is BPMN
52
+ with diagram interchange, laid out as drawn by cpee-layout. How `cpee-bpmnexport` is
53
53
  run is set in `trans.conf`. The default (also without a setting) is
54
54
 
55
55
  ```yaml
56
- :bpmnexport: npx -y -p cpee-layout@^1.2.0 bpmnexport
56
+ :bpmnexport: npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport
57
57
  ```
58
58
 
59
59
  and after `npm install -g cpee-layout` it can be
60
60
 
61
61
  ```yaml
62
- :bpmnexport: bpmnexport
62
+ :bpmnexport: cpee-bpmnexport
63
63
  ```
64
64
 
65
65
  A command name is searched in `PATH`, a path (containing `/`) is relative to
66
66
  the directory of `trans`, `~` works too, e.g.
67
- `~/Projects/cpee-layout/bin/bpmnexport` for a checkout. Arguments may follow.
67
+ `~/Projects/cpee-layout/bin/cpee-bpmnexport` for a checkout. Arguments may follow.
68
68
 
69
69
  The layout direction follows the model: the cockpit sets `dir="lr"` or
70
70
  `dir="td"` on the `<description>` root, depending on its theme, and `-lr` is
@@ -72,4 +72,4 @@ added for `dir="lr"`. Putting `-lr` into `trans.conf` makes every BPMN left to
72
72
  right.
73
73
 
74
74
  `tools/trans_cpee-to-bpmn2 FNAME` does the same on the command line, using the
75
- `server/trans.conf` of the gem. If `bpmnexport` can't be run or fails, the request returns 500.
75
+ `server/trans.conf` of the gem. If `cpee-bpmnexport` can't be run or fails, the request returns 500.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-transformation"
3
- s.version = "1.1.1"
3
+ s.version = "1.1.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "CPEE Transformation between different formats"
@@ -27,10 +27,10 @@ Gem::Specification.new do |s|
27
27
  s.add_runtime_dependency 'highline', '~> 2.0'
28
28
 
29
29
  s.post_install_message = <<~MSG
30
- The BPMN2 target uses bpmnexport from cpee-layout (Node.js >= 22.22). By
31
- default npx fetches it on first use. To avoid that, run
30
+ The BPMN2 target uses cpee-bpmnexport from cpee-layout 2 (Node.js >= 22.22).
31
+ By default npx fetches it on first use. To avoid that, run
32
32
  npm install -g cpee-layout
33
- and set ":bpmnexport: bpmnexport" in trans.conf of your service
33
+ and set ":bpmnexport: cpee-bpmnexport" in trans.conf of your service
34
34
  (scaffolded with cpee-trans new DIR).
35
35
  MSG
36
36
  end
@@ -149,14 +149,14 @@ module CPEE
149
149
 
150
150
  module Target #{{{
151
151
 
152
- # bpmnexport from cpee-layout (npm install -g cpee-layout) lays out the
152
+ # cpee-bpmnexport from cpee-layout (npm install -g cpee-layout) lays out the
153
153
  # generated CPEE model as drawn and writes it as BPMN with diagram
154
154
  # interchange. opts[:bpmnexport] (trans.conf) is a command name, searched
155
155
  # in PATH, or a path, relative to the server dir, optionally followed by
156
156
  # arguments. By default npx fetches cpee-layout on first use. -lr is added
157
157
  # when the source model has dir="lr" (set by the cockpit from its theme).
158
158
  class BPMN2 < Default
159
- BPMNEXPORT = 'npx -y -p cpee-layout@^1.2.0 bpmnexport'
159
+ BPMNEXPORT = 'npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport'
160
160
 
161
161
  class << self
162
162
  attr_accessor :opts
data/server/trans.conf CHANGED
@@ -1 +1 @@
1
- :bpmnexport: npx -y -p cpee-layout@^1.2.0 bpmnexport
1
+ :bpmnexport: npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport
@@ -43,7 +43,7 @@ require_relative '../lib/cpee/transformation/transformer' rescue nil
43
43
  require_relative '../lib/cpee/transformation/cpee' rescue nil
44
44
  require_relative '../lib/cpee/transformation/bpmn2' rescue nil
45
45
 
46
- # bpmnexport from cpee-layout, configured as for the server, see Target::BPMN2
46
+ # cpee-bpmnexport from cpee-layout, configured as for the server, see Target::BPMN2
47
47
  conf = File.join(__dir__,'..','server','trans.conf')
48
48
  CPEE::Transformation::Target::BPMN2.opts = {
49
49
  :basepath => File.dirname(conf)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-transformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -153,10 +153,10 @@ licenses:
153
153
  - LGPL-3.0-or-later
154
154
  metadata: {}
155
155
  post_install_message: |
156
- The BPMN2 target uses bpmnexport from cpee-layout (Node.js >= 22.22). By
157
- default npx fetches it on first use. To avoid that, run
156
+ The BPMN2 target uses cpee-bpmnexport from cpee-layout 2 (Node.js >= 22.22).
157
+ By default npx fetches it on first use. To avoid that, run
158
158
  npm install -g cpee-layout
159
- and set ":bpmnexport: bpmnexport" in trans.conf of your service
159
+ and set ":bpmnexport: cpee-bpmnexport" in trans.conf of your service
160
160
  (scaffolded with cpee-trans new DIR).
161
161
  rdoc_options: []
162
162
  require_paths: