garbageman 0.1.13 → 0.1.14

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.13
1
+ 0.1.14
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.13"
8
+ s.version = "0.1.14"
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-11"
12
+ s.date = "2013-06-13"
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 = [
@@ -13,10 +13,11 @@ module GarbageMan
13
13
 
14
14
  include Status
15
15
 
16
- attr_accessor :request_count, :will_collect, :will_select_next_server
16
+ attr_accessor :request_count, :will_collect, :will_select_next_server, :show_gc_times
17
17
  attr_reader :fiber_poll
18
18
 
19
19
  def initialize
20
+ @show_gc_times = true
20
21
  reset
21
22
  end
22
23
 
@@ -66,7 +67,7 @@ module GarbageMan
66
67
  GC.enable
67
68
  GC.start
68
69
  diff = (Time.now - starts) * 1000
69
- info "GC took #{'%.2f' % diff}ms for #{@request_count} requests"
70
+ info "GC took #{'%.2f' % diff}ms for #{@request_count} requests" if @show_gc_times
70
71
  write_gc_yaml server_index, NEXT_SERVER
71
72
 
72
73
  reset
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.13
4
+ version: 0.1.14
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-11 00:00:00.000000000 Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 3526180185746134184
105
+ hash: 533476601492460822
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements: