garbageman 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTZlNjU0MTY0YTBkN2RlMDBmNTdjZjdkODY5NjM3OGYwNTFmNTZmOQ==
4
+ NThlZTFhMzMzYzAxYjYzNjJiODE2NzAwMmEwOTk1YzMzYmI1OGQyZg==
5
5
  data.tar.gz: !binary |-
6
- ODE3Mzc0YTI1YzgyNzcyYjE2NmRjMDk1NTI3NjQzNGMzNzZkMmE0Mw==
6
+ Mjk1ZjdiNTYzYTljYzY2ZjI4ZjQwYzMwMTExNzNkODUxMGEwOGI2ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDU3OGNiMmM2Y2ZkZTE5NDNmMzhmOWM4NmJjMjY1ZmYxOGVmZDRkNjM2YzEx
10
- NDhjMWU5OGY5NzhiMTVmMmFlYmZhNjg1MDM1MzM0OTg0OTM1OWM5OTY1MjM5
11
- ZjJiZDY0MWFkYjEyNWU0MTAzZGUxNWY0ZGY5ODU5M2I2N2NiMmQ=
9
+ MWJhNjE5MjEwYWU3ZThmYWNkZGQwOTRlMWE2YTFkNTdjMDlkNjhmYjkwNWMx
10
+ ODIxZWQ3NGQ2NWFkNDQ2YTI0ZDZkNTMzMmVhOThhZTA0NWE0YTg0NjY4ZTli
11
+ NzU4OWVjMjhkMGVhMTZjYTNkMTBlMTk3OWZkODJlZDNjMWU0Yzk=
12
12
  data.tar.gz: !binary |-
13
- ZjkwNzcyYzZkYjZjNTE2NTNhNDVlMDA5N2U3MjU3YjAwYmY4MWI1NzljOWQ3
14
- Mjc5ZTM0NzY1MTA2MDE3MzI4NzBmYzc5YjdiZjQwNDE0NjAwZjM5OTZlODcw
15
- MjBjNzIzZDRmMzk1MjZjYTQ0YWMwNTI2YjEyYzhjZGM1NmE2NWU=
13
+ OWE4MDExYWIzZGQ4YjIzMGJiMmJkMDkxMGU3NGY3NDU3OTRmZmQ5OTc3MDFi
14
+ YzRmOGI4NDU3YmM4NzZlYzJjOWVmNmM2MTE3NjYxNDAzMjMyODYwYzkzZTRi
15
+ OTZjOTMzZTA3NTcxYzU3ODBmYWUzMzM1ZTM5OGJmZjgyZWMxN2U=
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ garbageman
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p327
data/garbageman.gemspec CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "garbageman"
9
- s.version = "0.3.3"
9
+ s.version = "0.3.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".rvmrc",
23
+ ".ruby-version",
24
+ ".ruby-gemset",
24
25
  "Gemfile",
25
26
  "Gemfile.lock",
26
27
  "LICENSE.txt",
@@ -178,7 +178,15 @@ module GarbageMan
178
178
 
179
179
  WRITE_MOVE_OPTIONS = {:force => true}
180
180
  def write_gc_yaml(index, status)
181
- config = {'gc' => {'server' => index, 'status' => status}}
181
+ config = {'gc' => {
182
+ 'server' => index,
183
+ 'status' => status,
184
+ 'request_count' => @request_count,
185
+ 'will_collect' => @will_collect,
186
+ 'will_select_next_server' => @will_select_next_server,
187
+ 'selected_to_collect_at' => @selected_to_collect_at.to_s
188
+ }
189
+ }
182
190
  File.open(Config.gc_yaml_tmp_file, 'w') { |f| f.write config.to_yaml }
183
191
  # atomic write
184
192
  FileUtils.mv Config.gc_yaml_tmp_file, Config.gc_yaml_file, WRITE_MOVE_OPTIONS
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
@@ -62,7 +62,8 @@ extra_rdoc_files:
62
62
  - README.rdoc
63
63
  files:
64
64
  - .document
65
- - .rvmrc
65
+ - .ruby-gemset
66
+ - .ruby-version
66
67
  - Gemfile
67
68
  - Gemfile.lock
68
69
  - LICENSE.txt
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  requirements: []
102
103
  rubyforge_project:
103
- rubygems_version: 2.4.6
104
+ rubygems_version: 2.4.8
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: Process requests without garbage collection
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3-p327@garbageman