rails_surrogate_key_logging 0.2.1 → 0.3.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: 4f209a8f18098917e60dbd9dbe93a1d6367eeaf16e2da104bbbba0351fb09956
4
- data.tar.gz: 0d70d2d6ed37c4981c286fbed4f409f397babd3695a90141a886d24b19ba2634
3
+ metadata.gz: 2e6e90f9c083df089f9b7cee7d45bddb3e27cc8b6f33ca926810a5006c374f40
4
+ data.tar.gz: 942657d9c5b766de9b879071a79e1bd7a5928c9d371a7a015174499875a52238
5
5
  SHA512:
6
- metadata.gz: c12692d51a77d61a606193aee29f77016f2386076c6334e35f8dfeb324a52f3caed7860a3ea83c44f2a91c861cd379eb8d2ed21002ace9732f5e9b8acfebe6fb
7
- data.tar.gz: 969985b95d785c04f0c90042e57ce3bf2826d529adf96aac611994fa061a7c254175e4bcaa13eee4f39f18e95000bbd2ddaa268547d1317f6893d3e24a43d5db
6
+ metadata.gz: ec95153a37880c2f9421595e32c840bf0ac292785f83f2cd59f0358767cc673e53918dbde9e7999511282ccd5db8e0c787082d0b4de5915e2d8d0deb8552ebbe
7
+ data.tar.gz: 7620c957e9a36efef906e4bfa8a7a68a467fff0201d2149966b33cae0da6e2cd6e67c753eff3df4dd8e2d8ccee939fb2fea5bfb3e119e44449b7b9259f41a682
@@ -18,8 +18,8 @@ module SurrogateKeyLogging
18
18
  end
19
19
 
20
20
  rake_tasks do
21
- load 'tasks/surrogate_key_logging.rake'
22
- load 'tasks/key_store/active_record.rake'
21
+ # load 'tasks/surrogate_key_logging.rake'
22
+ # load 'tasks/key_store/active_record.rake'
23
23
  end
24
24
 
25
25
  initializer 'surrogate_key_logging.config' do |app|
@@ -15,6 +15,7 @@ module SurrogateKeyLogging
15
15
  end
16
16
 
17
17
  def get(value)
18
+ return if value.blank?
18
19
  if should_cache
19
20
  get_cached(value)
20
21
  else
@@ -4,8 +4,8 @@ module SurrogateKeyLogging
4
4
 
5
5
  module Version
6
6
  MAJOR = 0
7
- MINOR = 2
8
- PATCH = 1
7
+ MINOR = 3
8
+ PATCH = 0
9
9
 
10
10
  end
11
11
 
@@ -64,6 +64,10 @@ module SurrogateKeyLogging
64
64
  parameter_filter.filter params
65
65
  end
66
66
 
67
+ def surrogate_for(value)
68
+ key_manager.get(value)
69
+ end
70
+
67
71
  def add_param_to_filter(attr, *parents)
68
72
  if parents.empty?
69
73
  surrogate_attributes attr.to_s
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.2.1
4
+ version: 0.3.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-01-24 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack