garbageman 0.2.3 → 0.2.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
- ZWI2MjdiMzYwOGU4M2I0YjZlZmVhMTA2ZjIzMTZjYjg4NTJiY2I0Zg==
4
+ NDI0OGY5NzRjM2JmMDBmMjQ4YjBjY2ZjYzgwYzFhNWI0M2QxZTlmMQ==
5
5
  data.tar.gz: !binary |-
6
- OWE1MzJhYjRhZmFjZGM1ZTgyYjg1NDZhMWI2NDExY2RmN2Y5MWRiMw==
6
+ MTdmNGJiYThhYTIwYjUwYWFiM2I3ODQxZGQ5MzgzMjVmNDQ4NzFiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjlkOTRkZDI3NDMzZDA4OWFkZmQ4YjA0NmU0NzdhMzU5YzQxYTViZWQ3YzU1
10
- ZGUyNWMwZDMwMjc3NTMwZTEzNzM5ODBkZThhOTE3MWEwOGE5YzQ0NWY2NzJk
11
- NzBjMmMwOGMwMWRhNzUxZWI0MTU3OGQ0MWUyNGUyMGU5YzU0Yjk=
9
+ NDMzNjNjZDgwYTU2ZTRjYzFiYjFiOGE3ODQyNDcyOWE0YWJkYjI5YmIxMTkw
10
+ MDQ1MmQ3YmMzMThjOTY3YWVhOTdhNTVlYTlkMWU5N2JiODE0MmIwZmQ0ZDIw
11
+ NjUwMTc2MWZjZTJmYmU3NjYxN2U2Y2Q0MWU2NjhjY2VmMTI3MTY=
12
12
  data.tar.gz: !binary |-
13
- MGViZTE1MzUwZjg5YWM0Yzg0ZGQxYzUxYTM4NGMwNWRkZDQzMTRlZjZiY2E0
14
- NGRlMGQ5N2UyYzkwZmFjZGNjMjkxOWRlNTU0YTViNmE0YmRlZTY5ZDQ1NzM0
15
- ODJlOGJmMDc4Mjc3M2QyMDk0YmY5YjhkZDI0OWFlYTI2OTAxNzk=
13
+ YTY1YWFhZTE2ZDRmNTdhMjRlZGFmZmY2ZjIwOTY0MGEzMmM1OTE5NTJlMjBj
14
+ ZDlkZjNiZTc2YTY4YTQ1NDQ4YjJkMjk5ZWY4ZWJiMmUyYzhiMjZmZGRiODg1
15
+ MWM4NmQ5YTkzNWI2M2FhYjQzMzNkOGM4ZTAxNzM3YjNlZWJkYmU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
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.3"
8
+ s.version = "0.2.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"]
@@ -17,7 +17,7 @@ module GarbageMan
17
17
  module Messages
18
18
  CAN_NOT_DISABLE_GC = "can not disable gc"
19
19
  QUEUING_REQUESTS = "queuing request, enabling gc"
20
- WAITED_TOO_LONG = "waited too long to gc"
20
+ WAITED_TOO_LONG = "waited %.2f seconds to gc"
21
21
  DISABLE_GC = "disabling gc"
22
22
  CANT_TURN_OFF = "enabling gc, can not turn off"
23
23
  end
@@ -70,7 +70,7 @@ module GarbageMan
70
70
  warn QUEUING_REQUESTS
71
71
  GC.enable
72
72
  elsif waited_too_long_to_gc?
73
- warn WAITED_TOO_LONG
73
+ warn (WAITED_TOO_LONG % (Time.now - @last_gc_finished_at))
74
74
  GC.enable
75
75
  end
76
76
 
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch