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 CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugsnag"
8
- s.version = "1.0.6"
8
+ s.version = "1.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
@@ -3,14 +3,15 @@ require "multi_json"
3
3
 
4
4
  module Bugsnag
5
5
  class Notification
6
- DEFAULT_ENDPOINT = "http://api.bugsnag.com/notify"
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
- include HTTParty
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 #{self.endpoint} failed, #{e.inspect}")
32
+ Bugsnag.log("Notification to #{endpoint} failed, #{e.inspect}")
32
33
  end
33
34
  end
34
35
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- version: 1.0.6
9
+ - 7
10
+ version: 1.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith