ruote-kit 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/config.ru CHANGED
@@ -21,7 +21,7 @@ RuoteKit.configure do |config|
21
21
  # run a worker
22
22
  config.run_worker = true
23
23
 
24
- register do
24
+ config.register do
25
25
  # With this rackup I bundle as catchall, making it easy to experiment
26
26
  catchall
27
27
  end
@@ -6,6 +6,6 @@
6
6
 
7
7
  module RuoteKit
8
8
 
9
- VERSION = '2.1.7'
9
+ VERSION = '2.1.8'
10
10
  end
11
11
 
data/lib/ruote-kit.rb CHANGED
@@ -4,7 +4,7 @@ require 'ruote/part/storage_participant'
4
4
 
5
5
  module RuoteKit
6
6
 
7
- VERSION = '2.1.7'
7
+ VERSION = '2.1.8'
8
8
 
9
9
  autoload :Configuration, "ruote-kit/configuration"
10
10
  autoload :Application, "ruote-kit/application"
@@ -28,19 +28,13 @@ module RuoteKit
28
28
  end
29
29
 
30
30
  # Yields a RuoteKit::Configuration instance and then immediately starts
31
- # the engine (unless configuration prohibits it).
32
- def configure( &block )
33
- yield configuration
34
-
35
- run_engine!
36
- end
37
-
38
- # Configure and run the engine in a RESTful container
39
- def run!( &block )
40
- yield if block_given?
31
+ # the engine.
32
+ def configure
33
+ yield configuration if block_given?
41
34
 
42
35
  run_engine!
43
36
  end
37
+ alias run! configure
44
38
 
45
39
  def shutdown!( purge_engine = false )
46
40
  shutdown_engine( purge_engine )
@@ -62,13 +56,12 @@ module RuoteKit
62
56
  return unless configuration.run_engine
63
57
 
64
58
  storage = configuration.storage_instance
65
- self.engine = Ruote::Engine.new( storage )
59
+
60
+ self.engine = Ruote::Engine.new( configuration.run_worker ? self.worker = Ruote::Worker.new(storage) : storage )
66
61
 
67
62
  configuration.do_participant_registration
68
63
 
69
64
  @storage_participant = nil
70
-
71
- run_worker!( true ) if configuration.run_worker
72
65
  end
73
66
 
74
67
  # Run a single worker. By default this method will block indefinitely,
data/ruote-kit.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruote-kit}
8
- s.version = "2.1.7"
8
+ s.version = "2.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kenneth.kalmer@gmail.com"]
12
- s.date = %q{2010-03-10}
12
+ s.date = %q{2010-03-15}
13
13
  s.description = %q{ruote-kit is a RESTful Rack app for the ruote workflow engine}
14
14
  s.email = %q{kenneth.kalmer@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -82,7 +82,7 @@ Gem::Specification.new do |s|
82
82
  s.homepage = %q{http://github.com/kennethkalmer/ruote-kit}
83
83
  s.rdoc_options = ["--charset=UTF-8"]
84
84
  s.require_paths = ["lib"]
85
- s.rubygems_version = %q{1.3.5}
85
+ s.rubygems_version = %q{1.3.6}
86
86
  s.summary = %q{ruote workflow engine, wrapped in a loving rack embrace}
87
87
  s.test_files = [
88
88
  "spec/resources/expressions_spec.rb",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruote-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 1
8
+ - 8
9
+ version: 2.1.8
5
10
  platform: ruby
6
11
  authors:
7
12
  - kenneth.kalmer@gmail.com
@@ -9,99 +14,127 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-10 00:00:00 +01:00
17
+ date: 2010-03-15 00:00:00 +01:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: bundler
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 9
30
+ - 5
23
31
  version: 0.9.5
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: sinatra
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 9
44
+ - 4
33
45
  version: 0.9.4
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: sinatra-respond_to
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ - 4
58
+ - 0
43
59
  version: 0.4.0
44
- version:
60
+ type: :runtime
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: haml
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 2
71
+ - 2
72
+ - 5
53
73
  version: 2.2.5
54
- version:
74
+ type: :runtime
75
+ version_requirements: *id004
55
76
  - !ruby/object:Gem::Dependency
56
77
  name: json
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
60
80
  requirements:
61
81
  - - ">="
62
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
63
85
  version: "0"
64
- version:
86
+ type: :runtime
87
+ version_requirements: *id005
65
88
  - !ruby/object:Gem::Dependency
66
89
  name: ruote
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
90
+ prerelease: false
91
+ requirement: &id006 !ruby/object:Gem::Requirement
70
92
  requirements:
71
93
  - - ">="
72
94
  - !ruby/object:Gem::Version
95
+ segments:
96
+ - 2
97
+ - 1
98
+ - 7
73
99
  version: 2.1.7
74
- version:
100
+ type: :runtime
101
+ version_requirements: *id006
75
102
  - !ruby/object:Gem::Dependency
76
103
  name: rake
77
- type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
104
+ prerelease: false
105
+ requirement: &id007 !ruby/object:Gem::Requirement
80
106
  requirements:
81
107
  - - ">="
82
108
  - !ruby/object:Gem::Version
109
+ segments:
110
+ - 0
83
111
  version: "0"
84
- version:
112
+ type: :development
113
+ version_requirements: *id007
85
114
  - !ruby/object:Gem::Dependency
86
115
  name: rspec
87
- type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
116
+ prerelease: false
117
+ requirement: &id008 !ruby/object:Gem::Requirement
90
118
  requirements:
91
119
  - - ">="
92
120
  - !ruby/object:Gem::Version
121
+ segments:
122
+ - 0
93
123
  version: "0"
94
- version:
124
+ type: :development
125
+ version_requirements: *id008
95
126
  - !ruby/object:Gem::Dependency
96
127
  name: jeweler
97
- type: :development
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
128
+ prerelease: false
129
+ requirement: &id009 !ruby/object:Gem::Requirement
100
130
  requirements:
101
131
  - - ">="
102
132
  - !ruby/object:Gem::Version
133
+ segments:
134
+ - 0
103
135
  version: "0"
104
- version:
136
+ type: :development
137
+ version_requirements: *id009
105
138
  description: ruote-kit is a RESTful Rack app for the ruote workflow engine
106
139
  email: kenneth.kalmer@gmail.com
107
140
  executables: []
@@ -186,18 +219,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
219
  requirements:
187
220
  - - ">="
188
221
  - !ruby/object:Gem::Version
222
+ segments:
223
+ - 0
189
224
  version: "0"
190
- version:
191
225
  required_rubygems_version: !ruby/object:Gem::Requirement
192
226
  requirements:
193
227
  - - ">="
194
228
  - !ruby/object:Gem::Version
229
+ segments:
230
+ - 0
195
231
  version: "0"
196
- version:
197
232
  requirements: []
198
233
 
199
234
  rubyforge_project:
200
- rubygems_version: 1.3.5
235
+ rubygems_version: 1.3.6
201
236
  signing_key:
202
237
  specification_version: 3
203
238
  summary: ruote workflow engine, wrapped in a loving rack embrace