trailblazer-activity-dsl-linear 1.2.3 → 1.2.4

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: 9556b0bba65b7d0d785428b33548fc9585a2f9e101c032f47992a1570f2ae53d
4
- data.tar.gz: 0e9243345de16d945fbaf5b85bf74047d1f9f844ace7af62e63fa93393acc717
3
+ metadata.gz: 36059b6c848e46341ed7c120c6f3e96bdbea72ac6a5ca3d7c536fc17f64b194a
4
+ data.tar.gz: bd31c9110032fd621e1f79880c6f7694480a8689b7371a9aec84b2ae5041f035
5
5
  SHA512:
6
- metadata.gz: '081bacc336e3e98845d065cbd72d26e56ab4673e620ce5c4d0999ed8879b601fe5e83186e99367af781170b40b3687482d15b7911e7b5f2672db2e61de959112'
7
- data.tar.gz: 7e5f318e4ad5eaef5dc8831ee06737d4f508a934888c2d781325585d82408841f8ebdbbaefa7fa7bd91b98f3b65525a33dd8ff4996bd1371beec062f152fc309
6
+ metadata.gz: 29cbeca1196720b666f654436bbc58d330e3ad021f18fb247b1816d7a4ccb83d1378b3481ac425709a08807c0fb210f2a2d8a5c6971c75dda1fc7124e3d0b2bd
7
+ data.tar.gz: 22d73328ebbac971f41a2247d2f5821eddf622c413ede67354ec64f74543f3779f6fe8a6900c3386a2b75d7b5a9f4e144c2c81229df7ff131e2ac0a2bf869400
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.2.4
2
+
3
+ * Fix a bug where using `fail_fast: true` (same with `:pass_fast`) would result in a
4
+ compile time exception `No fail_fast output found`. See https://github.com/trailblazer/trailblazer/issues/256
5
+
1
6
  # 1.2.3
2
7
 
3
8
  * Add `FastTrack.left` alias.
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
 
6
6
  gem "minitest-line"
7
7
 
8
- gem "trailblazer-developer", path: "../trailblazer-developer"
8
+ # gem "trailblazer-developer", path: "../trailblazer-developer"
9
9
  # gem "trailblazer-developer", github: "trailblazer/trailblazer-developer"
10
10
  # gem "trailblazer-declarative", path: "../trailblazer-declarative"
11
11
  # gem "trailblazer-activity", path: "../trailblazer-activity"
@@ -3,7 +3,7 @@ module Trailblazer
3
3
  module Activity
4
4
  module DSL
5
5
  module Linear
6
- VERSION = "1.2.3"
6
+ VERSION = "1.2.4"
7
7
  end
8
8
  end
9
9
  end
@@ -112,10 +112,11 @@ module Trailblazer
112
112
  ctx = merge_connections_for!(ctx, :fast_track, :fail_fast, :fail_fast, **ctx)
113
113
  end
114
114
 
115
- def pass_fast_option(ctx, **)
115
+ def pass_fast_option(ctx, outputs:, **)
116
116
  ctx = merge_connections_for!(ctx, :pass_fast, :success, **ctx)
117
117
 
118
- ctx = merge_connections_for!(ctx, :pass_fast, :pass_fast, :pass_fast, **ctx)
118
+ ctx = merge_connections_for!(ctx, :pass_fast, :pass_fast, :pass_fast, **ctx) if outputs[:pass_fast]
119
+ ctx
119
120
  end
120
121
 
121
122
  def pass_fast_option_for_pass(ctx, **)
@@ -123,10 +124,12 @@ module Trailblazer
123
124
  ctx = merge_connections_for!(ctx, :pass_fast, :success, **ctx)
124
125
  end
125
126
 
126
- def fail_fast_option(ctx, **)
127
+ def fail_fast_option(ctx, outputs:, **)
127
128
  ctx = merge_connections_for!(ctx, :fail_fast, :failure, **ctx)
128
129
 
129
- ctx = merge_connections_for!(ctx, :fail_fast, :fail_fast, :fail_fast, **ctx)
130
+ # DISCUSS: instead of checking outputs here, we could introduce something like Output(non_strict: true)
131
+ ctx = merge_connections_for!(ctx, :fail_fast, :fail_fast, :fail_fast, **ctx) if outputs[:fail_fast]
132
+ ctx
130
133
  end
131
134
 
132
135
  def fail_fast_option_for_fail(ctx, **)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-activity-dsl-linear
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-15 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-activity