workflow_kit 0.0.3.alpha → 0.0.4.alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. data/.travis.yml +4 -1
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -0
  4. data/Rakefile +1 -1
  5. data/app/controllers/workflow_kit/workflows_controller.rb +1 -1
  6. data/app/models/workflow_kit/parameter.rb +1 -1
  7. data/app/views/workflow_kit/workflows/show.html.erb +29 -23
  8. data/lib/workflow_kit/version.rb +1 -1
  9. data/spec/spec_helper.rb +1 -1
  10. data/test_app/.gitignore +15 -0
  11. data/test_app/Gemfile +43 -0
  12. data/test_app/Gemfile.lock +127 -0
  13. data/{test/dummy → test_app}/README.rdoc +0 -0
  14. data/{test/dummy → test_app}/Rakefile +1 -1
  15. data/test_app/app/assets/images/rails.png +0 -0
  16. data/test_app/app/assets/images/screenshot.png +0 -0
  17. data/{test/dummy → test_app}/app/assets/javascripts/application.js +0 -0
  18. data/{test/dummy → test_app}/app/assets/stylesheets/application.css +0 -0
  19. data/{test/dummy → test_app}/app/assets/stylesheets/demo_app.css.sass +9 -1
  20. data/{test/dummy → test_app}/app/assets/stylesheets/nifty.css +0 -0
  21. data/{test/dummy → test_app}/app/controllers/application_controller.rb +0 -0
  22. data/{test/dummy → test_app}/app/helpers/application_helper.rb +0 -0
  23. data/{test/dummy → test_app}/app/helpers/error_messages_helper.rb +0 -0
  24. data/{test/dummy → test_app}/app/helpers/layout_helper.rb +0 -0
  25. data/{test/dummy → test_app}/app/mailers/.gitkeep +0 -0
  26. data/{test/dummy → test_app}/app/models/.gitkeep +0 -0
  27. data/{test/dummy → test_app}/app/models/message.rb +0 -0
  28. data/{test/dummy → test_app}/app/models/workflow_kit/brick_a.rb +0 -0
  29. data/{test/dummy → test_app}/app/models/workflow_kit/brick_b.rb +0 -0
  30. data/{test/dummy → test_app}/app/models/workflow_kit/brick_c.rb +0 -0
  31. data/{test/dummy → test_app}/app/models/workflow_kit/test_brick.rb +0 -0
  32. data/{test/dummy → test_app}/app/views/layouts/application.html.erb +0 -0
  33. data/{test/dummy → test_app}/app/views/workflow_kit/workflows/index.html.erb +5 -2
  34. data/{test/dummy → test_app}/config/application.rb +7 -3
  35. data/test_app/config/boot.rb +6 -0
  36. data/{test/dummy → test_app}/config/database.yml +0 -0
  37. data/{test/dummy → test_app}/config/environment.rb +1 -1
  38. data/{test/dummy → test_app}/config/environments/development.rb +1 -1
  39. data/{test/dummy → test_app}/config/environments/production.rb +1 -1
  40. data/{test/dummy → test_app}/config/environments/test.rb +1 -1
  41. data/{test/dummy → test_app}/config/initializers/backtrace_silencers.rb +0 -0
  42. data/{test/dummy → test_app}/config/initializers/inflections.rb +0 -0
  43. data/{test/dummy → test_app}/config/initializers/mime_types.rb +0 -0
  44. data/{test/dummy → test_app}/config/initializers/secret_token.rb +1 -1
  45. data/{test/dummy → test_app}/config/initializers/session_store.rb +2 -2
  46. data/{test/dummy → test_app}/config/initializers/wrap_parameters.rb +0 -0
  47. data/{test/dummy → test_app}/config/locales/en.yml +0 -0
  48. data/{test/dummy → test_app}/config/routes.rb +1 -1
  49. data/{test/dummy → test_app}/config.ru +1 -1
  50. data/{test/dummy → test_app}/db/migrate/20120721225047_create_messages.rb +0 -0
  51. data/test_app/db/migrate/20120722201328_create_workflow_kit_workflows.workflow_kit.rb +11 -0
  52. data/test_app/db/migrate/20120722201329_create_workflow_kit_steps.workflow_kit.rb +12 -0
  53. data/test_app/db/migrate/20120722201330_create_workflow_kit_parameters.workflow_kit.rb +12 -0
  54. data/{test/dummy → test_app}/db/schema.rb +1 -1
  55. data/test_app/db/seeds.rb +7 -0
  56. data/test_app/doc/README_FOR_APP +2 -0
  57. data/{test/dummy → test_app}/lib/assets/.gitkeep +0 -0
  58. data/{test/dummy/log → test_app/lib/tasks}/.gitkeep +0 -0
  59. data/{test/dummy/public/favicon.ico → test_app/log/.gitkeep} +0 -0
  60. data/{test/dummy → test_app}/public/404.html +0 -0
  61. data/{test/dummy → test_app}/public/422.html +0 -0
  62. data/{test/dummy → test_app}/public/500.html +0 -0
  63. data/test_app/public/favicon.ico +0 -0
  64. data/test_app/public/robots.txt +5 -0
  65. data/{test/dummy → test_app}/script/rails +0 -0
  66. data/test_app/test/fixtures/.gitkeep +0 -0
  67. data/test_app/test/functional/.gitkeep +0 -0
  68. data/test_app/test/integration/.gitkeep +0 -0
  69. data/test_app/test/performance/browsing_test.rb +12 -0
  70. data/test_app/test/test_helper.rb +13 -0
  71. data/test_app/test/unit/.gitkeep +0 -0
  72. data/test_app/vendor/assets/javascripts/.gitkeep +0 -0
  73. data/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
  74. data/test_app/vendor/plugins/.gitkeep +0 -0
  75. metadata +68 -97
  76. data/test/dummy/config/boot.rb +0 -10
  77. data/test/dummy/test/fixtures/messages.yml +0 -7
  78. data/test/dummy/test/unit/message_test.rb +0 -7
  79. data/test/test_helper.rb +0 -15
data/.travis.yml CHANGED
@@ -1,2 +1,5 @@
1
+
2
+ env: "RAILS_ENV=test"
3
+
1
4
  before_script:
2
- - "sh -c 'bundle & bundle exec rake db:drop db:migrate'"
5
+ - "sh -c 'cd test_app && bundle && bundle exec rake db:drop db:migrate'"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workflow_kit (0.0.3.alpha)
4
+ workflow_kit (0.0.4.alpha)
5
5
  rails (~> 3.2.6)
6
6
 
7
7
  GEM
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("../test/dummy/Rakefile", __FILE__)
23
+ APP_RAKEFILE = File.expand_path("../test_app/Rakefile", __FILE__)
24
24
  load 'rails/tasks/engine.rake'
25
25
 
26
26
 
@@ -87,7 +87,7 @@ module WorkflowKit
87
87
  # PUT /workflows/1/execute
88
88
  def execute
89
89
  @workflow = Workflow.find( params[ :id ] )
90
- @workflow.execute
90
+ @workflow.execute( params )
91
91
 
92
92
  flash[ :notice ] = I18n.t( :executed_workflow, @workflow.name )
93
93
  redirect_to :back
@@ -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
- <b>Name:</b>
7
- <%=h @workflow.name %>
8
- </p>
8
+ <p>
9
+ <b>Description:</b>
10
+ <%=h @workflow.description %>
11
+ </p>
9
12
 
10
- <p>
11
- <b>Description:</b>
12
- <%=h @workflow.description %>
13
- </p>
13
+ <h2>Steps to Execute</h2>
14
14
 
15
- <h2>Steps to Execute</h2>
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
- <div class="workflow_steps">
18
- <ol>
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 %>
@@ -1,3 +1,3 @@
1
1
  module WorkflowKit
2
- VERSION = "0.0.3.alpha"
2
+ VERSION = "0.0.4.alpha"
3
3
  end
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("../../test/dummy/config/environment", __FILE__)
4
+ require File.expand_path("../../test_app/config/environment", __FILE__)
5
5
 
6
6
  require 'workflow_kit'
7
7
  require 'rails/all'
@@ -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
@@ -4,4 +4,4 @@
4
4
 
5
5
  require File.expand_path('../config/application', __FILE__)
6
6
 
7
- Dummy::Application.load_tasks
7
+ TestApp::Application.load_tasks
@@ -28,4 +28,12 @@ ol
28
28
  font-weight: bold
29
29
  .brick-description
30
30
  display: block
31
- margin-left: 20px
31
+ margin-left: 20px
32
+ margin-top: 5px
33
+ margin-bottom: 3px
34
+ ul.parameters
35
+ li
36
+ border: 0px
37
+ margin-bottom: 0px
38
+ font-weight: bold
39
+ font-size: 85%
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 <i>alpha state</i> and not ready for use in production, yet.</p>
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
- <td><%= link_to 'Destroy', workflow, method: :delete, data: { confirm: 'Are you sure?' } %></td>
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.require
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 Dummy
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
-
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
File without changes
@@ -2,4 +2,4 @@
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the rails application
5
- Dummy::Application.initialize!
5
+ TestApp::Application.initialize!
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ TestApp::Application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
4
  # In the development environment your application's code is reloaded on
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ TestApp::Application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
4
  # Code is not reloaded between requests
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ TestApp::Application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -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
- Dummy::Application.config.secret_token = 'ced246c95f743286b05d2d40fe5b227687f19267926f8538c41bea3e652c2c60a650a30301befae610d46a25a8b4c3835001b0f418da5cda8b713360e3acc19e'
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
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
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
- # Dummy::Application.config.session_store :active_record_store
8
+ # TestApp::Application.config.session_store :active_record_store
File without changes
@@ -1,4 +1,4 @@
1
- Rails.application.routes.draw do
1
+ TestApp::Application.routes.draw do
2
2
 
3
3
  mount WorkflowKit::Engine => "/workflow_kit" #, as: "workflow_kit"
4
4
 
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
3
  require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
4
+ run TestApp::Application
@@ -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 => 20120721225047) do
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)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
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.3.alpha
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-07-22 00:00:00.000000000 Z
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
- - test/dummy/README.rdoc
230
- - test/dummy/Rakefile
231
- - test/dummy/app/assets/javascripts/application.js
232
- - test/dummy/app/assets/stylesheets/application.css
233
- - test/dummy/app/assets/stylesheets/demo_app.css.sass
234
- - test/dummy/app/assets/stylesheets/nifty.css
235
- - test/dummy/app/controllers/application_controller.rb
236
- - test/dummy/app/helpers/application_helper.rb
237
- - test/dummy/app/helpers/error_messages_helper.rb
238
- - test/dummy/app/helpers/layout_helper.rb
239
- - test/dummy/app/mailers/.gitkeep
240
- - test/dummy/app/models/.gitkeep
241
- - test/dummy/app/models/message.rb
242
- - test/dummy/app/models/workflow_kit/brick_a.rb
243
- - test/dummy/app/models/workflow_kit/brick_b.rb
244
- - test/dummy/app/models/workflow_kit/brick_c.rb
245
- - test/dummy/app/models/workflow_kit/test_brick.rb
246
- - test/dummy/app/views/layouts/application.html.erb
247
- - test/dummy/app/views/workflow_kit/workflows/index.html.erb
248
- - test/dummy/config.ru
249
- - test/dummy/config/application.rb
250
- - test/dummy/config/boot.rb
251
- - test/dummy/config/database.yml
252
- - test/dummy/config/environment.rb
253
- - test/dummy/config/environments/development.rb
254
- - test/dummy/config/environments/production.rb
255
- - test/dummy/config/environments/test.rb
256
- - test/dummy/config/initializers/backtrace_silencers.rb
257
- - test/dummy/config/initializers/inflections.rb
258
- - test/dummy/config/initializers/mime_types.rb
259
- - test/dummy/config/initializers/secret_token.rb
260
- - test/dummy/config/initializers/session_store.rb
261
- - test/dummy/config/initializers/wrap_parameters.rb
262
- - test/dummy/config/locales/en.yml
263
- - test/dummy/config/routes.rb
264
- - test/dummy/db/migrate/20120721225047_create_messages.rb
265
- - test/dummy/db/schema.rb
266
- - test/dummy/lib/assets/.gitkeep
267
- - test/dummy/log/.gitkeep
268
- - test/dummy/public/404.html
269
- - test/dummy/public/422.html
270
- - test/dummy/public/500.html
271
- - test/dummy/public/favicon.ico
272
- - test/dummy/script/rails
273
- - test/dummy/test/fixtures/messages.yml
274
- - test/dummy/test/unit/message_test.rb
275
- - test/test_helper.rb
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: -378082417
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
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,7 +0,0 @@
1
- # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
-
3
- one:
4
- text: MyString
5
-
6
- two:
7
- text: MyString
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class MessageTest < ActiveSupport::TestCase
4
- # test "the truth" do
5
- # assert true
6
- # end
7
- end
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