loompa 0.0.1 → 0.0.2

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 (5) hide show
  1. data/Rakefile +1 -1
  2. data/lib/loompa.rb +2 -2
  3. data/loompa.gemspec +5 -5
  4. data/readme +8 -0
  5. metadata +5 -5
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('loompa', '0.0.1') do |p|
5
+ Echoe.new('loompa', '0.0.2') do |p|
6
6
  p.description = "Manage a fork pool"
7
7
  p.url = "http://github.com/pmamediagroup/loompa"
8
8
  p.author = "Tracey Eubanks"
data/lib/loompa.rb CHANGED
@@ -105,7 +105,7 @@ class Loompa
105
105
  end
106
106
  end
107
107
 
108
- attr_writer :on_child_start, :on_child_exit
108
+ attr_writer :on_child_start, :on_child_exit, :max_forks
109
109
  attr_accessor :max_servers, :handle_signal
110
110
 
111
111
  class << self
@@ -117,7 +117,7 @@ class Loompa
117
117
  @logger = log_meth
118
118
  end
119
119
  end
120
-
120
+
121
121
  def initialize(forks_to_run, port, log_method = DefaultLogger)
122
122
  @handle_signal = false
123
123
  @min_forks = 1
data/loompa.gemspec CHANGED
@@ -2,27 +2,27 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{loompa}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tracey Eubanks"]
9
- s.date = %q{2010-05-14}
9
+ s.date = %q{2010-06-30}
10
10
  s.description = %q{Manage a fork pool}
11
11
  s.email = %q{traceye@pmamediagroup.com}
12
12
  s.extra_rdoc_files = ["lib/loompa.rb"]
13
13
  s.files = ["Rakefile", "lib/loompa.rb", "readme", "Manifest", "loompa.gemspec"]
14
14
  s.homepage = %q{http://github.com/pmamediagroup/loompa}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Loompa", "--main", "readme"]
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Loompa", "--main", "README"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{loompa}
18
- s.rubygems_version = %q{1.3.5}
18
+ s.rubygems_version = %q{1.3.7}
19
19
  s.summary = %q{Manage a fork pool}
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
23
  s.specification_version = 3
24
24
 
25
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
26
  else
27
27
  end
28
28
  else
data/readme CHANGED
@@ -21,5 +21,13 @@ Thread.new do
21
21
  end
22
22
  end
23
23
 
24
+ If you have to change the number of max forks loompa should spawn, it can be done
25
+ loompa = Loompa.start(num_of_childs, Logger)
26
+ loompa.start do
27
+ loompa.max_forks = new_num_of_childs
28
+ sleep 10
29
+ ...do something...
30
+ end
31
+
24
32
  Have fun and enjoy :]
25
33
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loompa
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tracey Eubanks
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-14 00:00:00 -06:00
18
+ date: 2010-06-30 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -44,7 +44,7 @@ rdoc_options:
44
44
  - --title
45
45
  - Loompa
46
46
  - --main
47
- - readme
47
+ - README
48
48
  require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement