bugsnag 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bugsnag.gemspec +1 -1
- data/lib/bugsnag/notification.rb +4 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
data/bugsnag.gemspec
CHANGED
data/lib/bugsnag/notification.rb
CHANGED
@@ -3,14 +3,15 @@ require "multi_json"
|
|
3
3
|
|
4
4
|
module Bugsnag
|
5
5
|
class Notification
|
6
|
-
|
6
|
+
include HTTParty
|
7
7
|
|
8
8
|
NOTIFIER_NAME = "Ruby Bugsnag Notifier"
|
9
9
|
NOTIFIER_VERSION = Bugsnag::VERSION
|
10
10
|
NOTIFIER_URL = "http://www.bugsnag.com"
|
11
11
|
|
12
|
-
|
12
|
+
# HTTParty settings
|
13
13
|
headers "Content-Type" => "application/json"
|
14
|
+
default_timeout 5
|
14
15
|
|
15
16
|
# Basic notification attributes
|
16
17
|
attr_accessor :exception
|
@@ -28,7 +29,7 @@ module Bugsnag
|
|
28
29
|
begin
|
29
30
|
response = post(endpoint, {:body => payload_string})
|
30
31
|
rescue Exception => e
|
31
|
-
Bugsnag.log("Notification to #{
|
32
|
+
Bugsnag.log("Notification to #{endpoint} failed, #{e.inspect}")
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
metadata
CHANGED