logjam_agent 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,6 +84,7 @@ module LogjamAgent
84
84
  end
85
85
  end
86
86
 
87
+ #TODO: verify socket_timout for ruby 1.9
87
88
  def bunny
88
89
  @bunny ||=
89
90
  begin
@@ -16,6 +16,10 @@ module LogjamAgent
16
16
  @@forwarders.each_value {|f| f.reset}
17
17
  end
18
18
 
19
+ # properly close AMQP connections on program termination
20
+ # this avoids 'connection_closed_abruptly' in the rabbit logs
21
+ at_exit { reset }
22
+
19
23
  def inspect
20
24
  super + ": #{@@forwarders.inspect}"
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-25 00:00:00 Z
18
+ date: 2011-11-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake