bugsnag 6.9.0 → 6.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile +0 -1
- data/VERSION +1 -1
- data/features/delayed_job.feature +9 -10
- data/features/fixtures/delayed_job/Dockerfile +2 -2
- data/features/fixtures/delayed_job/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/docker-compose.yml +118 -124
- data/features/fixtures/plain/Dockerfile +5 -6
- data/features/fixtures/plain/app/Gemfile +1 -1
- data/features/fixtures/plain/app/app.rb +19 -19
- data/features/fixtures/plain/app/configuration/api_key.rb +1 -1
- data/features/fixtures/plain/app/stack_frame_modification/initiators/handled_before_notify.rb +5 -1
- data/features/fixtures/rack1/Dockerfile +7 -6
- data/features/fixtures/rack1/Gemfile +1 -1
- data/features/fixtures/rack2/Dockerfile +7 -6
- data/features/fixtures/rack2/Gemfile +1 -1
- data/features/fixtures/rails3/Dockerfile +5 -6
- data/features/fixtures/rails3/app/Gemfile +1 -1
- data/features/fixtures/rails3/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/rails4/Dockerfile +7 -5
- data/features/fixtures/rails4/app/Gemfile +1 -1
- data/features/fixtures/rails4/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/rails5/Dockerfile +5 -6
- data/features/fixtures/rails5/app/Gemfile +1 -1
- data/features/fixtures/rails5/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/resque/Dockerfile +6 -5
- data/features/fixtures/resque/Gemfile +1 -1
- data/features/fixtures/sidekiq/Dockerfile +4 -2
- data/features/fixtures/sidekiq/app/Gemfile +3 -1
- data/features/fixtures/sidekiq/app/app.rb +4 -4
- data/features/fixtures/sinatra1/Dockerfile +6 -5
- data/features/fixtures/sinatra1/Gemfile +1 -1
- data/features/fixtures/sinatra2/Dockerfile +6 -5
- data/features/fixtures/sinatra2/Gemfile +1 -1
- data/features/plain_features/add_tab.feature +15 -17
- data/features/plain_features/api_key.feature +2 -3
- data/features/plain_features/app_type.feature +3 -5
- data/features/plain_features/app_version.feature +3 -5
- data/features/plain_features/auto_notify.feature +1 -3
- data/features/plain_features/delivery.feature +3 -5
- data/features/plain_features/exception_data.feature +4 -6
- data/features/plain_features/filters.feature +4 -6
- data/features/plain_features/handled_errors.feature +48 -30
- data/features/plain_features/ignore_classes.feature +0 -2
- data/features/plain_features/ignore_report.feature +0 -2
- data/features/plain_features/proxies.feature +4 -6
- data/features/plain_features/release_stages.feature +8 -10
- data/features/plain_features/report_api_key.feature +1 -3
- data/features/plain_features/report_severity.feature +3 -5
- data/features/plain_features/report_stack_frames.feature +54 -21
- data/features/plain_features/report_user.feature +10 -12
- data/features/plain_features/unhandled_errors.feature +4 -6
- data/features/rails_features/api_key.feature +3 -3
- data/features/rails_features/app_type.feature +4 -4
- data/features/rails_features/app_version.feature +2 -2
- data/features/rails_features/auto_capture_sessions.feature +4 -4
- data/features/rails_features/auto_notify.feature +5 -5
- data/features/rails_features/before_notify.feature +4 -4
- data/features/rails_features/handled.feature +6 -6
- data/features/rails_features/ignore_classes.feature +2 -2
- data/features/rails_features/meta_data_filters.feature +2 -2
- data/features/rails_features/project_root.feature +8 -8
- data/features/rails_features/release_stage.feature +2 -2
- data/features/rails_features/send_code.feature +2 -2
- data/features/rails_features/send_environment.feature +3 -3
- data/features/rails_features/unhandled.feature +4 -4
- data/features/rails_features/user_info.feature +4 -4
- data/features/sidekiq.feature +9 -10
- data/features/steps/ruby_notifier_steps.rb +6 -25
- data/features/support/env.rb +18 -9
- data/lib/bugsnag/configuration.rb +3 -3
- data/lib/bugsnag/integrations/mailman.rb +0 -1
- data/lib/bugsnag/integrations/shoryuken.rb +6 -8
- data/lib/bugsnag/integrations/sidekiq.rb +14 -11
- data/lib/bugsnag/stacktrace.rb +1 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/integrations/sidekiq_spec.rb +73 -7
- data/spec/report_spec.rb +62 -20
- data/spec/spec_helper.rb +1 -1
- data/spec/stacktrace_spec.rb +20 -16
- metadata +2 -2
data/spec/spec_helper.rb
CHANGED
data/spec/stacktrace_spec.rb
CHANGED
@@ -2,25 +2,29 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Bugsnag::Stacktrace do
|
4
4
|
it "includes code in the stack trace" do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
begin
|
6
|
+
_a = 1
|
7
|
+
_b = 2
|
8
|
+
_c = 3
|
9
|
+
"Test".prepnd "T"
|
10
|
+
_d = 4
|
11
|
+
_e = 5
|
12
|
+
_f = 6
|
13
|
+
rescue Exception => e
|
14
|
+
Bugsnag.notify(e)
|
15
|
+
end
|
12
16
|
|
13
17
|
expect(Bugsnag).to have_sent_notification{ |payload, headers|
|
14
18
|
exception = get_exception_from_payload(payload)
|
15
|
-
starting_line = __LINE__ -
|
16
|
-
expect(exception["stacktrace"][
|
17
|
-
(starting_line + 0).to_s =>
|
18
|
-
(starting_line + 1).to_s =>
|
19
|
-
(starting_line + 2).to_s =>
|
20
|
-
(starting_line + 3).to_s => "
|
21
|
-
(starting_line + 4).to_s =>
|
22
|
-
(starting_line + 5).to_s =>
|
23
|
-
(starting_line + 6).to_s =>
|
19
|
+
starting_line = __LINE__ - 13
|
20
|
+
expect(exception["stacktrace"][0]["code"]).to eq({
|
21
|
+
(starting_line + 0).to_s => ' _a = 1',
|
22
|
+
(starting_line + 1).to_s => ' _b = 2',
|
23
|
+
(starting_line + 2).to_s => ' _c = 3',
|
24
|
+
(starting_line + 3).to_s => ' "Test".prepnd "T"',
|
25
|
+
(starting_line + 4).to_s => ' _d = 4',
|
26
|
+
(starting_line + 5).to_s => ' _e = 5',
|
27
|
+
(starting_line + 6).to_s => ' _f = 6'
|
24
28
|
})
|
25
29
|
}
|
26
30
|
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: 6.
|
4
|
+
version: 6.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|