action_trace 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 182fd04b0f3e966ecc924f62325b816114084b5fa6fc4b726718421f0b0f8b40
4
- data.tar.gz: f86112724bb6802802e7e29491655f40365103c07fcc904647ea939870af0721
3
+ metadata.gz: 6de093363353b505ea02cad7f87966850da1249ac539099b5966488c085649c4
4
+ data.tar.gz: 5f137bb47a416bc321fab330ffa89f8c34740b719b23846b01c65b0905e053ef
5
5
  SHA512:
6
- metadata.gz: 6a073a53162b28c8483a37bfb4270fbb085ce2880f27e8bdca5fc2a5d03c3b2abf77e8b53b01711c2f98c56d5f7d3ebb9333c38d042fe7663036c4012475240a
7
- data.tar.gz: 83de77162cf7b55ad76a002757e11daa334066191f2b8228e922c32515015fe91b9d76cb8fba57c76f1ecfc532d1d605a89674dd5dc71b51ecc87220fd0dff42
6
+ metadata.gz: 6587de91b4cabbda1b4f8a57062583a6ec181e455fb1f4c9d7cb360a23fc6ae7fc2c0a84e37d939b27a3812da8cf99296d0f5eed61d6aaadeaaf759bb69c4e45
7
+ data.tar.gz: df5300a642fe8033c9b6b92dd4c9fbdf1cca6019b5db0cfaf84c167edc9691f90f88d694622db6f5000be79ccc829bb3aeff0a70c136db6a46767403b5a10db9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTrace
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
@@ -14,3 +14,17 @@ end
14
14
  PublicActivity::Config.set do
15
15
  enabled true
16
16
  end
17
+
18
+ class Ahoy::Store < Ahoy::DatabaseStore
19
+ def track_event(data)
20
+ props = data[:properties] || {}
21
+ ctrl = props["controller"]
22
+ action = props["action"]
23
+
24
+ excluded =
25
+ ActionTrace.configuration.excluded_controllers.include?(ctrl) ||
26
+ ActionTrace.configuration.excluded_actions.include?(action)
27
+
28
+ super unless excluded
29
+ end
30
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gimbaro