rails_surrogate_key_logging 0.5.0 → 0.6.0

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: ea4b88c12da4f0ec6f5a7820dcfc828c86441c02ea4556a99b6d6ce9d6d2f36b
4
- data.tar.gz: 86ab606742802c48b10f8a15f4cfee779871b2ef6fd76aab6b778f38a951368c
3
+ metadata.gz: 3c294a79fb780fafbcbc06d116529cb816fd902a52fd1203cfe94ed31fca7ee1
4
+ data.tar.gz: 0710ba0071ffaeb46cc18bf8fb8805abed72d39ff4ebf586b605c353ddde9097
5
5
  SHA512:
6
- metadata.gz: 5c1141c8d9b2df0fdd92db47211ed229e3f34afdbebfd9772a17ac6fcdbb6ef2df89c10e2f1a7065d2cef69c5ec7a606656c4fb4cc2782f951113097d7bc48eb
7
- data.tar.gz: 3fac576dad21b8299f122eabea8c82cf3c35eec4fd299f9d0bfcab456ec6c56fc0719062b60a1466f1be7b1366ce4cf8590e2892c147055725de73cd2c61549c
6
+ metadata.gz: ee7d8c9c308fab4691cb7c01a465ce811203ab09db7849977766c84e48d30a8a1f9fdbedcb14add3436cbece9cd63e5c9c838c911c0f7c7a8a81a9c5103d60ef
7
+ data.tar.gz: 38fb223db0ae2dbe0f6e3625545c5aee91a3321fe33effda26a366defd0041b482cd4c5f136eb9a0cd4ea3ce5b05e543bb06380bc27387c4e04bc890554715b6
@@ -36,6 +36,7 @@ module SurrogateKeyLogging
36
36
  end
37
37
 
38
38
  def call(_key, value, _parents = [], _original_params = nil)
39
+ return "" if value.blank?
39
40
  surrogate = get(value)
40
41
  Rails.logger.tagged('SurrogateKeyLogging') { Rails.logger.info "Surrogate: `#{surrogate}`, value: `#{value}`" } if SurrogateKeyLogging.config.debug
41
42
  surrogate
@@ -4,7 +4,7 @@ module SurrogateKeyLogging
4
4
 
5
5
  module Version
6
6
  MAJOR = 0
7
- MINOR = 5
7
+ MINOR = 6
8
8
  PATCH = 0
9
9
 
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_surrogate_key_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Yelverton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-03 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack