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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5b107b9ac128982ffe633ffc999d41f27d5addeba47a60ab0507dea5a7c8c46
4
- data.tar.gz: 836fc07a0fcca3a035972402a68e359b98c74a30f91bebd9523ab6a8ec36a8f7
3
+ metadata.gz: 93f346fd982435c382392b349375e5604296bbddeef45d8ddae875f9d95ead63
4
+ data.tar.gz: 273552a6c711ed65f87685c15790e8f2d8aea922cd902948a48c76d23a8a1317
5
5
  SHA512:
6
- metadata.gz: 12cb7455ce34493f2f1a0c67e286c8fa59da3c9d9713e3f489cc2a583d414c31b5377eafc5213159703fbe4a8cd49350aae5e20c0e4c5d0ed4251f3f6b9bfd12
7
- data.tar.gz: b0cc599bdad6afc425ea9a8f01de7f9a4ae74e8c5b832cc871aed2f44e4a6e687b76b3cda64675fe6bcbbde155270a8f21c4fe2789c581a864d5ecbdf619f666
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
- default_keys = %i[method format controller action user_id request_id]
8
+ except_keys = %i[headers params path status view_runtime db_runtime]
9
9
 
10
- metadata = payload.slice(*default_keys).tap { |data|
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
@@ -1,3 +1,3 @@
1
1
  module Hickory
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
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.6
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-02-17 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport