action_reporter 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +5 -5
- data/action_reporter.gemspec +2 -2
- data/lib/action_reporter/base.rb +9 -0
- data/lib/action_reporter/scout_apm_reporter.rb +0 -9
- 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: '0569ae232aed54ea4777b366d95fef80a4058d02a2c22bccdf1a56614282ff99'
|
4
|
+
data.tar.gz: 22317e6ea26f6a06f1626a7812ed65dbee279b9b45f6485166cb0c2bc0da7bf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c9ca0d8dfed3925742e698a2f013aebdda61bbad8f6a63e5751e42cb56c57d605b67965fa612dee07e2d84d467fd749abe3d460ad4ad9a921568817f9bfdb8
|
7
|
+
data.tar.gz: 00b99d87c2ece2ba07779ab176b063e7ef862466f4f7354905da3272b8a7b622b7775f7e92cb144615c4759667be7d98ae2f704cbcfc94c5c198f22bda3ac6e3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -37,11 +37,11 @@ Put this in your `config/initializers/action_reporter.rb` file:
|
|
37
37
|
|
38
38
|
```ruby
|
39
39
|
ActionReporter.enabled_reporters = [
|
40
|
-
ActionReporter::
|
41
|
-
# ActionReporter::
|
42
|
-
# ActionReporter::
|
43
|
-
# ActionReporter::
|
44
|
-
# ActionReporter::
|
40
|
+
ActionReporter::RailsReporter.new,
|
41
|
+
# ActionReporter::AuditedReporter.new,
|
42
|
+
# ActionReporter::SentryReporter.new,
|
43
|
+
# ActionReporter::HoneybadgerReporter.new,
|
44
|
+
# ActionReporter::ScoutApmReporter.new
|
45
45
|
]
|
46
46
|
```
|
47
47
|
|
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.2"
|
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
|
data/lib/action_reporter/base.rb
CHANGED
@@ -8,16 +8,7 @@ module ActionReporter
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def context(args)
|
11
|
-
if args[:audited_user].present?
|
12
|
-
ScoutApmContext.add_user(
|
13
|
-
audited_user_global_id: args[:audited_user].to_global_id
|
14
|
-
)
|
15
|
-
end
|
16
11
|
ScoutApmContext.add(args)
|
17
12
|
end
|
18
|
-
|
19
|
-
def reset_context
|
20
|
-
ScoutApmContext.clear!
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|
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.2
|
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
|
- - ">="
|