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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 405fb207fc4ced2cf14e18acdcc72846f0fa4ef85f010fc5d325e02c75941a06
4
- data.tar.gz: 9402b32c5be680f8e9cdbfe2e0f14dc87a5b0efe695e444ff34774ba664ee772
3
+ metadata.gz: 681f1eca62302de70e8e138f58ad0f2765bc08a5fbbb3d1eb17d10e88ac479e6
4
+ data.tar.gz: 96f1f8056ed5381c6b8f7c9264728121bb31e5928092889cf88d6ed2687ce154
5
5
  SHA512:
6
- metadata.gz: f8a6f2deff06770afecfe29a13e010992277ea349aaa6682e3c5c55f2411f825665aa25c9b5a80e39390ad98a195062d0960ff7c9dfc624698611fabbd59c6a5
7
- data.tar.gz: 17f12f3422e79e0808bacbd364fb74e0dcf1b9d894490a25e3887b7266e6085523df31a4b3b06e661e6e4e470dc32044dca0a140bfd982aa5e5f2ef4d20cc058
6
+ metadata.gz: 70239ee2b542f1565b1a11e583611499c541bec4be99a38646881bdf12b679180ecdd08f0f67fcfb944469ad7cf9d6b221c90e46e99b6b041ef3473f7089e8fa
7
+ data.tar.gz: 64fd52e4e29c849f807bd06b1e747198feb37c9ad9c51e699569fb1eb2c05aea735754fd299526d140c771463411bd3c7d698e6bbe8736e8c812a804b5121f98
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
+ before_install: gem install bundler
3
+ cache: bundler
2
4
  rvm:
5
+ - 2.7
3
6
  - 2.6
4
7
  - 2.5
5
8
  - 2.4
6
-
7
- cache: bundler
data/CHANGES.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.0.20
2
+ * Ruby 2.7 support
3
+
1
4
  # 0.0.17
2
5
 
3
6
  * Add `Arrow.target_lane` field in the `Generate` component.
data/Gemfile CHANGED
@@ -8,6 +8,5 @@ gemspec
8
8
  # gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
9
9
  # gem "trailblazer-activity-dsl-linear", github: "trailblazer/trailblazer-activity-dsl-linear"
10
10
 
11
- gem "representable"
12
11
  gem "faraday"
13
12
  gem "multi_json"
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Trailblazer GmbH
1
+ Copyright (c) 2018-2020 Trailblazer GmbH
2
2
 
3
3
  Trailblazer is an Open Source project licensed under the terms of
4
4
  the LGPLv3 license. Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
@@ -6,3 +6,6 @@ gemspec
6
6
  gem "trailblazer-activity", path: "../trailblazer-activity"
7
7
  gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
8
8
  gem "representable"
9
+ gem 'pry-byebug'
10
+ gem "faraday"
11
+ gem "multi_json"
@@ -28,7 +28,7 @@ module Trailblazer
28
28
 
29
29
  content = content.join("\n")
30
30
 
31
- return "\n#{content}".gsub(/0x\w+/, "0x")#.gsub(/0.\d+/, "0.")
31
+ "\n#{content}".gsub(/0x\w+/, "0x")
32
32
  end
33
33
 
34
34
  # If Ruby had pattern matching, this function wasn't necessary.
@@ -14,7 +14,8 @@ module Trailblazer::Developer
14
14
  end
15
15
 
16
16
  def tree(stack, level, tree:, renderer:, **options)
17
- tree_for(stack, level, **options.merge(tree: tree))
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
- tree_for(nested, level + 1, **options.merge(tree: tree))
34
+ opts = options.merge(tree: tree)
35
+ tree_for(nested, level + 1, **opts)
34
36
  end
35
37
 
36
38
  tree
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Developer
4
- VERSION = "0.0.17"
4
+ VERSION = "0.0.20"
5
5
  end
6
6
  end
7
7
  end
@@ -52,7 +52,7 @@ module Trailblazer::Developer
52
52
  variables: Array( flow_options.dig(:focus_on, :variables) ),
53
53
  }
54
54
 
55
- return activity, [ ctx, flow_options ], circuit_options
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.caputure_variables?(step_name: data[:task_name], **flow_options)
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.caputure_variables?(step_name: input.data[:task_name], **flow_options)
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 caputure_variables?(step_name:, focus_on:, **)
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
- return false
86
+
87
+ false
87
88
  end
88
89
  end
89
90
  end
@@ -36,6 +36,9 @@ module Trailblazer::Developer
36
36
  end
37
37
 
38
38
  def fmt(line, style)
39
+ if line.is_a? Method
40
+ line = "#<Method: #<Class:>.#{line.name}>"
41
+ end
39
42
  return line unless style
40
43
  String.send(style, line)
41
44
  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.17
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-12 00:00:00.000000000 Z
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.0.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: []