modern_times 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/modern_times/base/worker.rb +0 -1
- data/lib/modern_times/railsable.rb +3 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
gemspec.email = ['bradpardee@gmail.com', 'rubywmq@gmail.com']
|
12
12
|
gemspec.homepage = 'http://github.com/ClarityServices/modern_times'
|
13
13
|
gemspec.add_dependency 'jruby-hornetq', ['>= 0.3.2']
|
14
|
-
gemspec.add_dependency '
|
14
|
+
gemspec.add_dependency 'ClarityServices-jmxjr'
|
15
15
|
end
|
16
16
|
rescue LoadError
|
17
17
|
puts 'Jeweler not available. Install it with: gem install jeweler'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -4,7 +4,6 @@ module ModernTimes
|
|
4
4
|
attr_accessor :name, :index, :supervisor, :thread
|
5
5
|
|
6
6
|
def self.supervisor(klass, options={})
|
7
|
-
puts "calling supervisor with klass=#{klass.name} and class=#{self.name}"
|
8
7
|
# self.class_eval do
|
9
8
|
# define_method :create_supervisor do |manager|
|
10
9
|
# puts "calling create_supervisor for klass-#{klass.name} and self=#{self} and manager=#{manager}"
|
@@ -13,13 +13,14 @@ module ModernTimes
|
|
13
13
|
|
14
14
|
# Handle messages within this process
|
15
15
|
@manager = ModernTimes::Manager.new
|
16
|
+
# TODO: Formatting of configured workers in invm state with name and options
|
16
17
|
if worker_cfg = cfg[:workers]
|
17
18
|
worker_cfg.each do |klass, count|
|
18
|
-
@manager.add(klass, count)
|
19
|
+
@manager.add(klass, count, {})
|
19
20
|
end
|
20
21
|
else
|
21
22
|
rails_workers.each do |klass|
|
22
|
-
@manager.add(klass, 1)
|
23
|
+
@manager.add(klass, 1, {})
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: modern_times
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brad Pardee
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
type: :runtime
|
27
27
|
version_requirements: *id001
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: ClarityServices-jmxjr
|
30
30
|
prerelease: false
|
31
31
|
requirement: &id002 !ruby/object:Gem::Requirement
|
32
32
|
none: false
|