atatus 2.0.2 → 2.0.3

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: 7538f79c9ef6dcd54bdb9261016cc2f15e8e7a1593d35b5741245df2f64163a5
4
- data.tar.gz: 50d08cb8e1d49319b1d8ab86046356c06d5805f42848e3ab1b2fd1aff5f6f6e6
3
+ metadata.gz: cc239b97c79b5f08087cb18a01202d02a040380a57ab7cb4f324f788693459b6
4
+ data.tar.gz: 30cb19013300718357c28e41e95306ced7fa80633904d4213216e54485e0618f
5
5
  SHA512:
6
- metadata.gz: 8d93bf15d74fa86257e1ea0d6b7810b46694dec8a706b7c035b10a45e8653bee2f2259f644e60c9a11ab52bd854ecb313a646c518b86e33ed4dbdee9898b9b13
7
- data.tar.gz: a6d4f440daa63e0f135b4d8dedf7321cf630696d5b0925d19555366e16d1a7d3807e30ac5a7f762a6a1a120f8e28aa40dc3a74914624a4ad3eeb6e91b76eda7b
6
+ metadata.gz: 39c3db15d4ee7f8f3a7d055977638c3c4a88b3073c3503a7194dd749574197166e65df68c525c45631e3514a59dbbba1cfa156b224cb4220226c691961a086b0
7
+ data.tar.gz: 50f8cd73f38d8729d786c407a3be835b92fe44b7a721e6adf2a6053153ae00cbb48ec5650fb6313f7d1590e1fd6f0db12d52b8c58e535be117d99e8fc91101bb
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 2.0.3 (Wed, 16 Oct 2024)
8
+
9
+ - Fixed Action Dispatch exception handler failure in Rails 7.1
10
+
11
+
7
12
  ## 2.0.2 (Mon, 27 May 2024)
8
13
 
9
14
  - Fixed issue when trace sample fails in GCP Cloud
@@ -24,11 +24,19 @@ module Atatus
24
24
  class ActionDispatchSpy
25
25
  # @api private
26
26
  module Ext
27
- def render_exception(env, exception)
28
- context = Atatus.build_context(rack_env: env, for_type: :error)
29
- Atatus.report(exception, context: context, handled: false)
27
+ def render_exception(request, exception_or_wrapper)
28
+ context = Atatus.build_context(
29
+ rack_env: request, for_type: :error
30
+ )
31
+ exception =
32
+ if exception_or_wrapper.is_a?(ActionDispatch::ExceptionWrapper)
33
+ exception_or_wrapper.exception
34
+ else
35
+ exception_or_wrapper
36
+ end
30
37
 
31
- super(env, exception)
38
+ Atatus.report(exception, context: context, handled: false)
39
+ super(request, exception_or_wrapper)
32
40
  end
33
41
  end
34
42
 
@@ -19,5 +19,5 @@
19
19
 
20
20
  module Atatus
21
21
  AGENT_NAME = 'Ruby'
22
- VERSION = '2.0.2'
22
+ VERSION = '2.0.3'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atatus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby