ruote-kit 2.1.4.1 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/.gitignore +1 -2
  2. data/Gemfile +10 -1
  3. data/README.rdoc +53 -10
  4. data/Rakefile +17 -5
  5. data/config.ru +15 -1
  6. data/lib/ruote-kit/application.rb +10 -5
  7. data/lib/ruote-kit/configuration.rb +34 -3
  8. data/lib/ruote-kit/helpers/engine_helpers.rb +3 -3
  9. data/lib/ruote-kit/helpers/render_helpers.rb +10 -1
  10. data/lib/ruote-kit/resources/processes.rb +10 -4
  11. data/lib/ruote-kit/resources/workitems.rb +6 -4
  12. data/lib/ruote-kit/spec/ruote_helpers.rb +3 -3
  13. data/lib/ruote-kit/version.rb +11 -0
  14. data/lib/ruote-kit/views/expression.html.haml +1 -1
  15. data/lib/ruote-kit/views/expressions.html.haml +1 -1
  16. data/lib/ruote-kit/views/process.html.haml +1 -1
  17. data/lib/ruote-kit/views/process_failed_to_launch.html.haml +7 -0
  18. data/lib/ruote-kit/views/process_launched.html.haml +6 -0
  19. data/lib/ruote-kit.rb +21 -9
  20. data/ruote-kit.gemspec +32 -27
  21. data/spec/helpers/render_helpers_spec.rb +5 -2
  22. data/spec/resources/expressions_spec.rb +8 -4
  23. data/spec/resources/index_spec.rb +4 -2
  24. data/spec/resources/processes_spec.rb +37 -11
  25. data/spec/resources/workitems_spec.rb +12 -5
  26. data/spec/ruote-kit_configure_spec.rb +100 -0
  27. data/spec/spec_helper.rb +15 -9
  28. data/spec/views/expressions.html.haml_spec.rb +31 -0
  29. data/spec/views/launch_process.html.haml_spec.rb +2 -1
  30. data/spec/views/process.html.haml_spec.rb +2 -1
  31. data/spec/views/process_launched.html.haml_spec.rb +16 -0
  32. data/spec/views/processes.html.haml_spec.rb +2 -1
  33. data/spec/views/workitems.html.haml_spec.rb +3 -2
  34. metadata +58 -25
  35. data/lib/ruote-kit/vendor/sinatra-respond_to/LICENSE +0 -21
  36. data/lib/ruote-kit/vendor/sinatra-respond_to/README.markdown +0 -102
  37. data/lib/ruote-kit/vendor/sinatra-respond_to/Rakefile +0 -30
  38. data/lib/ruote-kit/vendor/sinatra-respond_to/VERSION.yml +0 -4
  39. data/lib/ruote-kit/vendor/sinatra-respond_to/lib/sinatra/respond_to.rb +0 -206
  40. data/lib/ruote-kit/vendor/sinatra-respond_to/sinatra-respond_to.gemspec +0 -56
  41. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/public/static folder/.keep +0 -0
  42. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/public/static.txt +0 -1
  43. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/test_app.rb +0 -53
  44. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/unreachable_static.txt +0 -1
  45. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/layout.html.haml +0 -2
  46. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.html.haml +0 -1
  47. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.js.erb +0 -3
  48. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.xml.builder +0 -3
  49. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/extension_spec.rb +0 -403
  50. data/lib/ruote-kit/vendor/sinatra-respond_to/spec/spec_helper.rb +0 -18
@@ -1,6 +1,9 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "json helper" do
3
+ undef :context if defined?(context)
4
+
5
+ describe "json helper", :type => :with_engine do
6
+
4
7
  describe "rendering defaults" do
5
8
  before(:each) do
6
9
  stub_chain( :request, :fullpath ).and_return('/_ruote')
@@ -200,7 +203,7 @@ describe "json helper" do
200
203
 
201
204
  stub_chain( :request, :fullpath ).and_return("/_ruote/workitems")
202
205
 
203
- @hash = Rufus::Json.decode( json( :workitems, store_participant.all ) )
206
+ @hash = Rufus::Json.decode( json( :workitems, storage_participant.all ) )
204
207
  end
205
208
 
206
209
  it "should have the workitems" do
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "GET /_ruote/expressions" do
3
+ describe "GET /_ruote/expressions", :type => :with_engine do
4
+
4
5
  it "should report a friendly message to the user (HTML)" do
5
6
  get "/_ruote/expressions"
6
7
 
@@ -16,7 +17,8 @@ describe "GET /_ruote/expressions" do
16
17
  end
17
18
  end
18
19
 
19
- describe "GET /_ruote/expressions/wfid" do
20
+ describe "GET /_ruote/expressions/wfid", :type => :with_engine do
21
+
20
22
  describe "with running processes" do
21
23
  before(:each) do
22
24
  @wfid = launch_test_process
@@ -52,7 +54,8 @@ describe "GET /_ruote/expressions/wfid" do
52
54
  end
53
55
  end
54
56
 
55
- describe "GET /_ruote/expressions/wfid/expid" do
57
+ describe "GET /_ruote/expressions/wfid/expid", :type => :with_engine do
58
+
56
59
  describe "with running processes" do
57
60
  before(:each) do
58
61
  @wfid = launch_test_process
@@ -90,7 +93,8 @@ describe "GET /_ruote/expressions/wfid/expid" do
90
93
  end
91
94
  end
92
95
 
93
- describe "DELETE /_ruote/expressions/wfid/expid" do
96
+ describe "DELETE /_ruote/expressions/wfid/expid", :type => :with_engine do
97
+
94
98
  describe "with running processes" do
95
99
  before(:each) do
96
100
  @wfid = launch_test_process do
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "GET /" do
3
+ describe "GET /", :type => :with_engine do
4
+
4
5
  it "should return a welcome message in HTML be default" do
5
6
  get "/_ruote"
6
7
 
@@ -24,7 +25,8 @@ describe "GET /" do
24
25
  end
25
26
  end
26
27
 
27
- describe "Generic error handling" do
28
+ describe "Generic error handling", :type => :with_engine do
29
+
28
30
  it "should give our own 404 page (HTML)" do
29
31
  get "/kenneth"
30
32
 
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "GET /_ruote/processes" do
3
+ describe "GET /_ruote/processes", :type => :with_engine do
4
+
4
5
  describe "without any running processes" do
5
6
  it "should give no processes back (HTML)" do
6
7
  get "/_ruote/processes"
@@ -43,7 +44,8 @@ describe "GET /_ruote/processes" do
43
44
  end
44
45
  end
45
46
 
46
- describe "GET /_ruote/processes/X-Y" do
47
+ describe "GET /_ruote/processes/X-Y", :type => :with_engine do
48
+
47
49
  describe "with a running process" do
48
50
  before(:each) do
49
51
  @wfid = launch_test_process
@@ -83,12 +85,13 @@ describe "GET /_ruote/processes/X-Y" do
83
85
  last_response.status.should be(404)
84
86
 
85
87
  last_response.json_body.keys.should include("error")
86
- last_response.json_body['error'].should == { "code" => "404", "message" => "Resource not found" }
88
+ last_response.json_body['error'].should == { "code" => 404, "message" => "Resource not found" }
87
89
  end
88
90
  end
89
91
  end
90
92
 
91
- describe "GET /_ruote/processes/new" do
93
+ describe "GET /_ruote/processes/new", :type => :with_engine do
94
+
92
95
  it "should return a launch form" do
93
96
  get "/_ruote/processes/new"
94
97
 
@@ -96,7 +99,8 @@ describe "GET /_ruote/processes/new" do
96
99
  end
97
100
  end
98
101
 
99
- describe "POST /_ruote/processes" do
102
+ describe "POST /_ruote/processes", :type => :with_engine do
103
+
100
104
  before(:each) do
101
105
  engine.processes.should be_empty
102
106
  end
@@ -147,8 +151,7 @@ describe "POST /_ruote/processes" do
147
151
 
148
152
  post "/_ruote/processes", params
149
153
 
150
- last_response.should be_redirect
151
- last_response['Location'].should match( /^\/_ruote\/processes\/[0-9a-z\-]+$/ )
154
+ last_response.should be_ok
152
155
 
153
156
  sleep 0.4
154
157
 
@@ -165,8 +168,7 @@ describe "POST /_ruote/processes" do
165
168
 
166
169
  post '/_ruote/processes', params
167
170
 
168
- last_response.should be_redirect
169
- last_response['Location'].should match( /^\/_ruote\/processes\/([0-9a-z\-]+)$/ )
171
+ last_response.should be_ok
170
172
 
