exceptiontrap 1.0.0 → 1.0.1
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.
- data/README.md +2 -2
- data/lib/exceptiontrap/catcher.rb +0 -1
- data/lib/exceptiontrap/notifier.rb +0 -4
- data/lib/exceptiontrap/rack.rb +0 -1
- data/lib/exceptiontrap/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -25,7 +25,6 @@ module Exceptiontrap
|
|
25
25
|
|
26
26
|
# Sends the exception to exceptiontrap
|
27
27
|
def handle_with_exceptiontrap(exception)
|
28
|
-
# puts "DEBUG: Raised Exceptiontrap::Catcher::Exception"
|
29
28
|
data = Exceptiontrap::Data.rails2_data(exception, request, session, response)
|
30
29
|
Exceptiontrap::Notifier.notify(data)
|
31
30
|
end
|
@@ -2,16 +2,12 @@ module Exceptiontrap
|
|
2
2
|
class Notifier
|
3
3
|
class << self
|
4
4
|
def notify(data)
|
5
|
-
puts 'DEBUG: Notify Exception'
|
6
|
-
|
7
5
|
@data = data
|
8
6
|
serialized_data = { :problem => data }.to_json
|
9
7
|
send_problem(serialized_data) unless ignore_exception?
|
10
8
|
end
|
11
9
|
|
12
10
|
def send_problem(serialized_data)
|
13
|
-
puts 'DEBUG: Send Exception'
|
14
|
-
|
15
11
|
url = URI.parse((Config.use_ssl? ? 'https://' : 'http://') << NOTIFICATION_URL)
|
16
12
|
client = prepare_client(url)
|
17
13
|
|
data/lib/exceptiontrap/rack.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exceptiontrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Exception notifier. The Gem catches your applications exceptions and
|
15
15
|
sends those to the exceptiontrap webservice hosted at http://exceptiontrap.com
|