garbageman 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/garbageman.gemspec +1 -1
- data/lib/garbageman/collector.rb +15 -15
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/garbageman.gemspec
CHANGED
data/lib/garbageman/collector.rb
CHANGED
@@ -96,21 +96,6 @@ module GarbageMan
|
|
96
96
|
logger.info msg
|
97
97
|
end
|
98
98
|
|
99
|
-
private
|
100
|
-
|
101
|
-
def server_index
|
102
|
-
Thin::Backends::Base.server_index
|
103
|
-
end
|
104
|
-
|
105
|
-
def num_servers
|
106
|
-
Config.thin_config['servers']
|
107
|
-
end
|
108
|
-
|
109
|
-
def write_gc_yaml(index, status)
|
110
|
-
config = {'gc' => {'server' => index, 'status' => status}}
|
111
|
-
File.open(Config.gc_yaml_file, 'w+') { |f| f.write config.to_yaml }
|
112
|
-
end
|
113
|
-
|
114
99
|
def select_next_server
|
115
100
|
return unless @will_select_next_server
|
116
101
|
@will_select_next_server = false
|
@@ -126,6 +111,21 @@ module GarbageMan
|
|
126
111
|
false
|
127
112
|
end
|
128
113
|
|
114
|
+
private
|
115
|
+
|
116
|
+
def server_index
|
117
|
+
Thin::Backends::Base.server_index
|
118
|
+
end
|
119
|
+
|
120
|
+
def num_servers
|
121
|
+
Config.thin_config['servers']
|
122
|
+
end
|
123
|
+
|
124
|
+
def write_gc_yaml(index, status)
|
125
|
+
config = {'gc' => {'server' => index, 'status' => status}}
|
126
|
+
File.open(Config.gc_yaml_file, 'w+') { |f| f.write config.to_yaml }
|
127
|
+
end
|
128
|
+
|
129
129
|
def reset
|
130
130
|
@request_count = 0
|
131
131
|
@will_collect = false
|
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.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
segments:
|
104
104
|
- 0
|
105
|
-
hash:
|
105
|
+
hash: 3623494067155397432
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|