bugsnag 5.4.0 → 5.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/bugsnag.gemspec +2 -0
- data/lib/bugsnag/delayed_job.rb +1 -1
- data/spec/delayed_job_spec.rb +15 -0
- data/spec/integration_spec.rb +11 -8
- data/spec/notification_spec.rb +2 -2
- metadata +32 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da42b7546a03c6cd356b7f59398441fe8e308e7
|
4
|
+
data.tar.gz: 232321cd44a6fee4d64b43b17c4670ae78828b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5cee78c10dff9a4a42944dcd3e1776ea53702ee1ad06d491ee42e163cee6ae3eb22f9c6c5b94a4ec4ef9feb70e49817afdcccc6b7d7ea547459a56e1f223e46
|
7
|
+
data.tar.gz: 5e95a50ce1310ebea7132f260fd6e3ffe74b483938ca173ee1d9eedd5cee1dc0fa18f85b623dbfd07a705a79bca769064650f3df678dd01374d757e24dcbc478
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
## 5.4.1 (06 Oct 2017)
|
5
|
+
|
6
|
+
### Fixes
|
7
|
+
|
8
|
+
* [DelayedJob] Fix `NameError` occurring on erroring job notification
|
9
|
+
| [Eito Katagiri](https://github.com/eitoball)
|
10
|
+
| [#377](https://github.com/bugsnag/bugsnag-ruby/pull/377)
|
11
|
+
|
12
|
+
* Fixed failing Rake/Java tests
|
13
|
+
| [#378](https://github.com/bugsnag/bugsnag-ruby/pull/378)
|
14
|
+
|
4
15
|
## 5.4.0 (02 Oct 2017)
|
5
16
|
|
6
17
|
### Enhancements
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.4.
|
1
|
+
5.4.1
|
data/bugsnag.gemspec
CHANGED
@@ -25,4 +25,6 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency 'pry'
|
26
26
|
s.add_development_dependency 'addressable', '~> 2.3.8'
|
27
27
|
s.add_development_dependency 'webmock', '2.1.0'
|
28
|
+
s.add_development_dependency 'delayed_job'
|
29
|
+
s.add_development_dependency 'activesupport', '~> 4.2.10'
|
28
30
|
end
|
data/lib/bugsnag/delayed_job.rb
CHANGED
@@ -19,7 +19,7 @@ unless defined? Delayed::Plugins::Bugsnag
|
|
19
19
|
:id => job.id,
|
20
20
|
},
|
21
21
|
:severity_reason => {
|
22
|
-
:type => Bugsnag::Notification::UNHANDLED_EXCEPTION_MIDDLEWARE,
|
22
|
+
:type => ::Bugsnag::Notification::UNHANDLED_EXCEPTION_MIDDLEWARE,
|
23
23
|
:attributes => {
|
24
24
|
:framework => "DelayedJob"
|
25
25
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ::Delayed::Plugins::Bugsnag do
|
6
|
+
describe '#error' do
|
7
|
+
it 'should not raise exception' do
|
8
|
+
payload = Object.new
|
9
|
+
payload.extend(described_class::Notify)
|
10
|
+
expect do
|
11
|
+
payload.error(double('job', id: 1, payload_object: nil), '')
|
12
|
+
end.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/spec/integration_spec.rb
CHANGED
@@ -23,15 +23,18 @@ describe 'Bugsnag' do
|
|
23
23
|
let(:request) { JSON.parse(queue.pop) }
|
24
24
|
|
25
25
|
it 'should run the rake middleware when rake tasks crash' do
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
#Skips this test in ruby 1.9.3 with travis
|
27
|
+
unless ENV['TRAVIS'] && RUBY_VERSION == "1.9.3"
|
28
|
+
ENV['BUGSNAG_TEST_SERVER_PORT'] = server.config[:Port].to_s
|
29
|
+
task_fixtures_path = File.join(File.dirname(__FILE__), 'fixtures', 'tasks')
|
30
|
+
Dir.chdir(task_fixtures_path) do
|
31
|
+
system("bundle exec rake test:crash > /dev/null 2>&1")
|
32
|
+
end
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
|
34
|
+
result = request()
|
35
|
+
expect(result["events"][0]["metaData"]["rake_task"]).not_to be_nil
|
36
|
+
expect(result["events"][0]["metaData"]["rake_task"]["name"]).to eq("test:crash")
|
37
|
+
end
|
35
38
|
end
|
36
39
|
|
37
40
|
it 'should send notifications over the wire' do
|
data/spec/notification_spec.rb
CHANGED
@@ -966,8 +966,8 @@ describe Bugsnag::Notification do
|
|
966
966
|
|
967
967
|
expect(Bugsnag).to have_sent_notification{ |payload|
|
968
968
|
exception = get_exception_from_payload(payload)
|
969
|
-
expect(exception["errorClass"]).to eq('Java::JavaLang::
|
970
|
-
expect(exception["message"]).to eq("
|
969
|
+
expect(exception["errorClass"]).to eq('Java::JavaLang::NullPointerException')
|
970
|
+
expect(exception["message"]).to eq("")
|
971
971
|
expect(exception["stacktrace"].size).to be > 0
|
972
972
|
}
|
973
973
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -94,6 +94,34 @@ dependencies:
|
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.1.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: delayed_job
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: activesupport
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.2.10
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.2.10
|
97
125
|
description: Ruby notifier for bugsnag.com
|
98
126
|
email: james@bugsnag.com
|
99
127
|
executables: []
|
@@ -162,6 +190,7 @@ files:
|
|
162
190
|
- spec/cleaner_spec.rb
|
163
191
|
- spec/code_spec.rb
|
164
192
|
- spec/configuration_spec.rb
|
193
|
+
- spec/delayed_job_spec.rb
|
165
194
|
- spec/fixtures/crashes/end_of_file.rb
|
166
195
|
- spec/fixtures/crashes/short_file.rb
|
167
196
|
- spec/fixtures/crashes/start_of_file.rb
|
@@ -195,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
224
|
version: '0'
|
196
225
|
requirements: []
|
197
226
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.6.13
|
199
228
|
signing_key:
|
200
229
|
specification_version: 4
|
201
230
|
summary: Ruby notifier for bugsnag.com
|