171
173
  sleep 0.5
172
174
 
@@ -183,15 +185,39 @@ describe "POST /_ruote/processes" do
183
185
 
184
186
  post '/_ruote/processes', params
185
187
 
186
- last_response.should be_redirect
188
+ last_response.should be_ok
187
189
 
188
190
  sleep 0.4
189
191
 
190
192
  engine.processes.should_not be_empty
191
193
  end
194
+
195
+ it "should return a 422 unprocessable entity error when launching a process fails (JSON)" do
196
+ params = { :definition => 'http://invalid.invalid' }
197
+
198
+ post '/_ruote/processes.json', params.to_json, { 'CONTENT_TYPE' => 'application/json' }
199
+
200
+ last_response.should_not be_ok
201
+ last_response.status.should be(422)
202
+
203
+ last_response.json_body.keys.should include("error")
204
+ end
205
+
206
+ it "should return a nice error page when launching a process fails (HTML)" do
207
+ params = { :process_definition => %q{http://invalid.invalid} }
208
+
209
+ post '/_ruote/processes', params
210
+
211
+ last_response.should_not be_ok
212
+ last_response.status.should be(422)
213
+
214
+ last_response.should match(/Process failed to launch/)
215
+ end
216
+
192
217
  end
193
218
 
194
- describe "DELETE /_ruote/processes/X-Y" do
219
+ describe "DELETE /_ruote/processes/X-Y", :type => :with_engine do
220
+
195
221
  before(:each) do
196
222
  @wfid = launch_test_process do
197
223
  Ruote.process_definition :name => 'test' do
@@ -1,6 +1,9 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "GET /_ruote/workitems" do
3
+ undef :context if defined?(context)
4
+
5
+ describe "GET /_ruote/workitems", :type => :with_engine do
6
+
4
7
  describe "without any workitems" do
5
8
  it "should report no workitems (HTML)" do
6
9
  get "/_ruote/workitems"
@@ -56,7 +59,8 @@ describe "GET /_ruote/workitems" do
56
59
  end
57
60
  end
58
61
 
59
- describe "GET /_ruote/workitems/wfid" do
62
+ describe "GET /_ruote/workitems/wfid", :type => :with_engine do
63
+
60
64
  describe "with workitems" do
61
65
  before(:each) do
62
66
  @wfid = launch_test_process do
@@ -109,7 +113,8 @@ describe "GET /_ruote/workitems/wfid" do
109
113
  end
110
114
  end
111
115
 
112
- describe "GET /_ruote/workitems/wfid/expid" do
116
+ describe "GET /_ruote/workitems/wfid/expid", :type => :with_engine do
117
+
113
118
  describe "with a workitem" do
114
119
  before(:each) do
115
120
  @wfid = launch_test_process do
@@ -156,7 +161,8 @@ describe "GET /_ruote/workitems/wfid/expid" do
156
161
  end
157
162
  end
158
163
 
159
- describe "PUT /_ruote/workitems/X-Y" do
164
+ describe "PUT /_ruote/workitems/X-Y", :type => :with_engine do
165
+
160
166
  before(:each) do
161
167
  @wfid = launch_test_process do
162
168
  Ruote.process_definition :name => 'foo' do
@@ -263,7 +269,8 @@ describe "PUT /_ruote/workitems/X-Y" do
263
269
  end
264
270
  end
265
271
 
266
- describe "Filtering workitems" do
272
+ describe "Filtering workitems", :type => :with_engine do
273
+
267
274
  describe "on participants" do
268
275
  before(:each) do
269
276
  @wfid = launch_test_process do
@@ -0,0 +1,100 @@
1
+
2
+ require File.join(File.dirname(__FILE__), 'spec_helper.rb')
3
+
4
+ undef :context if defined?(context)
5
+
6
+ class MyCustomStorage
7
+ attr_reader :opts
8
+ def initialize (opts)
9
+ @opts = opts
10
+ end
11
+ end
12
+
13
+ class MyParticipant
14
+ end
15
+
16
+ describe RuoteKit do
17
+
18
+ describe 'configure' do
19
+
20
+ before(:each) do
21
+ # nothing
22
+ end
23
+
24
+ it 'should default to :transient' do
25
+
26
+ RuoteKit.configuration.mode.should == :transient
27
+ end
28
+ end
29
+
30
+ describe 'configure with a custom storage' do
31
+
32
+ before(:each) do
33
+
34
+ RuoteKit.configure do |conf|
35
+ #require 'path/to/my_custom_storage'
36
+ conf.set_storage( MyCustomStorage, :a => 'A', :b => 'B' )
37
+ conf.run_engine = false
38
+ end
39
+ end
40
+
41
+ after(:each) do
42
+ RuoteKit.reset_configuration!
43
+ end
44
+
45
+ it 'should advertise mode as :custom' do
46
+
47
+ RuoteKit.configuration.mode.should == :custom
48
+ end
49
+
50
+ it 'should return an instance of the customer storage' do
51
+
52
+ si = RuoteKit.configuration.storage_instance
53
+
54
+ si.class.should == MyCustomStorage
55
+ si.opts.should == { :a => 'A', :b => 'B' }
56
+ end
57
+ end
58
+
59
+ describe 'register participants' do
60
+
61
+ require 'ruote/participant'
62
+
63
+ describe 'custom participant' do
64
+ RuoteKit.configure do |conf|
65
+ conf.register do
66
+ participant 'al', MyParticipant
67
+ end
68
+ end
69
+
70
+ RuoteKit.engine.context.plist.names.should == ['^al$']
71
+ end
72
+
73
+ describe 'catchall participant' do
74
+ RuoteKit.configure do |conf|
75
+ conf.register do
76
+ catchall MyParticipant
77
+ end
78
+ end
79
+
80
+ RuoteKit.engine.context.plist.names.should == [ '^.+$' ]
81
+ end
82
+
83
+ describe 'catchall participant without any options' do
84
+ require 'ruote/part/storage_participant'
85
+
86
+ RuoteKit.configure do |conf|
87
+ conf.register do
88
+ catchall
89
+ end
90
+ end
91
+
92
+ RuoteKit.engine.context.plist.lookup('.+').instance_of?(Ruote::StorageParticipant).should == true
93
+ end
94
+
95
+ after do
96
+ RuoteKit.reset_configuration!
97
+ end
98
+ end
99
+ end
100
+
data/spec/spec_helper.rb CHANGED
@@ -18,11 +18,12 @@ Test::Unit::TestCase.send :include, Rack::Test::Methods
18
18
  require File.dirname(__FILE__) + '/../vendor/gems/environment' if File.exists?( File.dirname(__FILE__) + '/../vendor/gems/environment.rb' )
19
19
  require File.dirname(__FILE__) + '/../lib/ruote-kit'
20
20
 
21
+ require 'ruote/part/storage_participant'
22
+
21
23
  RuoteKit.configure do |config|
22
24
 
23
25
  # In memory is perfect for tests
24
26
  config.mode = :transient
25
-
26
27
  end
27
28
 
28
29
  require 'ruote-kit/spec/ruote_helpers'
@@ -42,13 +43,12 @@ Spec::Runner.configure do |config|
42
43
  config.include Webrat::Matchers, :type => :views
43
44
  config.include RuoteKit::Spec::RuoteHelpers
44
45
 
45
- RuoteKit::Application.included_modules.each do |klass|
46
- if klass.name =~ /RuoteKit::Helpers::\w+Helpers/
47
- config.include klass
46
+ config.before(:each, :type => :with_engine) do
47
+ RuoteKit.configure do |conf|
48
+ conf.register do
49
+ catchall Ruote::StorageParticipant
50
+ end
48
51
  end
49
- end
50
-
51
- config.before(:each) do
52
52
  RuoteKit.run_engine!
53
53
 
54
54
  @tracer = Tracer.new
@@ -61,17 +61,23 @@ Spec::Runner.configure do |config|
61
61
  end
62
62
 
63
63
  # Purge the engine after every run
64
- config.after(:each) do
64
+ config.after(:each, :type => :with_engine) do
65
65
  @_spec_worker.shutdown
66
66
 
67
67
  # Seems in some rubies this block gets called multiple times
68
68
  unless RuoteKit.engine.nil?
69
- RuoteKit.engine.context.plist.lookup('.*').purge!
69
+ RuoteKit.storage_participant.purge!
70
70
  RuoteKit.engine.storage.purge! unless RuoteKit.engine.storage.nil?
71
71
 
72
72
  RuoteKit.shutdown_engine( true )
73
73
  end
74
74
  end
75
+
76
+ RuoteKit::Application.included_modules.each do |klass|
77
+ if klass.name =~ /RuoteKit::Helpers::\w+Helpers/
78
+ config.include klass
79
+ end
80
+ end
75
81
  end
76
82
 
77
83
  def app
@@ -0,0 +1,31 @@
1
+ require File.dirname(__FILE__) + '/../spec_helper'
2
+
3
+
4
+ undef :context if defined?(context)
5
+
6
+
7
+ describe "expressions.html.haml", :type => :with_engine do
8
+
9
+ describe "without expressions" do
10
+ it "should be helpful" do
11
+ render "expressions.html.haml"
12
+
13
+ response.should match(/Expressions are atomic pieces of process instances/)
14
+ end
15
+ end
16
+
17
+ describe "with expressions" do
18
+ before(:each) do
19
+ @wfid = launch_test_process
20
+ @process = engine.process( @wfid )
21
+
22
+ assigns[:process] = @process
23
+
24
+ render 'expressions.html.haml'
25
+ end
26
+
27
+ it "should have the process id" do
28
+ response.should include(@wfid)
29
+ end
30
+ end
31
+ end
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "launch_process.html.haml" do
3
+ describe "launch_process.html.haml", :type => :with_engine do
4
+
4
5
  it "should have a process definition field" do
5
6
  render 'launch_process.html.haml'
6
7
 
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "process.html.haml" do
3
+ describe "process.html.haml", :type => :with_engine do
4
+
4
5
  before(:each) do
5
6
  @wfid = launch_test_process
6
7
  @process = engine.process( @wfid )
@@ -0,0 +1,16 @@
1
+ require File.dirname(__FILE__) + '/../spec_helper'
2
+
3
+ describe "process_launched.html.haml", :type => :with_engine do
4
+
5
+ before(:each) do
6
+ @wfid = launch_test_process
7
+
8
+ assigns[:wfid] = @wfid
9
+
10
+ render 'process_launched.html.haml'
11
+ end
12
+
13
+ it "should have the process id" do
14
+ response.should include(@wfid)
15
+ end
16
+ end
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "processes.html.haml" do
3
+ describe "processes.html.haml", :type => :with_engine do
4
+
4
5
  describe "without processes" do
5
6
  before(:each) do
6
7
  assigns[:processes] = []
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe "workitems.html.haml" do
3
+ describe "workitems.html.haml", :type => :with_engine do
4
+
4
5
  describe "rendering no workitems" do
5
6
  before(:each) do
6
7
  assigns[:workitems] = []
@@ -18,7 +19,7 @@ describe "workitems.html.haml" do
18
19
  @wfid1 = launch_test_process
19
20
  @wfid2 = launch_test_process
20
21
 
21
- assigns[:workitems] = store_participant.all
22
+ assigns[:workitems] = storage_participant.all
22
23
 
23
24
  render 'workitems.html.haml'
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruote-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4.1
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kenneth.kalmer@gmail.com
@@ -9,9 +9,19 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-12 00:00:00 +02:00
12
+ date: 2010-03-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.9.5
24
+ version:
15
25
  - !ruby/object:Gem::Dependency
16
26
  name: sinatra
17
27
  type: :runtime
@@ -22,6 +32,16 @@ dependencies:
22
32
  - !ruby/object:Gem::Version
23
33
  version: 0.9.4
24
34
  version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: sinatra-respond_to
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.4.0
44
+ version:
25
45
  - !ruby/object:Gem::Dependency
26
46
  name: haml
27
47
  type: :runtime
@@ -48,9 +68,19 @@ dependencies:
48
68
  version_requirement:
49
69
  version_requirements: !ruby/object:Gem::Requirement
50
70
  requirements:
51
- - - "="
71
+ - - ">="
52
72
  - !ruby/object:Gem::Version
53
- version: 2.1.4
73
+ version: 2.1.7
74
+ version:
75
+ - !ruby/object:Gem::Dependency
76
+ name: rake
77
+ type: :development
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
54
84
  version:
55
85
  - !ruby/object:Gem::Dependency
56
86
  name: rspec
@@ -62,6 +92,16 @@ dependencies:
62
92
  - !ruby/object:Gem::Version
63
93
  version: "0"
64
94
  version:
95
+ - !ruby/object:Gem::Dependency
96
+ name: jeweler
97
+ type: :development
98
+ version_requirement:
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: "0"
104
+ version:
65
105
  description: ruote-kit is a RESTful Rack app for the ruote workflow engine
66
106
  email: kenneth.kalmer@gmail.com
67
107
  executables: []
@@ -104,28 +144,15 @@ files:
104
144
  - lib/ruote-kit/resources/processes.rb
105
145
  - lib/ruote-kit/resources/workitems.rb
106
146
  - lib/ruote-kit/spec/ruote_helpers.rb
107
- - lib/ruote-kit/vendor/sinatra-respond_to/LICENSE
108
- - lib/ruote-kit/vendor/sinatra-respond_to/README.markdown
109
- - lib/ruote-kit/vendor/sinatra-respond_to/Rakefile
110
- - lib/ruote-kit/vendor/sinatra-respond_to/VERSION.yml
111
- - lib/ruote-kit/vendor/sinatra-respond_to/lib/sinatra/respond_to.rb
112
- - lib/ruote-kit/vendor/sinatra-respond_to/sinatra-respond_to.gemspec
113
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/public/static folder/.keep
114
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/public/static.txt
115
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/test_app.rb
116
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/unreachable_static.txt
117
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/layout.html.haml
118
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.html.haml
119
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.js.erb
120
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/app/views/resource.xml.builder
121
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/extension_spec.rb
122
- - lib/ruote-kit/vendor/sinatra-respond_to/spec/spec_helper.rb
147
+ - lib/ruote-kit/version.rb
123
148
  - lib/ruote-kit/views/expression.html.haml
124
149
  - lib/ruote-kit/views/expressions.html.haml
125
150
  - lib/ruote-kit/views/index.html.haml
126
151
  - lib/ruote-kit/views/launch_process.html.haml
127
152
  - lib/ruote-kit/views/layout.html.haml
128
153
  - lib/ruote-kit/views/process.html.haml
154
+ - lib/ruote-kit/views/process_failed_to_launch.html.haml
155
+ - lib/ruote-kit/views/process_launched.html.haml
129
156
  - lib/ruote-kit/views/processes.html.haml
130
157
  - lib/ruote-kit/views/resource_not_found.html.haml
131
158
  - lib/ruote-kit/views/workitem.html.haml
@@ -136,11 +163,14 @@ files:
136
163
  - spec/resources/index_spec.rb
137
164
  - spec/resources/processes_spec.rb
138
165
  - spec/resources/workitems_spec.rb
166
+ - spec/ruote-kit_configure_spec.rb
139
167
  - spec/ruote-kit_spec.rb
140
168
  - spec/spec.opts
141
169
  - spec/spec_helper.rb
170
+ - spec/views/expressions.html.haml_spec.rb
142
171
  - spec/views/launch_process.html.haml_spec.rb
143
172
  - spec/views/process.html.haml_spec.rb
173
+ - spec/views/process_launched.html.haml_spec.rb
144
174
  - spec/views/processes.html.haml_spec.rb
145
175
  - spec/views/workitems.html.haml_spec.rb
146
176
  has_rdoc: true
@@ -172,14 +202,17 @@ signing_key:
172
202
  specification_version: 3
173
203
  summary: ruote workflow engine, wrapped in a loving rack embrace
174
204
  test_files:
175
- - spec/helpers/render_helpers_spec.rb
176
205
  - spec/resources/expressions_spec.rb
206
+ - spec/resources/workitems_spec.rb
177
207
  - spec/resources/index_spec.rb
178
208
  - spec/resources/processes_spec.rb
179
- - spec/resources/workitems_spec.rb
209
+ - spec/ruote-kit_configure_spec.rb
180
210
  - spec/ruote-kit_spec.rb
181
- - spec/spec_helper.rb
211
+ - spec/helpers/render_helpers_spec.rb
212
+ - spec/views/workitems.html.haml_spec.rb
213
+ - spec/views/process_launched.html.haml_spec.rb
182
214
  - spec/views/launch_process.html.haml_spec.rb
183
- - spec/views/process.html.haml_spec.rb
215
+ - spec/views/expressions.html.haml_spec.rb
184
216
  - spec/views/processes.html.haml_spec.rb
185
- - spec/views/workitems.html.haml_spec.rb
217
+ - spec/views/process.html.haml_spec.rb
218
+ - spec/spec_helper.rb
@@ -1,21 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (c) 2009 Chris Hoffman
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.