rails_surrogate_key_logging 0.5.0 → 1.0.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: f98ce688e0b5bccad6bcfc8e3fe0df9b3796f1a92fd4fe30e17d5093d7a176a8
4
+ data.tar.gz: efd6b574da4f0ba06d0e47f1564e2f5c049d549d8b0fda59945bb9746028d922
5
5
  SHA512:
6
- metadata.gz: 5c1141c8d9b2df0fdd92db47211ed229e3f34afdbebfd9772a17ac6fcdbb6ef2df89c10e2f1a7065d2cef69c5ec7a606656c4fb4cc2782f951113097d7bc48eb
7
- data.tar.gz: 3fac576dad21b8299f122eabea8c82cf3c35eec4fd299f9d0bfcab456ec6c56fc0719062b60a1466f1be7b1366ce4cf8590e2892c147055725de73cd2c61549c
6
+ metadata.gz: 2dbce84a07a1c6146dbf4022d47c6528c1b189c55f053c5671d307ee1d4c378d74a2126fe646728bfbb24b528603ac26d16d777d7e49448a864ade402eedfff0
7
+ data.tar.gz: e42649376a21bd2838dca825aeee9c27dd8d2ec3921aa1b311e0a3f7c71f8a6e9b029089c7c6d8726b4135dfedb421b5261fdeb24e732ae88e1df1e498549d58
@@ -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
@@ -3,8 +3,8 @@
3
3
  module SurrogateKeyLogging
4
4
 
5
5
  module Version
6
- MAJOR = 0
7
- MINOR = 5
6
+ MAJOR = 1
7
+ MINOR = 0
8
8
  PATCH = 0
9
9
 
10
10
  end
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
27
27
 
28
28
  s.required_ruby_version = '>= 2.7.0'
29
29
 
30
- s.add_dependency('actionpack', '>= 6.0.0', '< 7.0.0')
31
- s.add_dependency('activerecord', '>= 6.0.0', '< 7.0.0')
32
- s.add_dependency('activesupport', '>= 6.0.0', '< 7.0.0')
33
- s.add_dependency('railties', '>= 6.0.0', '< 7.0.0')
30
+ s.add_dependency('actionpack', '>= 6.0.0', '< 8.0.0')
31
+ s.add_dependency('activerecord', '>= 6.0.0', '< 8.0.0')
32
+ s.add_dependency('activesupport', '>= 6.0.0', '< 8.0.0')
33
+ s.add_dependency('railties', '>= 6.0.0', '< 8.0.0')
34
34
  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: 1.0.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-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 6.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 7.0.0
22
+ version: 8.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 6.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 7.0.0
32
+ version: 8.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activerecord
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 6.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 7.0.0
42
+ version: 8.0.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 6.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 7.0.0
52
+ version: 8.0.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activesupport
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: 6.0.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: 7.0.0
62
+ version: 8.0.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: 6.0.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: 7.0.0
72
+ version: 8.0.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: railties
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +79,7 @@ dependencies:
79
79
  version: 6.0.0
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
- version: 7.0.0
82
+ version: 8.0.0
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: 6.0.0
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: 7.0.0
92
+ version: 8.0.0
93
93
  description: ''
94
94
  email: rubygems@yelvert.io
95
95
  executables: []