airbrake-user_informer 0.5.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/airbrake/user_informer/version.rb +1 -1
- data/lib/airbrake/user_informer.rb +11 -5
- metadata +8 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 02b0b1b86688f4a9a337e2fbd6ae6e85c0f90c2bda69ef048dc1d92e27ca5abb
|
4
|
+
data.tar.gz: 1d57c8215b0d97284ddc116a962139b6aedb7c7f4fde439e29c112bf66720a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d49f1ee4d384e062b684201d470d2a88df7f4068f9bcfcb1a06ad490a0e341d95f926ec62d06ba916a1e2760b7e94107824aa3186ff45584591daf938a9e0f
|
7
|
+
data.tar.gz: 1b11261b77e4a4954e0c466df661b0c0375ec22dfde8a574e9536d79510406e804929c1d1c596ae283a45841f0a1ba0ee245017f88ca06d73a28990d1de963b2
|
@@ -1,10 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require "airbrake"
|
3
|
+
require "airbrake/rack"
|
4
|
+
|
2
5
|
module Airbrake
|
3
6
|
module UserInformer
|
4
7
|
module MiddlewareExtension
|
5
|
-
def notify_airbrake(
|
8
|
+
def notify_airbrake(*)
|
6
9
|
if Airbrake.user_information
|
7
|
-
|
10
|
+
notice = super
|
11
|
+
if (request = ::Airbrake::Rack::RequestStore[:request])
|
12
|
+
request[Middleware::ENV_KEY] = notice
|
13
|
+
end
|
14
|
+
notice
|
8
15
|
else
|
9
16
|
super
|
10
17
|
end
|
@@ -58,15 +65,14 @@ module Airbrake
|
|
58
65
|
headers["Content-Length"] = new_body.inject(0) { |sum, x| sum + x.bytesize }.to_s
|
59
66
|
new_body
|
60
67
|
ensure
|
61
|
-
body.close if body
|
68
|
+
body.close if body.respond_to?(:close)
|
62
69
|
end
|
63
70
|
end
|
64
71
|
end
|
65
72
|
end
|
66
73
|
|
67
74
|
class << Airbrake
|
68
|
-
attr_accessor :user_information
|
69
|
-
attr_accessor :user_information_placeholder
|
75
|
+
attr_accessor :user_information, :user_information_placeholder
|
70
76
|
end
|
71
77
|
|
72
78
|
if defined?(::Rails::Railtie)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-user_informer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 5.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 7.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 5.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 7.1.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,28 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '9.5'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: airbrake-ruby
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '2.0'
|
68
|
-
type: :runtime
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '2.0'
|
60
|
+
version: '9.5'
|
75
61
|
description:
|
76
62
|
email: michael@grosser.it
|
77
63
|
executables: []
|
@@ -93,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
79
|
requirements:
|
94
80
|
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
82
|
+
version: 2.6.0
|
97
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
84
|
requirements:
|
99
85
|
- - ">="
|
100
86
|
- !ruby/object:Gem::Version
|
101
87
|
version: '0'
|
102
88
|
requirements: []
|
103
|
-
|
104
|
-
rubygems_version: 2.6.14
|
89
|
+
rubygems_version: 3.1.6
|
105
90
|
signing_key:
|
106
91
|
specification_version: 4
|
107
92
|
summary: Show exception ids on error pages so users or support can track them down
|