hickory 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hickory/log_subscribers/action_controller.rb +2 -2
- data/lib/hickory/rails.rb +3 -2
- data/lib/hickory/version.rb +1 -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: 93f346fd982435c382392b349375e5604296bbddeef45d8ddae875f9d95ead63
|
4
|
+
data.tar.gz: 273552a6c711ed65f87685c15790e8f2d8aea922cd902948a48c76d23a8a1317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abeddb74fab71cb315a2c15c8d437e1eeab99137b8296fca30604b9811fbd9139bfe5b22486ef590c9dca0653b24c203a1d3bc26ec40039206b74d932b53d4c2
|
7
|
+
data.tar.gz: a9111d96fa7c5077a8e80b3911859fd009c4da8183efa5e9596179e6fa7a51b7e18f614e203793abbe1fc65d70b79e4fdbb4f61dabc8b46c0b0253798b57d37d
|
@@ -5,9 +5,9 @@ module Hickory
|
|
5
5
|
return if Hickory::Rails.ignore_if.present? && Hickory::Rails.ignore_if.call(event)
|
6
6
|
|
7
7
|
payload = event.payload
|
8
|
-
|
8
|
+
except_keys = %i[headers params path status view_runtime db_runtime]
|
9
9
|
|
10
|
-
metadata = payload.
|
10
|
+
metadata = payload.except(*except_keys).tap { |data|
|
11
11
|
data.merge!(uri(payload))
|
12
12
|
data.merge!(runtimes(event, payload))
|
13
13
|
data.merge!(status(payload))
|
data/lib/hickory/rails.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'active_support/log_subscriber'
|
2
|
+
require 'action_view/log_subscriber'
|
3
|
+
require 'action_controller/log_subscriber'
|
4
|
+
require 'action_mailer/log_subscriber'
|
2
5
|
require 'active_support/core_ext/module/attribute_accessors'
|
3
6
|
|
4
7
|
require 'hickory/ext/rails/rack/logger'
|
@@ -36,8 +39,6 @@ module Hickory
|
|
36
39
|
unsubscribe(:action_controller, subscriber)
|
37
40
|
when ActionMailer::LogSubscriber
|
38
41
|
unsubscribe(:action_mailer, subscriber)
|
39
|
-
when ActiveJob::Logging::LogSubscriber
|
40
|
-
unsubscribe(:active_job, subscriber)
|
41
42
|
end
|
42
43
|
end
|
43
44
|
end
|
data/lib/hickory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hickory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- blahed
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|