garbageman 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/garbageman.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "garbageman"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
12
- s.date = "2013-06-10"
12
+ s.date = "2013-06-11"
13
13
  s.description = "Disable GC while processing requests. By using nginx upstream health checks to garbage collect when no one is there."
14
14
  s.email = "doug@sessionm.com"
15
15
  s.extra_rdoc_files = [
@@ -11,6 +11,7 @@ module GarbageMan
11
11
  reset
12
12
  end
13
13
 
14
+ # for use with rack-fiber_pool
14
15
  def register_fiber_pool(pool)
15
16
  @fiber_poll = pool
16
17
  end
@@ -142,8 +143,7 @@ module GarbageMan
142
143
  def num_running_servers
143
144
  count = 0
144
145
  Config.thin_config['servers'].times do |i|
145
- next if i == server_index
146
- count += 1 if File.exists?(socket_file(i))
146
+ count += 1 if i == server_index || File.exists?(socket_file(i))
147
147
  end
148
148
  count
149
149
  end
data/lib/garbageman.rb CHANGED
@@ -23,6 +23,6 @@ end
23
23
 
24
24
  require 'garbageman/config'
25
25
  require 'garbageman/ext/thin'
26
- require 'garbageman/ext/fiber_pool'
26
+ require 'garbageman/ext/fiber_pool' if defined?(FiberPool)
27
27
  require 'garbageman/rack/middleware'
28
28
  require 'garbageman/collector'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garbageman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -3173816017839592880
103
+ hash: 875704701779737275
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements: