workflow_kit 0.0.4.alpha → 0.0.6.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +3 -3
- data/app/controllers/workflow_kit/workflows_controller.rb +4 -7
- data/lib/workflow_kit/version.rb +1 -1
- data/test_app/Gemfile +1 -1
- data/test_app/Gemfile.lock +39 -38
- metadata +19 -44
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 04d4381f609c8a53e1a6a88a17524f093ebbfa7a
|
4
|
+
data.tar.gz: 4a1788faf9213a81ef0f5215c381a5e199746915
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a3427d8f4a6b3685e6c1d021610e9890f3177eac18df9d73826a066f43503b9efb66ac94c806e4d4554420cdae3411f775d67e36507da40719ac934c4575388
|
7
|
+
data.tar.gz: 858c75b847787068e4ef2635807de81ebfb4b21b7f3ffa32c24e58f3c57726eaa41388a7ce5d678f7d1c9b842609511e1fa9dd09ae91418ac2217d9b67b437be
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
workflow_kit (0.0.
|
4
|
+
workflow_kit (0.0.6.alpha)
|
5
5
|
rails (~> 3.2.6)
|
6
6
|
|
7
7
|
GEM
|
@@ -128,10 +128,10 @@ GEM
|
|
128
128
|
sqlite3 (1.3.6)
|
129
129
|
thor (0.14.6)
|
130
130
|
tilt (1.3.3)
|
131
|
-
treetop (1.4.
|
131
|
+
treetop (1.4.15)
|
132
132
|
polyglot
|
133
133
|
polyglot (>= 0.3.1)
|
134
|
-
tzinfo (0.3.
|
134
|
+
tzinfo (0.3.37)
|
135
135
|
xpath (0.1.4)
|
136
136
|
nokogiri (~> 1.3)
|
137
137
|
|
@@ -2,6 +2,10 @@ require_dependency "workflow_kit/application_controller"
|
|
2
2
|
|
3
3
|
module WorkflowKit
|
4
4
|
class WorkflowsController < ApplicationController
|
5
|
+
|
6
|
+
load_and_authorize_resource if respond_to? :load_and_authorize_resource
|
7
|
+
|
8
|
+
|
5
9
|
# GET /workflows
|
6
10
|
# GET /workflows.json
|
7
11
|
def index
|
@@ -16,8 +20,6 @@ module WorkflowKit
|
|
16
20
|
# GET /workflows/1
|
17
21
|
# GET /workflows/1.json
|
18
22
|
def show
|
19
|
-
@workflow = Workflow.find(params[:id])
|
20
|
-
|
21
23
|
respond_to do |format|
|
22
24
|
format.html # show.html.erb
|
23
25
|
format.json { render json: @workflow }
|
@@ -37,7 +39,6 @@ module WorkflowKit
|
|
37
39
|
|
38
40
|
# GET /workflows/1/edit
|
39
41
|
def edit
|
40
|
-
@workflow = Workflow.find(params[:id])
|
41
42
|
end
|
42
43
|
|
43
44
|
# POST /workflows
|
@@ -59,8 +60,6 @@ module WorkflowKit
|
|
59
60
|
# PUT /workflows/1
|
60
61
|
# PUT /workflows/1.json
|
61
62
|
def update
|
62
|
-
@workflow = Workflow.find(params[:id])
|
63
|
-
|
64
63
|
respond_to do |format|
|
65
64
|
if @workflow.update_attributes(params[:workflow])
|
66
65
|
format.html { redirect_to @workflow, notice: 'Workflow was successfully updated.' }
|
@@ -75,7 +74,6 @@ module WorkflowKit
|
|
75
74
|
# DELETE /workflows/1
|
76
75
|
# DELETE /workflows/1.json
|
77
76
|
def destroy
|
78
|
-
@workflow = Workflow.find(params[:id])
|
79
77
|
@workflow.destroy
|
80
78
|
|
81
79
|
respond_to do |format|
|
@@ -86,7 +84,6 @@ module WorkflowKit
|
|
86
84
|
|
87
85
|
# PUT /workflows/1/execute
|
88
86
|
def execute
|
89
|
-
@workflow = Workflow.find( params[ :id ] )
|
90
87
|
@workflow.execute( params )
|
91
88
|
|
92
89
|
flash[ :notice ] = I18n.t( :executed_workflow, @workflow.name )
|
data/lib/workflow_kit/version.rb
CHANGED
data/test_app/Gemfile
CHANGED
data/test_app/Gemfile.lock
CHANGED
@@ -8,35 +8,35 @@ GIT
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (3.2.
|
12
|
-
actionpack (= 3.2.
|
11
|
+
actionmailer (3.2.11)
|
12
|
+
actionpack (= 3.2.11)
|
13
13
|
mail (~> 2.4.4)
|
14
|
-
actionpack (3.2.
|
15
|
-
activemodel (= 3.2.
|
16
|
-
activesupport (= 3.2.
|
14
|
+
actionpack (3.2.11)
|
15
|
+
activemodel (= 3.2.11)
|
16
|
+
activesupport (= 3.2.11)
|
17
17
|
builder (~> 3.0.0)
|
18
18
|
erubis (~> 2.7.0)
|
19
|
-
journey (~> 1.0.
|
19
|
+
journey (~> 1.0.4)
|
20
20
|
rack (~> 1.4.0)
|
21
21
|
rack-cache (~> 1.2)
|
22
22
|
rack-test (~> 0.6.1)
|
23
|
-
sprockets (~> 2.1
|
24
|
-
activemodel (3.2.
|
25
|
-
activesupport (= 3.2.
|
23
|
+
sprockets (~> 2.2.1)
|
24
|
+
activemodel (3.2.11)
|
25
|
+
activesupport (= 3.2.11)
|
26
26
|
builder (~> 3.0.0)
|
27
|
-
activerecord (3.2.
|
28
|
-
activemodel (= 3.2.
|
29
|
-
activesupport (= 3.2.
|
27
|
+
activerecord (3.2.11)
|
28
|
+
activemodel (= 3.2.11)
|
29
|
+
activesupport (= 3.2.11)
|
30
30
|
arel (~> 3.0.2)
|
31
31
|
tzinfo (~> 0.3.29)
|
32
|
-
activeresource (3.2.
|
33
|
-
activemodel (= 3.2.
|
34
|
-
activesupport (= 3.2.
|
35
|
-
activesupport (3.2.
|
32
|
+
activeresource (3.2.11)
|
33
|
+
activemodel (= 3.2.11)
|
34
|
+
activesupport (= 3.2.11)
|
35
|
+
activesupport (3.2.11)
|
36
36
|
i18n (~> 0.6)
|
37
37
|
multi_json (~> 1.0)
|
38
38
|
arel (3.0.2)
|
39
|
-
builder (3.0.
|
39
|
+
builder (3.0.4)
|
40
40
|
coffee-rails (3.2.2)
|
41
41
|
coffee-script (>= 2.2.0)
|
42
42
|
railties (~> 3.2.0)
|
@@ -48,45 +48,45 @@ GEM
|
|
48
48
|
execjs (1.4.0)
|
49
49
|
multi_json (~> 1.0)
|
50
50
|
hike (1.2.1)
|
51
|
-
i18n (0.6.
|
51
|
+
i18n (0.6.1)
|
52
52
|
journey (1.0.4)
|
53
53
|
jquery-rails (2.0.2)
|
54
54
|
railties (>= 3.2.0, < 5.0)
|
55
55
|
thor (~> 0.14)
|
56
|
-
json (1.7.
|
56
|
+
json (1.7.6)
|
57
57
|
libv8 (3.3.10.4)
|
58
58
|
mail (2.4.4)
|
59
59
|
i18n (>= 0.4.0)
|
60
60
|
mime-types (~> 1.16)
|
61
61
|
treetop (~> 1.4.8)
|
62
62
|
mime-types (1.19)
|
63
|
-
multi_json (1.
|
63
|
+
multi_json (1.5.0)
|
64
64
|
nifty-generators (0.4.6)
|
65
65
|
pg (0.14.0)
|
66
66
|
polyglot (0.3.3)
|
67
|
-
rack (1.4.
|
67
|
+
rack (1.4.3)
|
68
68
|
rack-cache (1.2)
|
69
69
|
rack (>= 0.4)
|
70
70
|
rack-ssl (1.3.2)
|
71
71
|
rack
|
72
|
-
rack-test (0.6.
|
72
|
+
rack-test (0.6.2)
|
73
73
|
rack (>= 1.0)
|
74
|
-
rails (3.2.
|
75
|
-
actionmailer (= 3.2.
|
76
|
-
actionpack (= 3.2.
|
77
|
-
activerecord (= 3.2.
|
78
|
-
activeresource (= 3.2.
|
79
|
-
activesupport (= 3.2.
|
74
|
+
rails (3.2.11)
|
75
|
+
actionmailer (= 3.2.11)
|
76
|
+
actionpack (= 3.2.11)
|
77
|
+
activerecord (= 3.2.11)
|
78
|
+
activeresource (= 3.2.11)
|
79
|
+
activesupport (= 3.2.11)
|
80
80
|
bundler (~> 1.0)
|
81
|
-
railties (= 3.2.
|
82
|
-
railties (3.2.
|
83
|
-
actionpack (= 3.2.
|
84
|
-
activesupport (= 3.2.
|
81
|
+
railties (= 3.2.11)
|
82
|
+
railties (3.2.11)
|
83
|
+
actionpack (= 3.2.11)
|
84
|
+
activesupport (= 3.2.11)
|
85
85
|
rack-ssl (~> 1.3.2)
|
86
86
|
rake (>= 0.8.7)
|
87
87
|
rdoc (~> 3.4)
|
88
88
|
thor (>= 0.14.6, < 2.0)
|
89
|
-
rake (0.
|
89
|
+
rake (10.0.3)
|
90
90
|
rdoc (3.12)
|
91
91
|
json (~> 1.4)
|
92
92
|
sass (3.1.20)
|
@@ -94,19 +94,20 @@ GEM
|
|
94
94
|
railties (~> 3.2.0)
|
95
95
|
sass (>= 3.1.10)
|
96
96
|
tilt (~> 1.3)
|
97
|
-
sprockets (2.
|
97
|
+
sprockets (2.2.2)
|
98
98
|
hike (~> 1.2)
|
99
|
+
multi_json (~> 1.0)
|
99
100
|
rack (~> 1.0)
|
100
101
|
tilt (~> 1.1, != 1.3.0)
|
101
102
|
sqlite3 (1.3.6)
|
102
103
|
therubyracer (0.10.1)
|
103
104
|
libv8 (~> 3.3.10)
|
104
|
-
thor (0.
|
105
|
+
thor (0.16.0)
|
105
106
|
tilt (1.3.3)
|
106
|
-
treetop (1.4.
|
107
|
+
treetop (1.4.12)
|
107
108
|
polyglot
|
108
109
|
polyglot (>= 0.3.1)
|
109
|
-
tzinfo (0.3.
|
110
|
+
tzinfo (0.3.35)
|
110
111
|
uglifier (1.2.6)
|
111
112
|
execjs (>= 0.3.0)
|
112
113
|
multi_json (~> 1.3)
|
@@ -119,7 +120,7 @@ DEPENDENCIES
|
|
119
120
|
jquery-rails
|
120
121
|
nifty-generators
|
121
122
|
pg
|
122
|
-
rails (= 3.2.
|
123
|
+
rails (= 3.2.11)
|
123
124
|
sass-rails (~> 3.2.3)
|
124
125
|
sqlite3
|
125
126
|
therubyracer
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.6.alpha
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sebastian Fiedlschuster
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,71 +27,62 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sqlite3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: bundler
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rspec-rails
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 2.8.0
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: 2.8.0
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: guard
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - '='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - '='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,39 +97,34 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: nokogiri
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - '>='
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 1.5.0
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - '>='
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: 1.5.0
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: capybara
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- -
|
115
|
+
- - '>='
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: '0'
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- -
|
122
|
+
- - '>='
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: '0'
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: rspec-rails
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - '='
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,7 +132,6 @@ dependencies:
|
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - '='
|
156
137
|
- !ruby/object:Gem::Version
|
@@ -158,7 +139,6 @@ dependencies:
|
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: guard-rspec
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
143
|
- - '='
|
164
144
|
- !ruby/object:Gem::Version
|
@@ -166,7 +146,6 @@ dependencies:
|
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
150
|
- - '='
|
172
151
|
- !ruby/object:Gem::Version
|
@@ -294,30 +273,26 @@ files:
|
|
294
273
|
- workflow_kit.gemspec
|
295
274
|
homepage: http://github.com/fiedl/workflow_kit
|
296
275
|
licenses: []
|
276
|
+
metadata: {}
|
297
277
|
post_install_message:
|
298
278
|
rdoc_options: []
|
299
279
|
require_paths:
|
300
280
|
- lib
|
301
281
|
required_ruby_version: !ruby/object:Gem::Requirement
|
302
|
-
none: false
|
303
282
|
requirements:
|
304
|
-
- -
|
283
|
+
- - '>='
|
305
284
|
- !ruby/object:Gem::Version
|
306
285
|
version: '0'
|
307
|
-
segments:
|
308
|
-
- 0
|
309
|
-
hash: -718084785
|
310
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
|
-
none: false
|
312
287
|
requirements:
|
313
|
-
- -
|
288
|
+
- - '>'
|
314
289
|
- !ruby/object:Gem::Version
|
315
290
|
version: 1.3.1
|
316
291
|
requirements: []
|
317
292
|
rubyforge_project:
|
318
|
-
rubygems_version:
|
293
|
+
rubygems_version: 2.0.3
|
319
294
|
signing_key:
|
320
|
-
specification_version:
|
295
|
+
specification_version: 4
|
321
296
|
summary: This gem provides a workflow construction kit for rails apps. Users can arrange
|
322
297
|
workflow bricks in a sequence for each workflow and add parameters. When a workflow
|
323
298
|
is executed, each workflow brick executes a callback method written in ruby and
|