ruote-kit 2.1.11 → 2.2.0.3
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.
- data/CHANGELOG.txt +6 -1
- data/CREDITS.txt +23 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +44 -7
- data/Rakefile +78 -45
- data/TODO.txt +8 -0
- data/lib/ruote-kit/helpers/json_helpers.rb +1 -1
- data/lib/ruote-kit/helpers/misc_helpers.rb +1 -1
- data/lib/ruote-kit/helpers/render_helpers.rb +18 -1
- data/lib/ruote-kit/public/_ruote/stylesheets/ruote-fluo-editor.css +1 -1
- data/lib/ruote-kit/resources/expressions.rb +6 -0
- data/lib/ruote-kit/resources/participants.rb +3 -1
- data/lib/ruote-kit/resources/schedules.rb +1 -1
- data/lib/ruote-kit/resources/workitems.rb +4 -0
- data/lib/ruote-kit/version.rb +1 -1
- data/lib/ruote-kit/views/expression.html.haml +2 -2
- data/lib/ruote-kit/views/layout.html.haml +1 -1
- data/lib/ruote-kit/views/participants.html.haml +19 -18
- data/lib/ruote-kit.rb +13 -3
- data/ruote-kit.gemspec +34 -133
- data/spec/resources/errors_spec.rb +20 -8
- data/spec/resources/expressions_spec.rb +211 -45
- data/spec/resources/index_spec.rb +1 -5
- data/spec/resources/participants_spec.rb +26 -9
- data/spec/resources/processes_spec.rb +77 -41
- data/spec/resources/schedules_spec.rb +33 -9
- data/spec/resources/workitems_spec.rb +174 -83
- data/spec/spec_helper.rb +11 -56
- data/spec/support/engine_helper.rb +97 -0
- data/spec/support/rack_helper.rb +21 -0
- data/spec/support/render_helper.rb +16 -0
- data/spec/webapp_helpers_spec.rb +1 -0
- metadata +121 -121
- data/.document +0 -0
- data/.gitignore +0 -10
- data/Gemfile +0 -51
- data/config.ru +0 -60
- data/lib/ruote-kit/spec/ruote_helpers.rb +0 -56
- data/spec/it_has_an_engine.rb +0 -69
- data/spec/spec.opts +0 -1
metadata
CHANGED
@@ -1,169 +1,200 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruote-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 121
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
- 3
|
11
|
+
version: 2.2.0.3
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
|
-
-
|
14
|
+
- Kenneth Kalmer
|
14
15
|
- Torsten Schoenebaum
|
15
16
|
- John Mettraux
|
16
17
|
autorequire:
|
17
18
|
bindir: bin
|
18
19
|
cert_chain: []
|
19
20
|
|
20
|
-
date:
|
21
|
+
date: 2011-03-03 00:00:00 +09:00
|
21
22
|
default_executable:
|
22
23
|
dependencies:
|
23
24
|
- !ruby/object:Gem::Dependency
|
24
|
-
|
25
|
+
name: sinatra
|
26
|
+
prerelease: false
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
28
|
none: false
|
26
29
|
requirements:
|
27
|
-
- - "
|
30
|
+
- - "="
|
28
31
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
32
|
+
hash: 15
|
30
33
|
segments:
|
34
|
+
- 1
|
31
35
|
- 0
|
32
|
-
version: "0"
|
33
|
-
requirement: *id001
|
34
|
-
prerelease: false
|
36
|
+
version: "1.0"
|
35
37
|
type: :runtime
|
36
|
-
|
38
|
+
version_requirements: *id001
|
37
39
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
40
|
+
name: sinatra-respond_to
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
43
|
none: false
|
40
44
|
requirements:
|
41
|
-
- - "
|
45
|
+
- - "="
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
47
|
+
hash: 11
|
44
48
|
segments:
|
45
49
|
- 0
|
46
|
-
|
47
|
-
|
48
|
-
|
50
|
+
- 5
|
51
|
+
- 0
|
52
|
+
version: 0.5.0
|
49
53
|
type: :runtime
|
50
|
-
|
54
|
+
version_requirements: *id002
|
51
55
|
- !ruby/object:Gem::Dependency
|
52
|
-
|
56
|
+
name: haml
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
59
|
none: false
|
54
60
|
requirements:
|
55
|
-
- - "
|
61
|
+
- - "="
|
56
62
|
- !ruby/object:Gem::Version
|
57
|
-
hash:
|
63
|
+
hash: 53
|
58
64
|
segments:
|
65
|
+
- 3
|
59
66
|
- 0
|
60
|
-
|
61
|
-
|
62
|
-
prerelease: false
|
67
|
+
- 25
|
68
|
+
version: 3.0.25
|
63
69
|
type: :runtime
|
64
|
-
|
70
|
+
version_requirements: *id003
|
65
71
|
- !ruby/object:Gem::Dependency
|
66
|
-
|
72
|
+
name: rufus-json
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
75
|
none: false
|
68
76
|
requirements:
|
69
77
|
- - ">="
|
70
78
|
- !ruby/object:Gem::Version
|
71
|
-
hash:
|
79
|
+
hash: 29
|
72
80
|
segments:
|
73
81
|
- 0
|
74
|
-
|
75
|
-
|
76
|
-
|
82
|
+
- 2
|
83
|
+
- 5
|
84
|
+
version: 0.2.5
|
77
85
|
type: :runtime
|
78
|
-
|
86
|
+
version_requirements: *id004
|
79
87
|
- !ruby/object:Gem::Dependency
|
80
|
-
|
88
|
+
name: ruote
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
91
|
none: false
|
82
92
|
requirements:
|
83
93
|
- - ">="
|
84
94
|
- !ruby/object:Gem::Version
|
85
|
-
hash:
|
95
|
+
hash: 7
|
86
96
|
segments:
|
97
|
+
- 2
|
98
|
+
- 2
|
87
99
|
- 0
|
88
|
-
version:
|
89
|
-
requirement: *id005
|
90
|
-
prerelease: false
|
100
|
+
version: 2.2.0
|
91
101
|
type: :runtime
|
92
|
-
|
102
|
+
version_requirements: *id005
|
93
103
|
- !ruby/object:Gem::Dependency
|
94
|
-
|
104
|
+
name: rspec
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
95
107
|
none: false
|
96
108
|
requirements:
|
97
|
-
- - "
|
109
|
+
- - "="
|
98
110
|
- !ruby/object:Gem::Version
|
99
|
-
hash:
|
111
|
+
hash: 31
|
100
112
|
segments:
|
113
|
+
- 2
|
114
|
+
- 4
|
101
115
|
- 0
|
102
|
-
version:
|
103
|
-
|
104
|
-
|
105
|
-
type: :runtime
|
106
|
-
name: yajl-ruby
|
116
|
+
version: 2.4.0
|
117
|
+
type: :development
|
118
|
+
version_requirements: *id006
|
107
119
|
- !ruby/object:Gem::Dependency
|
108
|
-
|
120
|
+
name: rack-test
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
109
123
|
none: false
|
110
124
|
requirements:
|
111
|
-
- - "
|
125
|
+
- - "="
|
112
126
|
- !ruby/object:Gem::Version
|
113
|
-
hash:
|
127
|
+
hash: 5
|
114
128
|
segments:
|
115
129
|
- 0
|
116
|
-
- 2
|
117
130
|
- 5
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
name: rufus-json
|
131
|
+
- 7
|
132
|
+
version: 0.5.7
|
133
|
+
type: :development
|
134
|
+
version_requirements: *id007
|
123
135
|
- !ruby/object:Gem::Dependency
|
124
|
-
|
136
|
+
name: webrat
|
137
|
+
prerelease: false
|
138
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
125
139
|
none: false
|
126
140
|
requirements:
|
127
|
-
- -
|
141
|
+
- - "="
|
128
142
|
- !ruby/object:Gem::Version
|
129
|
-
hash:
|
143
|
+
hash: 5
|
130
144
|
segments:
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
version:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
145
|
+
- 0
|
146
|
+
- 7
|
147
|
+
- 3
|
148
|
+
version: 0.7.3
|
149
|
+
type: :development
|
150
|
+
version_requirements: *id008
|
151
|
+
description: |
|
152
|
+
|
153
|
+
ruote workflow engine, wrapped in a loving rack embrace
|
154
|
+
|
155
|
+
email:
|
156
|
+
- kenneth.kalmer@gmail.com
|
141
157
|
executables: []
|
142
158
|
|
143
159
|
extensions: []
|
144
160
|
|
145
|
-
extra_rdoc_files:
|
146
|
-
|
147
|
-
- LICENSE.txt
|
148
|
-
- README.rdoc
|
149
|
-
- TODO.txt
|
161
|
+
extra_rdoc_files: []
|
162
|
+
|
150
163
|
files:
|
151
|
-
- .document
|
152
|
-
- .gitignore
|
153
|
-
- CHANGELOG.txt
|
154
|
-
- Gemfile
|
155
|
-
- LICENSE.txt
|
156
|
-
- README.rdoc
|
157
164
|
- Rakefile
|
158
|
-
- TODO.txt
|
159
|
-
- config.ru
|
160
|
-
- lib/ruote-kit.rb
|
161
165
|
- lib/ruote-kit/application.rb
|
162
166
|
- lib/ruote-kit/helpers/json_helpers.rb
|
163
167
|
- lib/ruote-kit/helpers/link_helpers.rb
|
164
168
|
- lib/ruote-kit/helpers/misc_helpers.rb
|
165
169
|
- lib/ruote-kit/helpers/pagination_helpers.rb
|
166
170
|
- lib/ruote-kit/helpers/render_helpers.rb
|
171
|
+
- lib/ruote-kit/resources/errors.rb
|
172
|
+
- lib/ruote-kit/resources/expressions.rb
|
173
|
+
- lib/ruote-kit/resources/participants.rb
|
174
|
+
- lib/ruote-kit/resources/processes.rb
|
175
|
+
- lib/ruote-kit/resources/schedules.rb
|
176
|
+
- lib/ruote-kit/resources/workitems.rb
|
177
|
+
- lib/ruote-kit/version.rb
|
178
|
+
- lib/ruote-kit.rb
|
179
|
+
- spec/resources/errors_spec.rb
|
180
|
+
- spec/resources/expressions_spec.rb
|
181
|
+
- spec/resources/index_spec.rb
|
182
|
+
- spec/resources/participants_spec.rb
|
183
|
+
- spec/resources/processes_spec.rb
|
184
|
+
- spec/resources/schedules_spec.rb
|
185
|
+
- spec/resources/workitems_spec.rb
|
186
|
+
- spec/ruote-kit_configure_spec.rb
|
187
|
+
- spec/spec_helper.rb
|
188
|
+
- spec/support/engine_helper.rb
|
189
|
+
- spec/support/rack_helper.rb
|
190
|
+
- spec/support/render_helper.rb
|
191
|
+
- spec/webapp_helpers_spec.rb
|
192
|
+
- ruote-kit.gemspec
|
193
|
+
- CHANGELOG.txt
|
194
|
+
- CREDITS.txt
|
195
|
+
- LICENSE.txt
|
196
|
+
- TODO.txt
|
197
|
+
- README.rdoc
|
167
198
|
- lib/ruote-kit/public/_ruote/images/favicon.ico
|
168
199
|
- lib/ruote-kit/public/_ruote/images/ruote.png
|
169
200
|
- lib/ruote-kit/public/_ruote/images/ruote_buttons.png
|
@@ -174,14 +205,6 @@ files:
|
|
174
205
|
- lib/ruote-kit/public/_ruote/stylesheets/reset.css
|
175
206
|
- lib/ruote-kit/public/_ruote/stylesheets/rk.css
|
176
207
|
- lib/ruote-kit/public/_ruote/stylesheets/ruote-fluo-editor.css
|
177
|
-
- lib/ruote-kit/resources/errors.rb
|
178
|
-
- lib/ruote-kit/resources/expressions.rb
|
179
|
-
- lib/ruote-kit/resources/participants.rb
|
180
|
-
- lib/ruote-kit/resources/processes.rb
|
181
|
-
- lib/ruote-kit/resources/schedules.rb
|
182
|
-
- lib/ruote-kit/resources/workitems.rb
|
183
|
-
- lib/ruote-kit/spec/ruote_helpers.rb
|
184
|
-
- lib/ruote-kit/version.rb
|
185
208
|
- lib/ruote-kit/views/_pagination.html.haml
|
186
209
|
- lib/ruote-kit/views/_tree_editor.html.haml
|
187
210
|
- lib/ruote-kit/views/error.html.haml
|
@@ -199,26 +222,13 @@ files:
|
|
199
222
|
- lib/ruote-kit/views/schedules.html.haml
|
200
223
|
- lib/ruote-kit/views/workitem.html.haml
|
201
224
|
- lib/ruote-kit/views/workitems.html.haml
|
202
|
-
- ruote-kit.gemspec
|
203
|
-
- spec/it_has_an_engine.rb
|
204
|
-
- spec/resources/errors_spec.rb
|
205
|
-
- spec/resources/expressions_spec.rb
|
206
|
-
- spec/resources/index_spec.rb
|
207
|
-
- spec/resources/participants_spec.rb
|
208
|
-
- spec/resources/processes_spec.rb
|
209
|
-
- spec/resources/schedules_spec.rb
|
210
|
-
- spec/resources/workitems_spec.rb
|
211
|
-
- spec/ruote-kit_configure_spec.rb
|
212
|
-
- spec/spec.opts
|
213
|
-
- spec/spec_helper.rb
|
214
|
-
- spec/webapp_helpers_spec.rb
|
215
225
|
has_rdoc: true
|
216
226
|
homepage: http://github.com/tosch/ruote-kit
|
217
227
|
licenses: []
|
218
228
|
|
219
229
|
post_install_message:
|
220
|
-
rdoc_options:
|
221
|
-
|
230
|
+
rdoc_options: []
|
231
|
+
|
222
232
|
require_paths:
|
223
233
|
- lib
|
224
234
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -241,20 +251,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
251
|
version: "0"
|
242
252
|
requirements: []
|
243
253
|
|
244
|
-
rubyforge_project:
|
245
|
-
rubygems_version: 1.
|
254
|
+
rubyforge_project: ruote
|
255
|
+
rubygems_version: 1.5.0
|
246
256
|
signing_key:
|
247
257
|
specification_version: 3
|
248
258
|
summary: ruote workflow engine, wrapped in a loving rack embrace
|
249
|
-
test_files:
|
250
|
-
|
251
|
-
- spec/resources/participants_spec.rb
|
252
|
-
- spec/resources/index_spec.rb
|
253
|
-
- spec/resources/errors_spec.rb
|
254
|
-
- spec/resources/processes_spec.rb
|
255
|
-
- spec/resources/workitems_spec.rb
|
256
|
-
- spec/resources/schedules_spec.rb
|
257
|
-
- spec/resources/expressions_spec.rb
|
258
|
-
- spec/it_has_an_engine.rb
|
259
|
-
- spec/spec_helper.rb
|
260
|
-
- spec/ruote-kit_configure_spec.rb
|
259
|
+
test_files: []
|
260
|
+
|
data/.document
DELETED
File without changes
|
data/.gitignore
DELETED
data/Gemfile
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
|
2
|
-
# Dependencies for ruote-kit
|
3
|
-
|
4
|
-
source :gemcutter
|
5
|
-
|
6
|
-
# ruote-kit itself
|
7
|
-
|
8
|
-
gem 'bundler'
|
9
|
-
gem 'sinatra'
|
10
|
-
gem 'sinatra-respond_to'
|
11
|
-
gem 'haml'
|
12
|
-
|
13
|
-
# more servers
|
14
|
-
|
15
|
-
gem 'thin'
|
16
|
-
# for rackup -s thin
|
17
|
-
|
18
|
-
# json support
|
19
|
-
#
|
20
|
-
# you should choose one of the following three or add another backend supported
|
21
|
-
# by Rufus::Json (http://github.com/jmettraux/rufus-json/)
|
22
|
-
#
|
23
|
-
# gem 'json_pure' # safest all-around choice
|
24
|
-
# gem 'yajl-ruby' # the fastest, but using c code
|
25
|
-
# gem 'json' # not bad, but using c code and sometimes broken
|
26
|
-
# gem 'json-jruby' # for jruby
|
27
|
-
#
|
28
|
-
# needed, uses one of the above as backend
|
29
|
-
|
30
|
-
gem 'yajl-ruby', :require => 'yajl'
|
31
|
-
gem 'rufus-json', '>= 0.2.5'
|
32
|
-
|
33
|
-
# ruote
|
34
|
-
|
35
|
-
gem 'ruote', '~> 2.1.11'
|
36
|
-
#gem 'ruote', :git => 'git://github.com/jmettraux/ruote.git', :branch => 'ruote2.1'
|
37
|
-
#gem 'ruote', :path => '~/w/ruote/'
|
38
|
-
|
39
|
-
# Testing environment requirements
|
40
|
-
|
41
|
-
group :test do
|
42
|
-
gem 'rspec', :require => "spec"
|
43
|
-
gem 'rack-test'
|
44
|
-
gem 'webrat'
|
45
|
-
gem 'test-unit', '~> 1.2.3'
|
46
|
-
end
|
47
|
-
|
48
|
-
group :build do
|
49
|
-
gem 'jeweler'
|
50
|
-
end
|
51
|
-
|
data/config.ru
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
|
2
|
-
# bundler
|
3
|
-
|
4
|
-
begin
|
5
|
-
# try to require the preresolved locked set of gems.
|
6
|
-
require ::File.expand_path('.bundle/environment', __FILE__)
|
7
|
-
rescue LoadError
|
8
|
-
# fall back on doing an unlocked resolve at runtime.
|
9
|
-
require 'rubygems'
|
10
|
-
require 'bundler'
|
11
|
-
Bundler.setup(:default)
|
12
|
-
end
|
13
|
-
|
14
|
-
|
15
|
-
# json
|
16
|
-
#
|
17
|
-
# try yajl-ruby first, and json after that
|
18
|
-
|
19
|
-
begin
|
20
|
-
require 'yajl'
|
21
|
-
rescue LoadError
|
22
|
-
begin
|
23
|
-
require 'json'
|
24
|
-
rescue LoadError
|
25
|
-
puts 'Please specify "gem {yajl-ruby|json_pure|json}" in the Gemfile'
|
26
|
-
exit
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
require 'rufus-json'
|
31
|
-
|
32
|
-
|
33
|
-
# ruote-kit
|
34
|
-
|
35
|
-
$:.unshift 'lib'
|
36
|
-
require 'ruote-kit'
|
37
|
-
|
38
|
-
|
39
|
-
# ruote
|
40
|
-
|
41
|
-
require 'ruote/storage/fs_storage'
|
42
|
-
|
43
|
-
RuoteKit.engine = Ruote::Engine.new(
|
44
|
-
Ruote::Worker.new(
|
45
|
-
Ruote::FsStorage.new(
|
46
|
-
"ruote_work_#{RuoteKit.env}")))
|
47
|
-
|
48
|
-
RuoteKit.engine.register do
|
49
|
-
catchall
|
50
|
-
end
|
51
|
-
|
52
|
-
|
53
|
-
# rack middlewares, business as usual...
|
54
|
-
|
55
|
-
use Rack::CommonLogger
|
56
|
-
use Rack::Lint
|
57
|
-
use Rack::ShowExceptions
|
58
|
-
|
59
|
-
run RuoteKit::Application
|
60
|
-
|
@@ -1,56 +0,0 @@
|
|
1
|
-
|
2
|
-
# license is MIT, see LICENSE.txt
|
3
|
-
|
4
|
-
module RuoteKit
|
5
|
-
module Spec
|
6
|
-
|
7
|
-
module RuoteHelpers
|
8
|
-
|
9
|
-
# Launch a dummy process and return the wfid
|
10
|
-
#
|
11
|
-
def launch_test_process(&block)
|
12
|
-
|
13
|
-
pdef = if block_given?
|
14
|
-
yield
|
15
|
-
else
|
16
|
-
Ruote.process_definition :name => 'test' do
|
17
|
-
sequence do
|
18
|
-
nada
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
wfid = RuoteKit.engine.launch(pdef)
|
24
|
-
|
25
|
-
# give the engine some time to run the process
|
26
|
-
# (remember it does it asynchronously)
|
27
|
-
sleep(0.350)
|
28
|
-
|
29
|
-
wfid
|
30
|
-
end
|
31
|
-
|
32
|
-
def noisy(on = true)
|
33
|
-
RuoteKit.engine.noisy = on
|
34
|
-
end
|
35
|
-
|
36
|
-
def engine
|
37
|
-
RuoteKit.engine
|
38
|
-
end
|
39
|
-
|
40
|
-
def storage_participant
|
41
|
-
RuoteKit.engine.storage_participant
|
42
|
-
end
|
43
|
-
|
44
|
-
def find_workitem(wfid, expid)
|
45
|
-
RuoteKit.engine.storage_participant.by_wfid(wfid).first { |wi|
|
46
|
-
wi.fei.expid == expid
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
def wait_for(wfid)
|
51
|
-
RuoteKit.engine.wait_for(wfid)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
data/spec/it_has_an_engine.rb
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
|
2
|
-
class Tracer
|
3
|
-
def initialize
|
4
|
-
@trace = ''
|
5
|
-
end
|
6
|
-
def to_s
|
7
|
-
@trace.to_s.strip
|
8
|
-
end
|
9
|
-
def << s
|
10
|
-
@trace << s
|
11
|
-
end
|
12
|
-
def clear
|
13
|
-
@trace = ''
|
14
|
-
end
|
15
|
-
def puts s
|
16
|
-
@trace << "#{s}\n"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
shared_examples_for 'it has an engine' do
|
21
|
-
|
22
|
-
before(:each) do
|
23
|
-
|
24
|
-
RuoteKit.engine =
|
25
|
-
Ruote::Engine.new(
|
26
|
-
Ruote::Worker.new(
|
27
|
-
Ruote::HashStorage.new))
|
28
|
-
|
29
|
-
@tracer = Tracer.new
|
30
|
-
RuoteKit.engine.add_service('tracer', @tracer)
|
31
|
-
|
32
|
-
RuoteKit.engine.register do
|
33
|
-
catchall Ruote::StorageParticipant
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
after (:each) do
|
38
|
-
|
39
|
-
if RuoteKit.engine
|
40
|
-
RuoteKit.engine.shutdown
|
41
|
-
RuoteKit.engine.storage.purge!
|
42
|
-
RuoteKit.engine = nil
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
shared_examples_for 'it has an engine with no participants' do
|
48
|
-
|
49
|
-
before(:each) do
|
50
|
-
|
51
|
-
RuoteKit.engine =
|
52
|
-
Ruote::Engine.new(
|
53
|
-
Ruote::Worker.new(
|
54
|
-
Ruote::HashStorage.new))
|
55
|
-
|
56
|
-
@tracer = Tracer.new
|
57
|
-
RuoteKit.engine.add_service('tracer', @tracer)
|
58
|
-
end
|
59
|
-
|
60
|
-
after (:each) do
|
61
|
-
|
62
|
-
if RuoteKit.engine
|
63
|
-
RuoteKit.engine.shutdown
|
64
|
-
RuoteKit.engine.storage.purge!
|
65
|
-
RuoteKit.engine = nil
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|