trailblazer-developer 0.0.17 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGES.md +3 -0
- data/Gemfile +0 -1
- data/LICENSE +1 -1
- data/gems.local.rb +3 -0
- data/lib/trailblazer/developer/render/circuit.rb +1 -1
- data/lib/trailblazer/developer/trace/present.rb +4 -2
- data/lib/trailblazer/developer/version.rb +1 -1
- data/lib/trailblazer/developer/wtf.rb +6 -5
- data/lib/trailblazer/developer/wtf/renderer.rb +3 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 681f1eca62302de70e8e138f58ad0f2765bc08a5fbbb3d1eb17d10e88ac479e6
|
4
|
+
data.tar.gz: 96f1f8056ed5381c6b8f7c9264728121bb31e5928092889cf88d6ed2687ce154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70239ee2b542f1565b1a11e583611499c541bec4be99a38646881bdf12b679180ecdd08f0f67fcfb944469ad7cf9d6b221c90e46e99b6b041ef3473f7089e8fa
|
7
|
+
data.tar.gz: 64fd52e4e29c849f807bd06b1e747198feb37c9ad9c51e699569fb1eb2c05aea735754fd299526d140c771463411bd3c7d698e6bbe8736e8c812a804b5121f98
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/gems.local.rb
CHANGED
@@ -14,7 +14,8 @@ module Trailblazer::Developer
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def tree(stack, level, tree:, renderer:, **options)
|
17
|
-
|
17
|
+
opts = options.merge(tree: tree)
|
18
|
+
tree_for(stack, level, **opts)
|
18
19
|
|
19
20
|
nodes = tree.each_with_index.map do |task_node, position|
|
20
21
|
renderer.(task_node: task_node, position: position, tree: tree)
|
@@ -30,7 +31,8 @@ module Trailblazer::Developer
|
|
30
31
|
tree.push(*TreeNodes.for(level, options.merge(input: input, output: output)))
|
31
32
|
|
32
33
|
if nested.any? # nesting
|
33
|
-
|
34
|
+
opts = options.merge(tree: tree)
|
35
|
+
tree_for(nested, level + 1, **opts)
|
34
36
|
end
|
35
37
|
|
36
38
|
tree
|
@@ -52,7 +52,7 @@ module Trailblazer::Developer
|
|
52
52
|
variables: Array( flow_options.dig(:focus_on, :variables) ),
|
53
53
|
}
|
54
54
|
|
55
|
-
|
55
|
+
[activity, [ ctx, flow_options ], circuit_options]
|
56
56
|
end
|
57
57
|
|
58
58
|
# Overring default input and output data collectors to collect/capture
|
@@ -61,7 +61,7 @@ module Trailblazer::Developer
|
|
61
61
|
def trace_input_data_collector(wrap_config, (ctx, flow_options), circuit_options)
|
62
62
|
data = Trace.default_input_data_collector(wrap_config, [ctx, flow_options], circuit_options)
|
63
63
|
|
64
|
-
if Wtf.
|
64
|
+
if Wtf.capture_variables?(step_name: data[:task_name], **flow_options)
|
65
65
|
data[:focused_variables] = Trace::Focusable.capture_variables_from(ctx, **flow_options)
|
66
66
|
end
|
67
67
|
|
@@ -72,7 +72,7 @@ module Trailblazer::Developer
|
|
72
72
|
data = Trace.default_output_data_collector(wrap_config, [ctx, flow_options], circuit_options)
|
73
73
|
input = flow_options[:stack].top
|
74
74
|
|
75
|
-
if Wtf.
|
75
|
+
if Wtf.capture_variables?(step_name: input.data[:task_name], **flow_options)
|
76
76
|
data[:focused_variables] = Trace::Focusable.capture_variables_from(ctx, **flow_options)
|
77
77
|
end
|
78
78
|
|
@@ -80,10 +80,11 @@ module Trailblazer::Developer
|
|
80
80
|
end
|
81
81
|
|
82
82
|
# private
|
83
|
-
def
|
83
|
+
def capture_variables?(step_name:, focus_on:, **)
|
84
84
|
return true if focus_on[:steps].include?(step_name) # For given step
|
85
85
|
return true if focus_on[:steps].empty? && focus_on[:variables].any? # For selected vars but all steps
|
86
|
-
|
86
|
+
|
87
|
+
false
|
87
88
|
end
|
88
89
|
end
|
89
90
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -163,7 +163,7 @@ homepage: http://trailblazer.to
|
|
163
163
|
licenses:
|
164
164
|
- LGPL-3.0
|
165
165
|
metadata: {}
|
166
|
-
post_install_message:
|
166
|
+
post_install_message:
|
167
167
|
rdoc_options: []
|
168
168
|
require_paths:
|
169
169
|
- lib
|
@@ -178,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
182
|
-
signing_key:
|
181
|
+
rubygems_version: 3.1.2
|
182
|
+
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Developer tools for Trailblazer.
|
185
185
|
test_files: []
|