action_reporter 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/action_reporter.gemspec +1 -1
- data/lib/action_reporter/sentry_reporter.rb +6 -3
- data/lib/action_reporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13f718a0d6eee4e975da76a733f388b2b4b738fe80032d242e5d6d06ce8ebb79
|
4
|
+
data.tar.gz: cde25f668b6347a947e7736bf82225ad48ab1f83f5dd134585e72bf6aca8482e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22156d2648d9b003bffbef67d1b7bf8e0648875808f785d8bc85b14f8a13ee56dff5486fc94758ebf457062ad478b704ef88e177ecbf572e9437b504d5257389
|
7
|
+
data.tar.gz: 90b60b8cdefaf0a5c2bede331f22f290b833a2fd36d4b7a4d4f720975ee7a9cf34a1ab15b66757d8a32f0c2c6038216a4735dfc3e51ffba8b94c8a8ce135edf5
|
data/CHANGELOG.md
CHANGED
data/action_reporter.gemspec
CHANGED
@@ -4,7 +4,9 @@ module ActionReporter
|
|
4
4
|
|
5
5
|
def notify(error, context: {})
|
6
6
|
Sentry.with_scope do |temp_scope|
|
7
|
-
|
7
|
+
transform_context(context).each do |key, value|
|
8
|
+
temp_scope.set_context(key, value)
|
9
|
+
end
|
8
10
|
|
9
11
|
if error.is_a?(StandardError)
|
10
12
|
Sentry.capture_exception(error)
|
@@ -15,8 +17,9 @@ module ActionReporter
|
|
15
17
|
end
|
16
18
|
|
17
19
|
def context(args)
|
18
|
-
|
19
|
-
|
20
|
+
transform_context(args).each do |key, value|
|
21
|
+
Sentry.get_current_scope.set_context(key, value)
|
22
|
+
end
|
20
23
|
end
|
21
24
|
|
22
25
|
def audited_user=(user)
|