airbrake 8.1.4 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/logger.rb +3 -3
- data/lib/airbrake/rack/context_filter.rb +16 -13
- data/lib/airbrake/rack/middleware.rb +19 -63
- data/lib/airbrake/rails.rb +8 -0
- data/lib/airbrake/rails/action_controller.rb +8 -8
- data/lib/airbrake/rails/action_controller_notify_subscriber.rb +11 -12
- data/lib/airbrake/rails/action_controller_route_subscriber.rb +5 -0
- data/lib/airbrake/rails/active_job.rb +6 -5
- data/lib/airbrake/rails/active_record_subscriber.rb +30 -12
- data/lib/airbrake/rake.rb +10 -9
- data/lib/airbrake/rake/tasks.rb +1 -1
- data/lib/airbrake/version.rb +1 -1
- data/spec/apps/rails/dummy_task.rake +0 -5
- data/spec/apps/rails/logs/32.log +652 -27267
- data/spec/apps/rails/logs/42.log +597 -1717
- data/spec/apps/rails/logs/52.log +5237 -1
- data/spec/integration/rack/rack_spec.rb +5 -26
- data/spec/integration/rails/rails_spec.rb +135 -200
- data/spec/integration/rails/rake_spec.rb +66 -141
- data/spec/integration/shared_examples/rack_examples.rb +72 -101
- data/spec/integration/sinatra/sinatra_spec.rb +9 -55
- data/spec/spec_helper.rb +8 -3
- data/spec/support/matchers/a_notice_with.rb +29 -0
- data/spec/unit/logger_spec.rb +3 -13
- data/spec/unit/rack/middleware_spec.rb +16 -61
- data/spec/unit/rake/tasks_spec.rb +2 -2
- data/spec/unit/shoryuken_spec.rb +0 -17
- data/spec/unit/sidekiq/retryable_jobs_filter_spec.rb +1 -1
- data/spec/unit/sidekiq_spec.rb +0 -15
- metadata +20 -10
- data/spec/apps/rails/logs/51.log +0 -3166
- data/spec/apps/sinatra/composite_app/sinatra_app1.rb +0 -11
- data/spec/apps/sinatra/composite_app/sinatra_app2.rb +0 -11
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'sinatra/base'
|
2
|
-
|
3
|
-
class SinatraApp1 < Sinatra::Base
|
4
|
-
get('/') { raise AirbrakeTestError }
|
5
|
-
end
|
6
|
-
|
7
|
-
Airbrake.configure(SinatraApp1) do |c|
|
8
|
-
c.project_id = 113743
|
9
|
-
c.project_key = 'fd04e13d806a90f96614ad8e529b2822'
|
10
|
-
c.logger = Logger.new('/dev/null')
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'sinatra/base'
|
2
|
-
|
3
|
-
class SinatraApp2 < Sinatra::Base
|
4
|
-
get('/') { raise AirbrakeTestError }
|
5
|
-
end
|
6
|
-
|
7
|
-
Airbrake.configure(SinatraApp2) do |c|
|
8
|
-
c.project_id = 99123
|
9
|
-
c.project_key = 'ad04e13d806a90f96614ad8e529b2821'
|
10
|
-
c.logger = Logger.new('/dev/null')
|
11
|
-
end
|