w_flow 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/w_flow/flow.rb +1 -1
- data/lib/w_flow/process.rb +1 -1
- data/lib/w_flow/process_worker.rb +1 -1
- data/lib/w_flow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 235135c7812d63f436af147b79f205431907df25
|
4
|
+
data.tar.gz: a59d5c4633721eb41f8d15d20aaf23126d55db51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75bee8e85673094a030890ae0cbdfc1fc84e27877a272f85425ecd7941583fbc8397b25570fdc9141deb50ce2f476226d4370d652619db8ae9215bff65af44b
|
7
|
+
data.tar.gz: d24a7550b75e50a392154a214b8a687bd29f6b2cf11b0b753fca8af960b49fa50840278b50771891a2d2e5ab7d70bada82f72c2405213401cf94b195ee7abd1e
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ report = SendWelcomeEmail.run(user_id: 10)
|
|
89
89
|
Processes passed to execute will be called before the perform method. You can
|
90
90
|
have as any execute as you want and as many Processes (and method nomes and Procs) in a execute.
|
91
91
|
This means that when you run SendWelcomeEmail process, it will first execute FindUser which will
|
92
|
-
set the user under flow.data, and
|
92
|
+
set the user under flow.data, and then you can use that user to get the email address
|
93
93
|
for where to send the email.
|
94
94
|
|
95
95
|
So far so good, but lets go back to FindUser. Looking at it, we are currently not accounting for
|
@@ -168,7 +168,7 @@ going on? First we try to find the user, which will raise a flow failure if no u
|
|
168
168
|
is found. In this case we want to inform the admin that something went wrong, so instead of allowing
|
169
169
|
the flow to be interrupted right away, we return false in the failure handler to cancel failure.
|
170
170
|
After that, the second execute chain will be executed, because @no_user_found is set to true. This
|
171
|
-
execution chain will invoke the method compose_email, SendMessageToAdmin, and
|
171
|
+
execution chain will invoke the method compose_email, SendMessageToAdmin, and
|
172
172
|
call proc that reraises failure.
|
173
173
|
|
174
174
|
This is some of the features of WFlow, please check [wiki](https://github.com/junhanamaki/w_flow/wiki) for more details.
|
data/lib/w_flow/flow.rb
CHANGED
data/lib/w_flow/process.rb
CHANGED
data/lib/w_flow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: w_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- junhanamaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|