workflow_kit 0.0.3.alpha → 0.0.4.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/Rakefile +1 -1
- data/app/controllers/workflow_kit/workflows_controller.rb +1 -1
- data/app/models/workflow_kit/parameter.rb +1 -1
- data/app/views/workflow_kit/workflows/show.html.erb +29 -23
- data/lib/workflow_kit/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/test_app/.gitignore +15 -0
- data/test_app/Gemfile +43 -0
- data/test_app/Gemfile.lock +127 -0
- data/{test/dummy → test_app}/README.rdoc +0 -0
- data/{test/dummy → test_app}/Rakefile +1 -1
- data/test_app/app/assets/images/rails.png +0 -0
- data/test_app/app/assets/images/screenshot.png +0 -0
- data/{test/dummy → test_app}/app/assets/javascripts/application.js +0 -0
- data/{test/dummy → test_app}/app/assets/stylesheets/application.css +0 -0
- data/{test/dummy → test_app}/app/assets/stylesheets/demo_app.css.sass +9 -1
- data/{test/dummy → test_app}/app/assets/stylesheets/nifty.css +0 -0
- data/{test/dummy → test_app}/app/controllers/application_controller.rb +0 -0
- data/{test/dummy → test_app}/app/helpers/application_helper.rb +0 -0
- data/{test/dummy → test_app}/app/helpers/error_messages_helper.rb +0 -0
- data/{test/dummy → test_app}/app/helpers/layout_helper.rb +0 -0
- data/{test/dummy → test_app}/app/mailers/.gitkeep +0 -0
- data/{test/dummy → test_app}/app/models/.gitkeep +0 -0
- data/{test/dummy → test_app}/app/models/message.rb +0 -0
- data/{test/dummy → test_app}/app/models/workflow_kit/brick_a.rb +0 -0
- data/{test/dummy → test_app}/app/models/workflow_kit/brick_b.rb +0 -0
- data/{test/dummy → test_app}/app/models/workflow_kit/brick_c.rb +0 -0
- data/{test/dummy → test_app}/app/models/workflow_kit/test_brick.rb +0 -0
- data/{test/dummy → test_app}/app/views/layouts/application.html.erb +0 -0
- data/{test/dummy → test_app}/app/views/workflow_kit/workflows/index.html.erb +5 -2
- data/{test/dummy → test_app}/config/application.rb +7 -3
- data/test_app/config/boot.rb +6 -0
- data/{test/dummy → test_app}/config/database.yml +0 -0
- data/{test/dummy → test_app}/config/environment.rb +1 -1
- data/{test/dummy → test_app}/config/environments/development.rb +1 -1
- data/{test/dummy → test_app}/config/environments/production.rb +1 -1
- data/{test/dummy → test_app}/config/environments/test.rb +1 -1
- data/{test/dummy → test_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/{test/dummy → test_app}/config/initializers/inflections.rb +0 -0
- data/{test/dummy → test_app}/config/initializers/mime_types.rb +0 -0
- data/{test/dummy → test_app}/config/initializers/secret_token.rb +1 -1
- data/{test/dummy → test_app}/config/initializers/session_store.rb +2 -2
- data/{test/dummy → test_app}/config/initializers/wrap_parameters.rb +0 -0
- data/{test/dummy → test_app}/config/locales/en.yml +0 -0
- data/{test/dummy → test_app}/config/routes.rb +1 -1
- data/{test/dummy → test_app}/config.ru +1 -1
- data/{test/dummy → test_app}/db/migrate/20120721225047_create_messages.rb +0 -0
- data/test_app/db/migrate/20120722201328_create_workflow_kit_workflows.workflow_kit.rb +11 -0
- data/test_app/db/migrate/20120722201329_create_workflow_kit_steps.workflow_kit.rb +12 -0
- data/test_app/db/migrate/20120722201330_create_workflow_kit_parameters.workflow_kit.rb +12 -0
- data/{test/dummy → test_app}/db/schema.rb +1 -1
- data/test_app/db/seeds.rb +7 -0
- data/test_app/doc/README_FOR_APP +2 -0
- data/{test/dummy → test_app}/lib/assets/.gitkeep +0 -0
- data/{test/dummy/log → test_app/lib/tasks}/.gitkeep +0 -0
- data/{test/dummy/public/favicon.ico → test_app/log/.gitkeep} +0 -0
- data/{test/dummy → test_app}/public/404.html +0 -0
- data/{test/dummy → test_app}/public/422.html +0 -0
- data/{test/dummy → test_app}/public/500.html +0 -0
- data/test_app/public/favicon.ico +0 -0
- data/test_app/public/robots.txt +5 -0
- data/{test/dummy → test_app}/script/rails +0 -0
- data/test_app/test/fixtures/.gitkeep +0 -0
- data/test_app/test/functional/.gitkeep +0 -0
- data/test_app/test/integration/.gitkeep +0 -0
- data/test_app/test/performance/browsing_test.rb +12 -0
- data/test_app/test/test_helper.rb +13 -0
- data/test_app/test/unit/.gitkeep +0 -0
- data/test_app/vendor/assets/javascripts/.gitkeep +0 -0
- data/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test_app/vendor/plugins/.gitkeep +0 -0
- metadata +68 -97
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/test/fixtures/messages.yml +0 -7
- data/test/dummy/test/unit/message_test.rb +0 -7
- data/test/test_helper.rb +0 -15
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# WorkflowKit [![Build Status](https://secure.travis-ci.org/fiedl/workflow_kit.png?branch=master)](http://travis-ci.org/fiedl/workflow_kit)
|
2
2
|
|
3
|
+
<img src="https://github.com/fiedl/workflow_kit/raw/master/test_app/app/assets/images/screenshot.png" height="300" align="right" vspace="20" hspace="20" />
|
4
|
+
|
3
5
|
This *ruby on rails gem* provides a *workflow construction kit* for rails apps. Users can arrange workflow bricks in a sequence for each workflow and add parameters. When a workflow is executed, each workflow brick executes a callback method written in ruby and passes the parameters.
|
4
6
|
|
7
|
+
## Demo
|
8
|
+
|
9
|
+
You might want to have a look at [this demo app at heroku](http://workflow-kit-test-app.herokuapp.com/).
|
10
|
+
|
11
|
+
The [code of this demo app can be found here](https://github.com/fiedl/workflow_kit/tree/master/test_app).
|
12
|
+
|
5
13
|
## Alpha State
|
6
14
|
|
7
15
|
This gem is currently in alpha state. It's not production ready, yet.
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
APP_RAKEFILE = File.expand_path("../
|
23
|
+
APP_RAKEFILE = File.expand_path("../test_app/Rakefile", __FILE__)
|
24
24
|
load 'rails/tasks/engine.rake'
|
25
25
|
|
26
26
|
|
@@ -12,7 +12,7 @@ module WorkflowKit
|
|
12
12
|
|
13
13
|
def value
|
14
14
|
v = super
|
15
|
-
v = v.to_i if ( not v.to_i == nil ) and ( v.to_i.to_s == v )
|
15
|
+
v = v.to_i if ( not v.to_i == nil ) and ( v.to_i.to_s == v ) if v.respond_to?( :to_i )
|
16
16
|
v = true if v == "true"
|
17
17
|
v = false if v == "false"
|
18
18
|
return v
|
@@ -1,29 +1,35 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
1
|
<h1>Workflow: <%=h @workflow.name %></h1>
|
2
|
+
<div>
|
3
|
+
<p>
|
4
|
+
<b>Name:</b>
|
5
|
+
<%=h @workflow.name %>
|
6
|
+
</p>
|
4
7
|
|
5
|
-
<p>
|
6
|
-
|
7
|
-
|
8
|
-
</p>
|
8
|
+
<p>
|
9
|
+
<b>Description:</b>
|
10
|
+
<%=h @workflow.description %>
|
11
|
+
</p>
|
9
12
|
|
10
|
-
<
|
11
|
-
<b>Description:</b>
|
12
|
-
<%=h @workflow.description %>
|
13
|
-
</p>
|
13
|
+
<h2>Steps to Execute</h2>
|
14
14
|
|
15
|
-
<
|
15
|
+
<div class="workflow_steps">
|
16
|
+
<ol>
|
17
|
+
<% for step in @workflow.steps %>
|
18
|
+
<li>
|
19
|
+
<span class="brick-name"><%= step.brick.name %></span>
|
20
|
+
<span class="brick-description"><%= step.brick.description %></span>
|
21
|
+
<% if step.parameters.count > 0 %>
|
22
|
+
<ul class="parameters">
|
23
|
+
<% for parameter in step.parameters %>
|
24
|
+
<li><%= parameter.key %>: <%= parameter.value %></li>
|
25
|
+
<% end %>
|
26
|
+
</ul>
|
27
|
+
<% end %>
|
28
|
+
</li>
|
29
|
+
<% end %>
|
30
|
+
</ol>
|
31
|
+
</div>
|
16
32
|
|
17
|
-
|
18
|
-
|
19
|
-
<% for step in @workflow.steps %>
|
20
|
-
<li>
|
21
|
-
<span class="brick-name"><%= step.brick.name %></span>
|
22
|
-
<span class="brick-description"><%= step.brick.description %></span>
|
23
|
-
</li>
|
24
|
-
<% end %>
|
25
|
-
</ol>
|
33
|
+
<%= link_to 'Edit', edit_workflow_path(@workflow) %> |
|
34
|
+
<%= link_to 'Back', workflows_path %>
|
26
35
|
</div>
|
27
|
-
|
28
|
-
<%= link_to 'Edit', edit_workflow_path(@workflow) %> |
|
29
|
-
<%= link_to 'Back', workflows_path %>
|
data/lib/workflow_kit/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
3
|
|
4
|
-
require File.expand_path("../../
|
4
|
+
require File.expand_path("../../test_app/config/environment", __FILE__)
|
5
5
|
|
6
6
|
require 'workflow_kit'
|
7
7
|
require 'rails/all'
|
data/test_app/.gitignore
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
|
13
|
+
# Ignore all logfiles and tempfiles.
|
14
|
+
/log/*.log
|
15
|
+
/tmp
|
data/test_app/Gemfile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'rails', '3.2.6'
|
4
|
+
|
5
|
+
# Bundle edge Rails instead:
|
6
|
+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
7
|
+
|
8
|
+
gem 'sqlite3', group: :development
|
9
|
+
gem 'pg', group: :production
|
10
|
+
|
11
|
+
|
12
|
+
# Gems used only for assets and not required
|
13
|
+
# in production environments by default.
|
14
|
+
group :assets do
|
15
|
+
gem 'sass-rails', '~> 3.2.3'
|
16
|
+
gem 'coffee-rails', '~> 3.2.1'
|
17
|
+
|
18
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
19
|
+
gem 'therubyracer', :platforms => :ruby
|
20
|
+
|
21
|
+
gem 'uglifier', '>= 1.0.3'
|
22
|
+
end
|
23
|
+
|
24
|
+
gem 'jquery-rails'
|
25
|
+
|
26
|
+
# To use ActiveModel has_secure_password
|
27
|
+
# gem 'bcrypt-ruby', '~> 3.0.0'
|
28
|
+
|
29
|
+
# To use Jbuilder templates for JSON
|
30
|
+
# gem 'jbuilder'
|
31
|
+
|
32
|
+
# Use unicorn as the app server
|
33
|
+
# gem 'unicorn'
|
34
|
+
|
35
|
+
# Deploy with Capistrano
|
36
|
+
# gem 'capistrano'
|
37
|
+
|
38
|
+
# To use debugger
|
39
|
+
# gem 'debugger'
|
40
|
+
|
41
|
+
gem 'nifty-generators', group: :development
|
42
|
+
gem 'workflow_kit', git: 'git://github.com/fiedl/workflow_kit.git'
|
43
|
+
|
@@ -0,0 +1,127 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/fiedl/workflow_kit.git
|
3
|
+
revision: caa1f30acee20ffaccb19f13972809d887775018
|
4
|
+
specs:
|
5
|
+
workflow_kit (0.0.4.alpha)
|
6
|
+
rails (~> 3.2.6)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.2.6)
|
12
|
+
actionpack (= 3.2.6)
|
13
|
+
mail (~> 2.4.4)
|
14
|
+
actionpack (3.2.6)
|
15
|
+
activemodel (= 3.2.6)
|
16
|
+
activesupport (= 3.2.6)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
journey (~> 1.0.1)
|
20
|
+
rack (~> 1.4.0)
|
21
|
+
rack-cache (~> 1.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.1.3)
|
24
|
+
activemodel (3.2.6)
|
25
|
+
activesupport (= 3.2.6)
|
26
|
+
builder (~> 3.0.0)
|
27
|
+
activerecord (3.2.6)
|
28
|
+
activemodel (= 3.2.6)
|
29
|
+
activesupport (= 3.2.6)
|
30
|
+
arel (~> 3.0.2)
|
31
|
+
tzinfo (~> 0.3.29)
|
32
|
+
activeresource (3.2.6)
|
33
|
+
activemodel (= 3.2.6)
|
34
|
+
activesupport (= 3.2.6)
|
35
|
+
activesupport (3.2.6)
|
36
|
+
i18n (~> 0.6)
|
37
|
+
multi_json (~> 1.0)
|
38
|
+
arel (3.0.2)
|
39
|
+
builder (3.0.0)
|
40
|
+
coffee-rails (3.2.2)
|
41
|
+
coffee-script (>= 2.2.0)
|
42
|
+
railties (~> 3.2.0)
|
43
|
+
coffee-script (2.2.0)
|
44
|
+
coffee-script-source
|
45
|
+
execjs
|
46
|
+
coffee-script-source (1.3.3)
|
47
|
+
erubis (2.7.0)
|
48
|
+
execjs (1.4.0)
|
49
|
+
multi_json (~> 1.0)
|
50
|
+
hike (1.2.1)
|
51
|
+
i18n (0.6.0)
|
52
|
+
journey (1.0.4)
|
53
|
+
jquery-rails (2.0.2)
|
54
|
+
railties (>= 3.2.0, < 5.0)
|
55
|
+
thor (~> 0.14)
|
56
|
+
json (1.7.3)
|
57
|
+
libv8 (3.3.10.4)
|
58
|
+
mail (2.4.4)
|
59
|
+
i18n (>= 0.4.0)
|
60
|
+
mime-types (~> 1.16)
|
61
|
+
treetop (~> 1.4.8)
|
62
|
+
mime-types (1.19)
|
63
|
+
multi_json (1.3.6)
|
64
|
+
nifty-generators (0.4.6)
|
65
|
+
pg (0.14.0)
|
66
|
+
polyglot (0.3.3)
|
67
|
+
rack (1.4.1)
|
68
|
+
rack-cache (1.2)
|
69
|
+
rack (>= 0.4)
|
70
|
+
rack-ssl (1.3.2)
|
71
|
+
rack
|
72
|
+
rack-test (0.6.1)
|
73
|
+
rack (>= 1.0)
|
74
|
+
rails (3.2.6)
|
75
|
+
actionmailer (= 3.2.6)
|
76
|
+
actionpack (= 3.2.6)
|
77
|
+
activerecord (= 3.2.6)
|
78
|
+
activeresource (= 3.2.6)
|
79
|
+
activesupport (= 3.2.6)
|
80
|
+
bundler (~> 1.0)
|
81
|
+
railties (= 3.2.6)
|
82
|
+
railties (3.2.6)
|
83
|
+
actionpack (= 3.2.6)
|
84
|
+
activesupport (= 3.2.6)
|
85
|
+
rack-ssl (~> 1.3.2)
|
86
|
+
rake (>= 0.8.7)
|
87
|
+
rdoc (~> 3.4)
|
88
|
+
thor (>= 0.14.6, < 2.0)
|
89
|
+
rake (0.9.2.2)
|
90
|
+
rdoc (3.12)
|
91
|
+
json (~> 1.4)
|
92
|
+
sass (3.1.20)
|
93
|
+
sass-rails (3.2.5)
|
94
|
+
railties (~> 3.2.0)
|
95
|
+
sass (>= 3.1.10)
|
96
|
+
tilt (~> 1.3)
|
97
|
+
sprockets (2.1.3)
|
98
|
+
hike (~> 1.2)
|
99
|
+
rack (~> 1.0)
|
100
|
+
tilt (~> 1.1, != 1.3.0)
|
101
|
+
sqlite3 (1.3.6)
|
102
|
+
therubyracer (0.10.1)
|
103
|
+
libv8 (~> 3.3.10)
|
104
|
+
thor (0.15.4)
|
105
|
+
tilt (1.3.3)
|
106
|
+
treetop (1.4.10)
|
107
|
+
polyglot
|
108
|
+
polyglot (>= 0.3.1)
|
109
|
+
tzinfo (0.3.33)
|
110
|
+
uglifier (1.2.6)
|
111
|
+
execjs (>= 0.3.0)
|
112
|
+
multi_json (~> 1.3)
|
113
|
+
|
114
|
+
PLATFORMS
|
115
|
+
ruby
|
116
|
+
|
117
|
+
DEPENDENCIES
|
118
|
+
coffee-rails (~> 3.2.1)
|
119
|
+
jquery-rails
|
120
|
+
nifty-generators
|
121
|
+
pg
|
122
|
+
rails (= 3.2.6)
|
123
|
+
sass-rails (~> 3.2.3)
|
124
|
+
sqlite3
|
125
|
+
therubyracer
|
126
|
+
uglifier (>= 1.0.3)
|
127
|
+
workflow_kit!
|
File without changes
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,8 +2,11 @@
|
|
2
2
|
<p>
|
3
3
|
This test app demonstrates the <strong>ruby on rails gem <a href="http://github.com/fiedl/workflow_kit">workflow_kit</a></strong>.
|
4
4
|
</p>
|
5
|
+
<p>
|
6
|
+
The <a href="ttps://github.com/fiedl/workflow_kit/tree/master/test_app">sourcecode of this demo app can be found here on github</a>. In particular, the <a href="https://github.com/fiedl/workflow_kit/tree/master/test_app/app/models/workflow_kit">workflow bricks are defined here</a>.
|
7
|
+
</p>
|
5
8
|
<p>You might start <i>executing</i> a workflow. Notice how this workflow adds some log messages below. Next, you could <i>edit</i> a workflow and see how that works.</p>
|
6
|
-
<p>Please note, this gem is still in an <
|
9
|
+
<p>Please note, this gem is still in an <strong>alpha state</strong> and not ready for use in production, yet.</p>
|
7
10
|
|
8
11
|
<h2>Workflows</h2>
|
9
12
|
|
@@ -23,7 +26,7 @@
|
|
23
26
|
<td><%= workflow.description %></td>
|
24
27
|
<td><%= link_to 'Show', workflow %></td>
|
25
28
|
<td><%= link_to 'Edit', edit_workflow_path(workflow) %></td>
|
26
|
-
|
29
|
+
<!--td><%= link_to 'Destroy', workflow, method: :delete, data: { confirm: 'Are you sure?' } %></td-->
|
27
30
|
<td><%= link_to 'Execute', execute_workflow_path( workflow ), method: :put %></td>
|
28
31
|
</tr>
|
29
32
|
<% end %>
|
@@ -2,9 +2,14 @@ require File.expand_path('../boot', __FILE__)
|
|
2
2
|
|
3
3
|
require 'rails/all'
|
4
4
|
|
5
|
-
Bundler
|
5
|
+
if defined?(Bundler)
|
6
|
+
# If you precompile assets before deploying to production, use this line
|
7
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
8
|
+
# If you want your assets lazily compiled in production, use this line
|
9
|
+
# Bundler.require(:default, :assets, Rails.env)
|
10
|
+
end
|
6
11
|
|
7
|
-
module
|
12
|
+
module TestApp
|
8
13
|
class Application < Rails::Application
|
9
14
|
# Settings in config/environments/* take precedence over those specified here.
|
10
15
|
# Application configuration should go into files in config/initializers
|
@@ -55,4 +60,3 @@ module Dummy
|
|
55
60
|
config.assets.version = '1.0'
|
56
61
|
end
|
57
62
|
end
|
58
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
|
7
|
+
TestApp::Application.config.secret_token = '33d6e2a5a40393bd6c73f2aa558554ec3a780ca07883a38aa5a766b3987cd8eda2edcfecedd6ca9f41dbcf86788e08a30f712ac742a5236fc0924666983e2786'
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
|
3
|
+
TestApp::Application.config.session_store :cookie_store, key: '_test_app_session'
|
4
4
|
|
5
5
|
# Use the database for sessions instead of the cookie-based default,
|
6
6
|
# which shouldn't be used to store highly confidential information
|
7
7
|
# (create the session table with "rails generate session_migration")
|
8
|
-
#
|
8
|
+
# TestApp::Application.config.session_store :active_record_store
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This migration comes from workflow_kit (originally 20120721135535)
|
2
|
+
class CreateWorkflowKitWorkflows < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :workflow_kit_workflows do |t|
|
5
|
+
t.string :name
|
6
|
+
t.string :description
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from workflow_kit (originally 20120721140135)
|
2
|
+
class CreateWorkflowKitSteps < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :workflow_kit_steps do |t|
|
5
|
+
t.integer :sequence_index
|
6
|
+
t.references :workflow
|
7
|
+
t.string :brick_name
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from workflow_kit (originally 20120721140613)
|
2
|
+
class CreateWorkflowKitParameters < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :workflow_kit_parameters do |t|
|
5
|
+
t.string :key
|
6
|
+
t.string :value
|
7
|
+
t.references :parameterable, polymorphic: true
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20120722201330) do
|
15
15
|
|
16
16
|
create_table "messages", :force => true do |t|
|
17
17
|
t.string "text"
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rails/performance_test_help'
|
3
|
+
|
4
|
+
class BrowsingTest < ActionDispatch::PerformanceTest
|
5
|
+
# Refer to the documentation for all available options
|
6
|
+
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
7
|
+
# :output => 'tmp/performance', :formats => [:flat] }
|
8
|
+
|
9
|
+
def test_homepage
|
10
|
+
get '/'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
+
#
|
8
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
+
# -- they do not yet inherit this setting
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4.alpha
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -226,53 +226,71 @@ files:
|
|
226
226
|
- spec/models/workflow_spec.rb
|
227
227
|
- spec/spec_helper.rb
|
228
228
|
- spec/support/factory.rb
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
-
|
274
|
-
-
|
275
|
-
-
|
229
|
+
- test_app/.gitignore
|
230
|
+
- test_app/Gemfile
|
231
|
+
- test_app/Gemfile.lock
|
232
|
+
- test_app/README.rdoc
|
233
|
+
- test_app/Rakefile
|
234
|
+
- test_app/app/assets/images/rails.png
|
235
|
+
- test_app/app/assets/images/screenshot.png
|
236
|
+
- test_app/app/assets/javascripts/application.js
|
237
|
+
- test_app/app/assets/stylesheets/application.css
|
238
|
+
- test_app/app/assets/stylesheets/demo_app.css.sass
|
239
|
+
- test_app/app/assets/stylesheets/nifty.css
|
240
|
+
- test_app/app/controllers/application_controller.rb
|
241
|
+
- test_app/app/helpers/application_helper.rb
|
242
|
+
- test_app/app/helpers/error_messages_helper.rb
|
243
|
+
- test_app/app/helpers/layout_helper.rb
|
244
|
+
- test_app/app/mailers/.gitkeep
|
245
|
+
- test_app/app/models/.gitkeep
|
246
|
+
- test_app/app/models/message.rb
|
247
|
+
- test_app/app/models/workflow_kit/brick_a.rb
|
248
|
+
- test_app/app/models/workflow_kit/brick_b.rb
|
249
|
+
- test_app/app/models/workflow_kit/brick_c.rb
|
250
|
+
- test_app/app/models/workflow_kit/test_brick.rb
|
251
|
+
- test_app/app/views/layouts/application.html.erb
|
252
|
+
- test_app/app/views/workflow_kit/workflows/index.html.erb
|
253
|
+
- test_app/config.ru
|
254
|
+
- test_app/config/application.rb
|
255
|
+
- test_app/config/boot.rb
|
256
|
+
- test_app/config/database.yml
|
257
|
+
- test_app/config/environment.rb
|
258
|
+
- test_app/config/environments/development.rb
|
259
|
+
- test_app/config/environments/production.rb
|
260
|
+
- test_app/config/environments/test.rb
|
261
|
+
- test_app/config/initializers/backtrace_silencers.rb
|
262
|
+
- test_app/config/initializers/inflections.rb
|
263
|
+
- test_app/config/initializers/mime_types.rb
|
264
|
+
- test_app/config/initializers/secret_token.rb
|
265
|
+
- test_app/config/initializers/session_store.rb
|
266
|
+
- test_app/config/initializers/wrap_parameters.rb
|
267
|
+
- test_app/config/locales/en.yml
|
268
|
+
- test_app/config/routes.rb
|
269
|
+
- test_app/db/migrate/20120721225047_create_messages.rb
|
270
|
+
- test_app/db/migrate/20120722201328_create_workflow_kit_workflows.workflow_kit.rb
|
271
|
+
- test_app/db/migrate/20120722201329_create_workflow_kit_steps.workflow_kit.rb
|
272
|
+
- test_app/db/migrate/20120722201330_create_workflow_kit_parameters.workflow_kit.rb
|
273
|
+
- test_app/db/schema.rb
|
274
|
+
- test_app/db/seeds.rb
|
275
|
+
- test_app/doc/README_FOR_APP
|
276
|
+
- test_app/lib/assets/.gitkeep
|
277
|
+
- test_app/lib/tasks/.gitkeep
|
278
|
+
- test_app/log/.gitkeep
|
279
|
+
- test_app/public/404.html
|
280
|
+
- test_app/public/422.html
|
281
|
+
- test_app/public/500.html
|
282
|
+
- test_app/public/favicon.ico
|
283
|
+
- test_app/public/robots.txt
|
284
|
+
- test_app/script/rails
|
285
|
+
- test_app/test/fixtures/.gitkeep
|
286
|
+
- test_app/test/functional/.gitkeep
|
287
|
+
- test_app/test/integration/.gitkeep
|
288
|
+
- test_app/test/performance/browsing_test.rb
|
289
|
+
- test_app/test/test_helper.rb
|
290
|
+
- test_app/test/unit/.gitkeep
|
291
|
+
- test_app/vendor/assets/javascripts/.gitkeep
|
292
|
+
- test_app/vendor/assets/stylesheets/.gitkeep
|
293
|
+
- test_app/vendor/plugins/.gitkeep
|
276
294
|
- workflow_kit.gemspec
|
277
295
|
homepage: http://github.com/fiedl/workflow_kit
|
278
296
|
licenses: []
|
@@ -288,7 +306,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
288
306
|
version: '0'
|
289
307
|
segments:
|
290
308
|
- 0
|
291
|
-
hash: -
|
309
|
+
hash: -718084785
|
292
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
311
|
none: false
|
294
312
|
requirements:
|
@@ -312,50 +330,3 @@ test_files:
|
|
312
330
|
- spec/models/workflow_spec.rb
|
313
331
|
- spec/spec_helper.rb
|
314
332
|
- spec/support/factory.rb
|
315
|
-
- test/dummy/README.rdoc
|
316
|
-
- test/dummy/Rakefile
|
317
|
-
- test/dummy/app/assets/javascripts/application.js
|
318
|
-
- test/dummy/app/assets/stylesheets/application.css
|
319
|
-
- test/dummy/app/assets/stylesheets/demo_app.css.sass
|
320
|
-
- test/dummy/app/assets/stylesheets/nifty.css
|
321
|
-
- test/dummy/app/controllers/application_controller.rb
|
322
|
-
- test/dummy/app/helpers/application_helper.rb
|
323
|
-
- test/dummy/app/helpers/error_messages_helper.rb
|
324
|
-
- test/dummy/app/helpers/layout_helper.rb
|
325
|
-
- test/dummy/app/mailers/.gitkeep
|
326
|
-
- test/dummy/app/models/.gitkeep
|
327
|
-
- test/dummy/app/models/message.rb
|
328
|
-
- test/dummy/app/models/workflow_kit/brick_a.rb
|
329
|
-
- test/dummy/app/models/workflow_kit/brick_b.rb
|
330
|
-
- test/dummy/app/models/workflow_kit/brick_c.rb
|
331
|
-
- test/dummy/app/models/workflow_kit/test_brick.rb
|
332
|
-
- test/dummy/app/views/layouts/application.html.erb
|
333
|
-
- test/dummy/app/views/workflow_kit/workflows/index.html.erb
|
334
|
-
- test/dummy/config.ru
|
335
|
-
- test/dummy/config/application.rb
|
336
|
-
- test/dummy/config/boot.rb
|
337
|
-
- test/dummy/config/database.yml
|
338
|
-
- test/dummy/config/environment.rb
|
339
|
-
- test/dummy/config/environments/development.rb
|
340
|
-
- test/dummy/config/environments/production.rb
|
341
|
-
- test/dummy/config/environments/test.rb
|
342
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
343
|
-
- test/dummy/config/initializers/inflections.rb
|
344
|
-
- test/dummy/config/initializers/mime_types.rb
|
345
|
-
- test/dummy/config/initializers/secret_token.rb
|
346
|
-
- test/dummy/config/initializers/session_store.rb
|
347
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
348
|
-
- test/dummy/config/locales/en.yml
|
349
|
-
- test/dummy/config/routes.rb
|
350
|
-
- test/dummy/db/migrate/20120721225047_create_messages.rb
|
351
|
-
- test/dummy/db/schema.rb
|
352
|
-
- test/dummy/lib/assets/.gitkeep
|
353
|
-
- test/dummy/log/.gitkeep
|
354
|
-
- test/dummy/public/404.html
|
355
|
-
- test/dummy/public/422.html
|
356
|
-
- test/dummy/public/500.html
|
357
|
-
- test/dummy/public/favicon.ico
|
358
|
-
- test/dummy/script/rails
|
359
|
-
- test/dummy/test/fixtures/messages.yml
|
360
|
-
- test/dummy/test/unit/message_test.rb
|
361
|
-
- test/test_helper.rb
|
data/test/dummy/config/boot.rb
DELETED
data/test/test_helper.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Configure Rails Environment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
-
require "rails/test_help"
|
6
|
-
|
7
|
-
Rails.backtrace_cleaner.remove_silencers!
|
8
|
-
|
9
|
-
# Load support files
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
-
|
12
|
-
# Load fixtures from the engine
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
-
end
|