logjam_agent 0.2.1 → 0.2.2

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.
@@ -60,7 +60,10 @@ module LogjamAgent
60
60
 
61
61
  @@exception_classes = []
62
62
  def self.auto_detect_exception(exception_class)
63
- @@exception_classes << exception_class.to_s
63
+ # but ignore Exception classes created with Class.new (timeout.rb, my old friend)
64
+ if (class_name = exception_class.to_s) =~ /^[\w:]+$/
65
+ @@exception_classes << class_name
66
+ end
64
67
  end
65
68
 
66
69
  @@exception_matcher = nil
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
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-09-23 00:00:00 +02:00
18
+ date: 2011-09-24 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency