airbrake 10.0.6 → 10.1.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8c1a47736f8dd93e0023e7ac0ce9d8e5e852baaba52bd725203577c3881d058
4
- data.tar.gz: d0f623664683c44ca43cf29b067fe72ed4c7b7920e9390f0346ca1cc3b8ae409
3
+ metadata.gz: f48599a614943c56ab453213a73d26bb81656e675b9fe66ef8da6f742b31f5f0
4
+ data.tar.gz: aca5987ae07c235fb6db4b852d9259cc583f38779d9e65169ceed8b1a66857a9
5
5
  SHA512:
6
- metadata.gz: 22c50e2be09ff46299ec304ef79fb28f69a4017170b5c67f8abf9633a891e8b51d7a197d6d7568b1cfe2ee11a2a2b916f12f88896d0488fb3ae37c999b277a36
7
- data.tar.gz: 59747af59ca1ec23c3cd1ba31ec3e42daa922ce85bb49e1306a4b13d3b75fc8ab41365607dd7558277f301db6aaee8865862749003ce6e65aa1598fca10914bd
6
+ metadata.gz: 6b3a3223c947c6e69a58b7a0f2a37651dd3e796638fbc6223bd839dd9c3ac29eeba64eba9dba3c9d97cb51f9f4b92518b2de0a1172276384dffba6580a902e89
7
+ data.tar.gz: 5d6e5dca29361d99beb97e2d71e13e9d721526312346b36e2b9668a9d81590e5825f912b5793771402c4afb20b6a16db39c058295366dd20ed1f5da9ec74f5fe
@@ -11,19 +11,12 @@ module Airbrake
11
11
 
12
12
  # @param [] request
13
13
  # @return [Airbrake::Rails::App::Route, nil]
14
- # rubocop:disable Metrics/AbcSize
15
14
  def self.recognize_route(request)
16
15
  # Duplicate `request` because `recognize` *can* strip the request's
17
16
  # `path_info`, which results in broken engine links (when the engine has
18
17
  # an isolated namespace).
19
18
  request_copy = request.dup
20
19
 
21
- # Save original script name because `router.recognize(request)` mutates
22
- # it. It's a Rails bug. More info in:
23
- # * https://github.com/airbrake/airbrake/issues/1072
24
- # * https://github.com/rails/rails/issues/31152
25
- original_script_name = request.env['SCRIPT_NAME']
26
-
27
20
  # We must search every engine individually to find a concrete route. If
28
21
  # we rely only on the `Rails.application.routes.router`, then the
29
22
  # recognize call would return the root route, neglecting PATH_INFO
@@ -33,10 +26,6 @@ module Airbrake
33
26
  # * `Marketing::Engine` recognizes it as `marketing#/pricing` (correct)
34
27
  engines.each do |engine|
35
28
  engine.routes.router.recognize(request_copy) do |route, _params|
36
- # Restore original script name. Remove this code when/if the Rails
37
- # bug is fixed: https://github.com/airbrake/airbrake/issues/1072
38
- request.env['SCRIPT_NAME'] = original_script_name
39
-
40
29
  # Skip "catch-all" routes such as:
41
30
  # get '*path => 'pages#about'
42
31
  #
@@ -67,7 +56,6 @@ module Airbrake
67
56
 
68
57
  nil
69
58
  end
70
- # rubocop:enable Metrics/AbcSize
71
59
 
72
60
  def self.engines
73
61
  @engines ||= [*::Rails::Engine.subclasses, ::Rails.application]
@@ -29,7 +29,7 @@ module Airbrake
29
29
  private
30
30
 
31
31
  def notify_airbrake(exception, context)
32
- Airbrake.notify(exception, context) do |notice|
32
+ Airbrake.notify(exception, job: context) do |notice|
33
33
  notice[:context][:component] = 'sidekiq'
34
34
  notice[:context][:action] = action(context)
35
35
  end
@@ -3,5 +3,5 @@
3
3
  # We use Semantic Versioning v2.0.0
4
4
  # More information: http://semver.org/
5
5
  module Airbrake
6
- AIRBRAKE_VERSION = '10.0.6'.freeze
6
+ AIRBRAKE_VERSION = '10.1.0.rc.1'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.6
4
+ version: 10.1.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.13'
19
+ version: 5.0.0.rc.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.13'
26
+ version: 5.0.0.rc.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -434,7 +434,7 @@ homepage: https://airbrake.io
434
434
  licenses:
435
435
  - MIT
436
436
  metadata: {}
437
- post_install_message:
437
+ post_install_message:
438
438
  rdoc_options: []
439
439
  require_paths:
440
440
  - lib
@@ -445,12 +445,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
445
  version: '2.1'
446
446
  required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  requirements:
448
- - - ">="
448
+ - - ">"
449
449
  - !ruby/object:Gem::Version
450
- version: '0'
450
+ version: 1.3.1
451
451
  requirements: []
452
452
  rubygems_version: 3.1.2
453
- signing_key:
453
+ signing_key:
454
454
  specification_version: 4
455
455
  summary: Airbrake is an online tool that provides robust exception tracking in any
456
456
  of your Ruby applications.