validating-workflow 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/workflow.rb +2 -1
- metadata +15 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 01c79cb96bb6f3ae9887854cf9f4e8be7a5cf834
|
4
|
+
data.tar.gz: 5012d899c8754622b4d009b0fd9aa179fa5c5a2a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bc7c0ca5b4b9aee56f8ea791c4b89443fedf9d17f746c42c8a6308a52e50bbbc162f3e2c1bcacfd8923d121c823a15cd3c94c8a050265b692029dfa2976dfd84
|
7
|
+
data.tar.gz: ab4a4a86a5d65a0f359470f89d0a659173348e7594b990a556f338b0ceba72a8c7e1f50736b3bc367b2ec24a6b4e1204a561dff78e1d6b48e19e36d45f4743f3
|
data/lib/workflow.rb
CHANGED
@@ -211,6 +211,7 @@ module Workflow
|
|
211
211
|
return_value = false
|
212
212
|
else
|
213
213
|
if event.perform_validation? and not valid?
|
214
|
+
halt :validation_failed
|
214
215
|
run_on_failed_transition(*args)
|
215
216
|
@halted = true # make sure this one is not reset in the on_failed_transition callback
|
216
217
|
return_value = false
|
@@ -295,7 +296,7 @@ module Workflow
|
|
295
296
|
if spec.on_failed_transition_proc
|
296
297
|
return_value = instance_exec(self.wf_prior_state.name, self.wf_target_state.name, self.wf_event_name, *args, &spec.on_failed_transition_proc)
|
297
298
|
else
|
298
|
-
return_value =
|
299
|
+
return_value = nil
|
299
300
|
end
|
300
301
|
clear_transition_flags
|
301
302
|
return return_value
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validating-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Vladimir Dobriakov
|
@@ -12,13 +11,16 @@ bindir: bin
|
|
12
11
|
cert_chain: []
|
13
12
|
date: 2014-02-27 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
|
-
description:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
description: |
|
15
|
+
Validating-Workflow is a finite-state-machine-inspired API for modeling and interacting
|
16
|
+
with what we tend to refer to as 'workflow'.
|
17
|
+
|
18
|
+
* nice DSL to describe your states, events and transitions
|
19
|
+
* robust integration with ActiveRecord and non relational data stores
|
20
|
+
* various hooks for single transitions, entering state etc.
|
21
|
+
* convenient access to the workflow specification: list states, possible events
|
22
|
+
for particular state
|
23
|
+
* state and transition dependent validations for ActiveModel
|
22
24
|
email: vladimir@geekq.net, wvk@consolving.de
|
23
25
|
executables: []
|
24
26
|
extensions: []
|
@@ -41,26 +43,25 @@ files:
|
|
41
43
|
- lib/workflow/state_dependent_validations.rb
|
42
44
|
homepage: http://www.geekq.net/workflow/
|
43
45
|
licenses: []
|
46
|
+
metadata: {}
|
44
47
|
post_install_message:
|
45
48
|
rdoc_options:
|
46
49
|
- --charset=UTF-8
|
47
50
|
require_paths:
|
48
51
|
- lib
|
49
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
53
|
requirements:
|
52
|
-
- -
|
54
|
+
- - '>='
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
version: '0'
|
55
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
58
|
requirements:
|
58
|
-
- -
|
59
|
+
- - '>='
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
62
|
requirements: []
|
62
63
|
rubyforge_project:
|
63
|
-
rubygems_version:
|
64
|
+
rubygems_version: 2.0.2
|
64
65
|
signing_key:
|
65
66
|
specification_version: 3
|
66
67
|
summary: A replacement for acts_as_state_machine, an enhancement of workflow.
|