trailblazer-developer 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c8a254986c9786c115dc449f613827d7a150b45c6c70450cd64b6737f050835
|
4
|
+
data.tar.gz: 5cb310e85b4fd1445a502e169272627df7ffb4140adaf839f8528da3b0a56b69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47855c140e29e0aede4c005daee72119b92e51da2260216a6dc6d2d97cb46b6e7f912441114133addd7b4ad21deaccb388e7182485026a4cff98aa2386c76590
|
7
|
+
data.tar.gz: '097c4814f05456c2e69762b0c324b070b0ba1e5b269f21a9c4f8d8dd82f5ab8889151851e6df1ebbb1de95319dc5e1363a135c71d39a4ebf0956c26b88a2eff0'
|
@@ -49,7 +49,10 @@ module Trailblazer
|
|
49
49
|
|
50
50
|
inter = Activity::Schema::Intermediate
|
51
51
|
|
52
|
-
wiring = elements.collect { |el|
|
52
|
+
wiring = elements.collect { |el|
|
53
|
+
data = data_for(el)
|
54
|
+
|
55
|
+
[inter.TaskRef(el.id, data), el.linksTo.collect { |arrow| inter.Out(semantic_for(arrow.to_h), arrow.target) } ] }
|
53
56
|
wiring = Hash[wiring]
|
54
57
|
|
55
58
|
# end events need this stupid special handling
|
@@ -68,6 +71,10 @@ module Trailblazer
|
|
68
71
|
|
69
72
|
# private
|
70
73
|
|
74
|
+
def data_for(element)
|
75
|
+
{type: element.type}.merge(element.data)
|
76
|
+
end
|
77
|
+
|
71
78
|
# We currently use the {:label} field of an arrow to encode an output semantic.
|
72
79
|
# The {:symbol_style} part will be filtered out as semantic. Defaults to {:success}.
|
73
80
|
def semantic_for(label:nil, **)
|
@@ -42,13 +42,13 @@ module Trailblazer
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def inspect_end(task)
|
45
|
-
class_name = strip(task.class)
|
45
|
+
class_name = Render::Circuit.strip(task.class)
|
46
46
|
options = task.to_h
|
47
47
|
|
48
48
|
"#<#{class_name}/#{options[:semantic].inspect}>"
|
49
49
|
end
|
50
50
|
|
51
|
-
def strip(string)
|
51
|
+
def self.strip(string)
|
52
52
|
string.to_s.sub("Trailblazer::Activity::", "")
|
53
53
|
end
|
54
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-developer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.7.
|
181
|
+
rubygems_version: 2.7.3
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Developer tools for Trailblazer.
|