bugsnag 1.2.4 → 1.2.5
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/VERSION +1 -1
- data/bugsnag.gemspec +2 -2
- data/lib/bugsnag.rb +1 -1
- data/lib/bugsnag/notification.rb +6 -2
- data/spec/spec_helper.rb +1 -0
- metadata +14 -14
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.5
|
data/bugsnag.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bugsnag"
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.5"
|
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"]
|
12
|
-
s.date = "2012-10-
|
12
|
+
s.date = "2012-10-18"
|
13
13
|
s.description = "Ruby notifier for bugsnag.com"
|
14
14
|
s.email = "james@bugsnag.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/bugsnag.rb
CHANGED
@@ -8,7 +8,7 @@ require "bugsnag/helpers"
|
|
8
8
|
require "bugsnag/rack"
|
9
9
|
require "bugsnag/railtie" if defined?(Rails::Railtie)
|
10
10
|
|
11
|
-
require "resque/failure/bugsnag" if defined?(Resque)
|
11
|
+
require "resque/failure/bugsnag" if defined?(::Resque::Job)
|
12
12
|
require "bugsnag/sidekiq" if defined?(Sidekiq)
|
13
13
|
|
14
14
|
module Bugsnag
|
data/lib/bugsnag/notification.rb
CHANGED
@@ -93,7 +93,7 @@ module Bugsnag
|
|
93
93
|
def deliver
|
94
94
|
return unless @configuration.should_notify?
|
95
95
|
|
96
|
-
# Check we have at least
|
96
|
+
# Check we have at least an api_key
|
97
97
|
if @configuration.api_key.nil?
|
98
98
|
Bugsnag.warn "No API key configured, couldn't notify"
|
99
99
|
return
|
@@ -101,7 +101,11 @@ module Bugsnag
|
|
101
101
|
Bugsnag.warn "Your API key (#{@configuration.api_key}) is not valid, couldn't notify"
|
102
102
|
return
|
103
103
|
end
|
104
|
-
|
104
|
+
|
105
|
+
# Warn if no release_stage is set
|
106
|
+
Bugsnag.warn "You should set your app's release_stage (see https://bugsnag.com/docs/notifiers/ruby#release_stage)." unless @configuration.release_stage
|
107
|
+
|
108
|
+
|
105
109
|
@meta_data = {}
|
106
110
|
|
107
111
|
# Run the middleware here, at the end of the middleware stack, execute the actual delivery
|
data/spec/spec_helper.rb
CHANGED
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 5
|
10
|
+
version: 1.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Smith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -28,10 +28,10 @@ dependencies:
|
|
28
28
|
- 1
|
29
29
|
- 0
|
30
30
|
version: "1.0"
|
31
|
+
version_requirements: *id001
|
32
|
+
name: multi_json
|
31
33
|
prerelease: false
|
32
34
|
type: :runtime
|
33
|
-
name: multi_json
|
34
|
-
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
37
|
none: false
|
@@ -50,10 +50,10 @@ dependencies:
|
|
50
50
|
- 0
|
51
51
|
- 5
|
52
52
|
version: "0.5"
|
53
|
+
version_requirements: *id002
|
54
|
+
name: httparty
|
53
55
|
prerelease: false
|
54
56
|
type: :runtime
|
55
|
-
name: httparty
|
56
|
-
version_requirements: *id002
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
59
|
none: false
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
- 11
|
67
67
|
- 0
|
68
68
|
version: 2.11.0
|
69
|
+
version_requirements: *id003
|
70
|
+
name: rspec
|
69
71
|
prerelease: false
|
70
72
|
type: :development
|
71
|
-
name: rspec
|
72
|
-
version_requirements: *id003
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
requirement: &id004 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
@@ -81,10 +81,10 @@ dependencies:
|
|
81
81
|
- 3
|
82
82
|
- 12
|
83
83
|
version: "3.12"
|
84
|
+
version_requirements: *id004
|
85
|
+
name: rdoc
|
84
86
|
prerelease: false
|
85
87
|
type: :development
|
86
|
-
name: rdoc
|
87
|
-
version_requirements: *id004
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
requirement: &id005 !ruby/object:Gem::Requirement
|
90
90
|
none: false
|
@@ -97,10 +97,10 @@ dependencies:
|
|
97
97
|
- 8
|
98
98
|
- 4
|
99
99
|
version: 1.8.4
|
100
|
+
version_requirements: *id005
|
101
|
+
name: jeweler
|
100
102
|
prerelease: false
|
101
103
|
type: :development
|
102
|
-
name: jeweler
|
103
|
-
version_requirements: *id005
|
104
104
|
description: Ruby notifier for bugsnag.com
|
105
105
|
email: james@bugsnag.com
|
106
106
|
executables: []
|