garbageman 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fbf325bf40e39694856f90be6dcdc43755756dd9
4
- data.tar.gz: a758778453e7060326a44ee0a091c15d1c8bc96c
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjkwMDg1MjVjODdjZWYyOWE3M2M1ZTRmMTBlYjA0YTk3NmY3NDJhZA==
5
+ data.tar.gz: !binary |-
6
+ YzAxNTNhNjBkNDQ0NDdmYjg1NDNiYTVlYTM0NjZiZTFkMjZkYTJkMA==
5
7
  SHA512:
6
- metadata.gz: 054193948510d3902b19dc48ec702aa3cc7e34ae04340a6db2d9d702bfa6c744ee908239ce6c7e49dc36479171125d4de6072106d8534a8bc643bfa0c4dbbb21
7
- data.tar.gz: 5487c105bccd450fd7bca2457f83130d51f7ff987ce2c3fff4e51a7ad39539247f97eae942f962c8d13f552bd2514cb4ae806debed149bd475e59eae0d0c44cc
8
+ metadata.gz: !binary |-
9
+ Y2M4NDIzMjRiNTlhYThlZWEzYjBjNjFjYmEzYWE5MTEzY2UwMmE5Y2RkMDg2
10
+ MmYxZDA0YTA0Mzg3MTJhZTZlZWY3YTczMDUxMzFlMDJkMzQ4NmU2MWNmNjQ4
11
+ M2E2OWE1OThmMjkzNDQ0ODA2Yjk1MTk4YjM0YjY1ODBmMTg5MmQ=
12
+ data.tar.gz: !binary |-
13
+ ZmYwMjI1OWIyYWMzMWY4NDUyZjAzMzlhNjVlMWUzY2M1YWY2NTcwOWI5NDdj
14
+ OWU3NmYxNmJiOWVkMzBmN2QxNzA4YWJhNTBmYjA4MjEzYjdiZjkyMTFiNThi
15
+ NDRhMDM5NjliN2IzNzI5NGJhY2YyMDcyZGQ0MmUzM2I5YjMyMTY=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/garbageman.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "garbageman"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
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"]
@@ -41,7 +41,7 @@ module GarbageMan
41
41
 
42
42
  def healthy?
43
43
  unless can_disable?
44
- debug CAN_NOT_DISABLE_GC
44
+ warn CAN_NOT_DISABLE_GC
45
45
  GC.enable
46
46
  return true
47
47
  end
@@ -67,10 +67,10 @@ module GarbageMan
67
67
  def collect
68
68
  # if we are starting to queue requests turn on gc, we could be in trouble
69
69
  if Config.check_request_queue? && queuing?
70
- debug QUEUING_REQUESTS
70
+ warn QUEUING_REQUESTS
71
71
  GC.enable
72
72
  elsif waited_too_long_to_gc?
73
- debug WAITED_TOO_LONG
73
+ warn WAITED_TOO_LONG
74
74
  GC.enable
75
75
  end
76
76
 
@@ -96,7 +96,7 @@ module GarbageMan
96
96
  debug DISABLE_GC
97
97
  GC.disable
98
98
  else
99
- debug CANT_TURN_OFF
99
+ warn CANT_TURN_OFF
100
100
  GC.enable
101
101
  end
102
102
  end
@@ -117,6 +117,10 @@ module GarbageMan
117
117
  logger.info msg
118
118
  end
119
119
 
120
+ def warn(msg)
121
+ logger.warn msg
122
+ end
123
+
120
124
  def select_next_server
121
125
  return unless @will_select_next_server
122
126
  return unless @request_count >= Config.num_request_before_selecting_next_server
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: rdoc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jeweler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.8.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.8.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Disable GC while processing requests. By using nginx upstream health
@@ -61,8 +61,8 @@ extra_rdoc_files:
61
61
  - LICENSE.txt
62
62
  - README.rdoc
63
63
  files:
64
- - ".document"
65
- - ".rvmrc"
64
+ - .document
65
+ - .rvmrc
66
66
  - Gemfile
67
67
  - Gemfile.lock
68
68
  - LICENSE.txt
@@ -90,12 +90,12 @@ require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - ! '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">="
98
+ - - ! '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []