From d7d78a73c3cf7054afedaf89bf0cdf1eb5681450 Mon Sep 17 00:00:00 2001 From: Felix Flores Date: Wed, 18 Apr 2018 14:34:58 -0400 Subject: [PATCH 1/2] Use try in strategy --- lib/railway_operation/strategy.rb | 4 ++-- railway_operation-0.1.0.gem | Bin 17408 -> 0 bytes 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 railway_operation-0.1.0.gem diff --git a/lib/railway_operation/strategy.rb b/lib/railway_operation/strategy.rb index 3d61e21..19ad0c4 100644 --- a/lib/railway_operation/strategy.rb +++ b/lib/railway_operation/strategy.rb @@ -37,14 +37,14 @@ def self.norm_exceptional(norm: {}, exceptional: {}) track_switch = norm.detect do |_, predicate| predicate.call(new_info.execution) - end.first + end&.first stepper.switch_to(track_switch) if track_switch stepper.continue rescue StandardError => e track_switch = exceptional.detect do |_, predicate| predicate.call(e) - end.first + end&.first stepper.raise_error(e, new_info || info) unless track_switch stepper.switch_to(track_switch).continue diff --git a/railway_operation-0.1.0.gem b/railway_operation-0.1.0.gem deleted file mode 100644 index 9b85989878639a95a2f77ea6cc1d65fe61e1f113..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17408 zcmeIZb!;!cw;dX0<`Yg%n3ODRE zwq$ucp1ox+Yu3n~y=+Zg3{4DO4C%~0f&R0M;U8mRVFCKL`XBp`H6uF{3lJkS6B{cV zI~x-lBM<{4GYcC75Fx{V)`0%|xPP2o44wWNlADF8sm*`i@gJ`LpZfpX-2Q!X|H1wL zt4)GPD4=@pRV@(EYYj#FO*SOo)!My>1@duMRJdS&3_KKbiaIudjF)_2B84T*1EGkm zc&X~t?-x8u&Y0Ax`;K-^;7JIP9KMH`+?ZU663YqSzM3oYk}vq6SwD#E(_31o_P78q z%Z;LAY^M;N3i>YkC~({>cK?{0cThZUTzt}~?SPVXnoKe^$6kiAa(=7CyBT%}-JGH; z+$5a_XHz7dy2bBTIbshvsdY6JX9#HtusnK^LDE0(m#0MsIY_gmjhN?8B-z~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DP}x`~s)9+uEMRUU+FD z>Vc5RAcp%*a}ry)G-{c9rAT59h9_mCq(pC#0ZppsFYDML+|w*f3nvR3FF!L7^~C%e z80#Eq8g#0B{q+d$kPj5omAyuISEi?~!23MMwXh2kix1k|MK@B@97tcJ z`3o&tCM0I=0J>VMy9|Jk<^XCvZPfx&5C zoKwO!(dAYiNUBm?&Ak#He$u)BtW}}sx03sO8tL;x@Q+9b000G==sjHndiy_9?EK&L zGPW=^ws!tw>rCfiXlwJIqXPRkY3%<(|I5I__#gFOENo27|I&Z`-(Bhdd9;7mf0@Q| zE13wwfqioh>li>uR@39}d}Ik+q^xL#Vnr@K_L*!e6;=F`PPDZH=-R)$_64lY^1M%_ z_U6{QWjMHUSu+P>)}RH_UDnH#^4WMoogMh5nfrb@fM{d>U49uOw!x4V)PN6HMrmXe zJ?>PE`?-v+S+r7WL3HAD#JeuR&-Oo#>dEwW{pCU2tlVc(a$ZI-8qYkqz+C@}8?#N% zJS6>ynj@)5EF+G}b$q$0CYhTw;=Oeihz$6`%v{uNnzSRtIvM@uQd=LCDr({>VfOy4 zzq^(6Dwqm$3Cn2=F5bxoFEekvnI%Tx+JFe1A4%|=)-Qyc0cp0w2l(Q~)4Bloe~!?< S?*0pbe Date: Wed, 18 Apr 2018 14:39:50 -0400 Subject: [PATCH 2/2] wip --- lib/railway_operation/strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/railway_operation/strategy.rb b/lib/railway_operation/strategy.rb index 19ad0c4..801f7a1 100644 --- a/lib/railway_operation/strategy.rb +++ b/lib/railway_operation/strategy.rb @@ -31,7 +31,7 @@ def self.standard end def self.norm_exceptional(norm: {}, exceptional: {}) - lambda do |stepper, _, &step| + lambda do |stepper, info, &step| begin _, new_info = step.call