airbrake 8.1.4 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/airbrake/logger.rb +3 -3
  3. data/lib/airbrake/rack/context_filter.rb +16 -13
  4. data/lib/airbrake/rack/middleware.rb +19 -63
  5. data/lib/airbrake/rails.rb +8 -0
  6. data/lib/airbrake/rails/action_controller.rb +8 -8
  7. data/lib/airbrake/rails/action_controller_notify_subscriber.rb +11 -12
  8. data/lib/airbrake/rails/action_controller_route_subscriber.rb +5 -0
  9. data/lib/airbrake/rails/active_job.rb +6 -5
  10. data/lib/airbrake/rails/active_record_subscriber.rb +30 -12
  11. data/lib/airbrake/rake.rb +10 -9
  12. data/lib/airbrake/rake/tasks.rb +1 -1
  13. data/lib/airbrake/version.rb +1 -1
  14. data/spec/apps/rails/dummy_task.rake +0 -5
  15. data/spec/apps/rails/logs/32.log +652 -27267
  16. data/spec/apps/rails/logs/42.log +597 -1717
  17. data/spec/apps/rails/logs/52.log +5237 -1
  18. data/spec/integration/rack/rack_spec.rb +5 -26
  19. data/spec/integration/rails/rails_spec.rb +135 -200
  20. data/spec/integration/rails/rake_spec.rb +66 -141
  21. data/spec/integration/shared_examples/rack_examples.rb +72 -101
  22. data/spec/integration/sinatra/sinatra_spec.rb +9 -55
  23. data/spec/spec_helper.rb +8 -3
  24. data/spec/support/matchers/a_notice_with.rb +29 -0
  25. data/spec/unit/logger_spec.rb +3 -13
  26. data/spec/unit/rack/middleware_spec.rb +16 -61
  27. data/spec/unit/rake/tasks_spec.rb +2 -2
  28. data/spec/unit/shoryuken_spec.rb +0 -17
  29. data/spec/unit/sidekiq/retryable_jobs_filter_spec.rb +1 -1
  30. data/spec/unit/sidekiq_spec.rb +0 -15
  31. metadata +20 -10
  32. data/spec/apps/rails/logs/51.log +0 -3166
  33. data/spec/apps/sinatra/composite_app/sinatra_app1.rb +0 -11
  34. 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