trailblazer-developer 0.0.20 → 0.0.21

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: 681f1eca62302de70e8e138f58ad0f2765bc08a5fbbb3d1eb17d10e88ac479e6
4
- data.tar.gz: 96f1f8056ed5381c6b8f7c9264728121bb31e5928092889cf88d6ed2687ce154
3
+ metadata.gz: f473ed5e4a7acf0ed54a78e9ebee0f43921b1fbdeb71af7901b6f3db0dd797e1
4
+ data.tar.gz: 9a305618d631ace6ffbc3cc5cc1512a80a7339b19f47eb609a5408e81e97ed59
5
5
  SHA512:
6
- metadata.gz: 70239ee2b542f1565b1a11e583611499c541bec4be99a38646881bdf12b679180ecdd08f0f67fcfb944469ad7cf9d6b221c90e46e99b6b041ef3473f7089e8fa
7
- data.tar.gz: 64fd52e4e29c849f807bd06b1e747198feb37c9ad9c51e699569fb1eb2c05aea735754fd299526d140c771463411bd3c7d698e6bbe8736e8c812a804b5121f98
6
+ metadata.gz: 475297ef62977030fa0f392a448868f9fe6dd8c3cf253b202b36610c3a87c946c4ec0a04214e2133ff1410cb2dbe0575e1acd9402c3382726aca2f9c08d38336
7
+ data.tar.gz: e7d0ebd5d2f82050d6d0fa7c12347f747cc4d9107ca6ac714f1a42f900f2f85f2bbe05e647b9175b2cc269c4fd2abda576c3e5781494cf8e3cfbc291231b42cf
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  before_install: gem install bundler
3
3
  cache: bundler
4
4
  rvm:
5
+ - 3.0
5
6
  - 2.7
6
7
  - 2.6
7
8
  - 2.5
data/CHANGES.md CHANGED
@@ -1,4 +1,9 @@
1
+ # 0.0.21
2
+
3
+ * Ruby 3.0 support. :sunset:
4
+
1
5
  # 0.0.20
6
+
2
7
  * Ruby 2.7 support
3
8
 
4
9
  # 0.0.17
data/Gemfile CHANGED
@@ -4,9 +4,9 @@ source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  # gem "trailblazer-activity", ">= 0.7.1"
7
- # gem "trailblazer-activity", path: "../trailblazer-activity"
8
- # gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
9
- # gem "trailblazer-activity-dsl-linear", github: "trailblazer/trailblazer-activity-dsl-linear"
7
+ gem "trailblazer-activity", path: "../trailblazer-activity"
8
+ gem "trailblazer-context", path: "../trailblazer-context"
9
+ gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
10
10
 
11
11
  gem "faraday"
12
12
  gem "multi_json"
@@ -32,7 +32,7 @@ module Trailblazer
32
32
  end
33
33
 
34
34
  def call(hash)
35
- _, (ctx, _) = Activity::TaskWrap.invoke(Pipeline, hash: hash)
35
+ _, (ctx, _) = Activity::TaskWrap.invoke(Pipeline, [{hash: hash}, {}])
36
36
  ctx[:intermediate]
37
37
  end
38
38
 
@@ -2,8 +2,8 @@ module Trailblazer
2
2
  module Developer
3
3
  module_function
4
4
 
5
- def render(activity)
6
- Render::Circuit.(activity)
5
+ def render(activity, **options)
6
+ Render::Circuit.(activity, **options)
7
7
  end
8
8
 
9
9
  module Render
@@ -28,7 +28,7 @@ module Trailblazer::Developer
28
28
  stack.each do |lvl| # always a Stack::Task[input, ..., output]
29
29
  input, output, nested = Trace::Level.input_output_nested_for_level(lvl)
30
30
 
31
- tree.push(*TreeNodes.for(level, options.merge(input: input, output: output)))
31
+ tree.push(*TreeNodes.for(level, **options.merge(input: input, output: output)))
32
32
 
33
33
  if nested.any? # nesting
34
34
  opts = options.merge(tree: tree)
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Developer
4
- VERSION = "0.0.20"
4
+ VERSION = "0.0.21"
5
5
  end
6
6
  end
7
7
  end
@@ -1,8 +1,8 @@
1
1
  module Trailblazer::Developer
2
2
  module_function
3
3
 
4
- def wtf(activity, *args)
5
- Wtf.invoke(activity, *args)
4
+ def wtf(activity, *args, **circuit_options)
5
+ Wtf.invoke(activity, *args, **circuit_options)
6
6
  end
7
7
 
8
8
  class << self
@@ -16,11 +16,11 @@ module Trailblazer::Developer
16
16
  # This allows to display the trace even when an exception happened
17
17
  def invoke(activity, (ctx, flow_options), **circuit_options)
18
18
  activity, (ctx, flow_options), circuit_options = Wtf.arguments_for_trace(
19
- activity, [ctx, flow_options], circuit_options
19
+ activity, [ctx, flow_options], **circuit_options
20
20
  )
21
21
 
22
22
  _returned_stack, signal, (ctx, flow_options) = Trace.invoke(
23
- activity, [ctx, flow_options], circuit_options
23
+ activity, [ctx, flow_options], **circuit_options
24
24
  )
25
25
 
26
26
  return signal, [ctx, flow_options], circuit_options
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.20
4
+ version: 0.0.21
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-17 00:00:00.000000000 Z
11
+ date: 2021-02-26 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.1.2
182
- signing_key:
181
+ rubygems_version: 3.2.3
182
+ signing_key:
183
183
  specification_version: 4
184
184
  summary: Developer tools for Trailblazer.
185
185
  test_files: []