action_reporter 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/action_reporter.gemspec +2 -2
- data/lib/action_reporter/scout_apm_reporter.rb +4 -3
- data/lib/action_reporter/version.rb +1 -1
- data/lib/action_reporter.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9e1d1bcb3e0d357840b7067b944679d1cfa9833e1cfc9fdbabe035edd1f44a
|
4
|
+
data.tar.gz: 7a46f2699a6a7ef43dc9a9f90f638c95d289786009b688e4714c6b615d6a8743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06f86134a8c2499ee2c282189984a9ae8ede582dcae5d03db9cdcba656ef4540283089f3dd7cf1b54c7a4910d28b35ce5a876ba012cfc8fd1e52ae27bc43cd9
|
7
|
+
data.tar.gz: 243a13b9eae0f41dab7bd49d0fad1c1538eea0b08d8d6f833daa90cbc2943ee73806012d4108e4100574508157f763fa30fc51cd9c7efeb545b308865ae6b1ad
|
data/CHANGELOG.md
CHANGED
data/action_reporter.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "action_reporter"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.3"
|
4
4
|
|
5
5
|
s.license = "MIT"
|
6
6
|
|
@@ -24,6 +24,6 @@ Gem::Specification.new do |s|
|
|
24
24
|
# s.bindir = "bin"
|
25
25
|
# s.executables = ["action_reporter"]
|
26
26
|
|
27
|
-
s.required_ruby_version = ">=
|
27
|
+
s.required_ruby_version = ">= 1.9.3"
|
28
28
|
s.require_path = "lib"
|
29
29
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module ActionReporter
|
2
2
|
class ScoutApmReporter < Base
|
3
|
-
class_accessor "ScoutApm::
|
3
|
+
class_accessor "ScoutApm::Error"
|
4
4
|
class_accessor "ScoutApm::Context"
|
5
5
|
|
6
|
-
def notify(
|
7
|
-
|
6
|
+
def notify(error, context: {})
|
7
|
+
self.context(context)
|
8
|
+
ScoutApmError.capture(error)
|
8
9
|
end
|
9
10
|
|
10
11
|
def context(args)
|
data/lib/action_reporter.rb
CHANGED
@@ -52,7 +52,8 @@ module ActionReporter
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def transform_context(context)
|
55
|
-
|
55
|
+
filtered_context = context.reject { |k, _| k == :audited_user }
|
56
|
+
ActionReporter::Utils.deep_transform_values(filtered_context) do |value|
|
56
57
|
if value.respond_to?(:to_global_id)
|
57
58
|
value.to_global_id.to_s
|
58
59
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Makarov
|
@@ -47,7 +47,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: 1.9.3
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|