bugsnag 1.2.18 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +3 -4
- data/VERSION +1 -1
- data/bugsnag.gemspec +3 -2
- data/lib/bugsnag.rb +7 -1
- data/lib/bugsnag/configuration.rb +2 -2
- data/spec/notification_spec.rb +3 -1
- metadata +5 -4
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
system
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -189,10 +189,9 @@ apps it is automatically set to `RACK_ENV`. Otherwise the default is
|
|
189
189
|
|
190
190
|
###notify_release_stages
|
191
191
|
|
192
|
-
By default, we will
|
193
|
-
|
194
|
-
|
195
|
-
set `notify_release_stages`:
|
192
|
+
By default, we will notify Bugsnag of exceptions that happen in any
|
193
|
+
`release_stage`. If you would like to change which release stages
|
194
|
+
notify Bugsnag of exceptions you can set `notify_release_stages`:
|
196
195
|
|
197
196
|
```ruby
|
198
197
|
config.notify_release_stages = ["production", "development"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/bugsnag.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bugsnag}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
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 = %q{2013-
|
12
|
+
s.date = %q{2013-03-21}
|
13
13
|
s.description = %q{Ruby notifier for bugsnag.com}
|
14
14
|
s.email = %q{james@bugsnag.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
".ruby-version",
|
22
23
|
".travis.yml",
|
23
24
|
"CHANGELOG.md",
|
24
25
|
"Gemfile",
|
data/lib/bugsnag.rb
CHANGED
@@ -44,7 +44,13 @@ module Bugsnag
|
|
44
44
|
# Notify of an exception unless it should be ignored
|
45
45
|
def notify_or_ignore(exception, overrides=nil, request_data=nil)
|
46
46
|
notification = Notification.new(exception, configuration, overrides, request_data)
|
47
|
-
|
47
|
+
|
48
|
+
unless notification.ignore?
|
49
|
+
notification.deliver
|
50
|
+
notification
|
51
|
+
else
|
52
|
+
false
|
53
|
+
end
|
48
54
|
end
|
49
55
|
|
50
56
|
# Auto notify of an exception, called from rails and rack exception
|
@@ -38,7 +38,7 @@ module Bugsnag
|
|
38
38
|
def initialize
|
39
39
|
# Set up the defaults
|
40
40
|
self.release_stage = nil
|
41
|
-
self.notify_release_stages =
|
41
|
+
self.notify_release_stages = nil
|
42
42
|
self.auto_notify = true
|
43
43
|
self.use_ssl = false
|
44
44
|
self.params_filters = Set.new(DEFAULT_PARAMS_FILTERS)
|
@@ -55,7 +55,7 @@ module Bugsnag
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def should_notify?
|
58
|
-
@release_stage.nil? || @notify_release_stages.include?(@release_stage)
|
58
|
+
@release_stage.nil? || @notify_release_stages.nil? || @notify_release_stages.include?(@release_stage)
|
59
59
|
end
|
60
60
|
|
61
61
|
def request_data
|
data/spec/notification_spec.rb
CHANGED
@@ -256,7 +256,9 @@ describe Bugsnag::Notification do
|
|
256
256
|
it "should respect the notify_release_stages setting by not sending in development" do
|
257
257
|
Bugsnag::Notification.should_not_receive(:deliver_exception_payload)
|
258
258
|
|
259
|
+
Bugsnag.configuration.notify_release_stages = ["production"]
|
259
260
|
Bugsnag.configuration.release_stage = "development"
|
261
|
+
|
260
262
|
Bugsnag.notify(BugsnagTestException.new("It crashed"))
|
261
263
|
end
|
262
264
|
|
@@ -266,7 +268,7 @@ describe Bugsnag::Notification do
|
|
266
268
|
end
|
267
269
|
|
268
270
|
Bugsnag.configuration.release_stage = "development"
|
269
|
-
Bugsnag.configuration.notify_release_stages
|
271
|
+
Bugsnag.configuration.notify_release_stages = ["development"]
|
270
272
|
Bugsnag.notify(BugsnagTestException.new("It crashed"))
|
271
273
|
end
|
272
274
|
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 1.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 1.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- James Smith
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2013-
|
17
|
+
date: 2013-03-21 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -102,6 +102,7 @@ extra_rdoc_files:
|
|
102
102
|
files:
|
103
103
|
- .document
|
104
104
|
- .rspec
|
105
|
+
- .ruby-version
|
105
106
|
- .travis.yml
|
106
107
|
- CHANGELOG.md
|
107
108
|
- Gemfile
|