trailblazer-activity 0.11.2 → 0.11.3

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: c1af98988b1c0739296afe5fdcc67174fda97f1bcccfcc3e75adb8a06e3043e3
4
- data.tar.gz: 9f35640842440b53054d77e8f479010c715218db81f3be35d821bb0567442b95
3
+ metadata.gz: 380d2d51d03b55dbd76b0501b67d9f16d782d1c68a62a6fe8b87ef0074480206
4
+ data.tar.gz: 5b5b4ebea2d846793d8ad925ac18a3c6b458857c7189894c7cd61924030b5632
5
5
  SHA512:
6
- metadata.gz: b186be55e37823824fb426d108aa5a4b8df2f2972b7a43e46e021bf33330ec75c89f07b5a6d5d6f3377a57b5d93c59f8cf6f966caf257ca2b1c81d7dfba095c1
7
- data.tar.gz: 24b6b30334a3f610b95ebe781d9b1993db45e529bc5040174f16728ef05c35df135236296cc2daf67090fdee8dcaa84356341a3c86b4cdc14478e38bc22ae2cb
6
+ metadata.gz: 2e4e0b531018c3eae43d943b21a583807a494ea00e93e26f6fb3bdb13da04cdc6b7bc7b431a0bf0508b02c1571ab4e249864d77832d32405c46ee3704092770a
7
+ data.tar.gz: 34b9a5957cc8e59ac3862c2bdf4e4cd5b4028101f2205bcb0566a598a6539396fdd33f1c25ed161f2bc03d1da1cbb6bfd9f01e78a3d1bd3eb5573a7efb93c2f3
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.11.3
2
+
3
+ * Allow `Testing.def_task` & `Testing.def_tasks` to return custom signals
4
+
1
5
  # 0.11.2
2
6
 
3
7
  * Updrading `trailblazer-context` version :drum:
@@ -27,7 +27,9 @@ module Trailblazer
27
27
  Module.new do
28
28
  define_singleton_method(name) do | (ctx, flow_options), ** |
29
29
  ctx[:seq] << name
30
- return Activity::Right, [ctx, flow_options]
30
+ signal = ctx.key?(name) ? ctx[name] : Activity::Right
31
+
32
+ return signal, [ctx, flow_options]
31
33
  end
32
34
  end.method(name)
33
35
  end
@@ -38,9 +40,9 @@ module Trailblazer
38
40
  names.each do |name|
39
41
  define_method(name) do | (ctx, flow_options), ** |
40
42
  ctx[:seq] << name
41
- result = ctx.key?(name) ? ctx[name] : true
43
+ signal = ctx.key?(name) ? ctx[name] : Activity::Right
42
44
 
43
- return (result ? Activity::Right : Activity::Left), [ctx, flow_options]
45
+ return signal, [ctx, flow_options]
44
46
  end
45
47
  end
46
48
  end
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Activity
4
- VERSION = '0.11.2'.freeze
4
+ VERSION = '0.11.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-20 00:00:00.000000000 Z
11
+ date: 2020-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-context