effective_logging 1.11.4 → 1.11.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937a74b79730479f2f0994cc786d8eabff3903dc
|
4
|
+
data.tar.gz: 63dc477e50b0f04be570827151e9d5d7eaaf39f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e38a2c8bde33e965ada2d85341e23fc13d5062d99bf6bc184cc9710538c3dd29dae792b49dc1b5c4ec19c938cc8e4070add8d160ab3e6da43e1b7cae5904dc8f
|
7
|
+
data.tar.gz: 614b8ae1532afe2f49b1dc292a461a4430806db91ec676ab80cc8a0e3c0f48b78049ba45598a0dede8bca0cdd673cc120e8f10f75b5a37f2d8fdb92a016af9d5
|
@@ -95,12 +95,13 @@ module EffectiveLogging
|
|
95
95
|
|
96
96
|
# TODO: Make this work better with nested objects
|
97
97
|
def applicable(attributes)
|
98
|
+
|
98
99
|
atts = if options[:only].present?
|
99
|
-
attributes.slice(*options[:only])
|
100
|
+
attributes.stringify_keys.slice(*options[:only])
|
100
101
|
elsif options[:except].present?
|
101
|
-
attributes.except(*options[:except])
|
102
|
+
attributes.stringify_keys.except(*options[:except])
|
102
103
|
else
|
103
|
-
attributes.except(:updated_at, :created_at)
|
104
|
+
attributes.except(:updated_at, :created_at, 'updated_at', 'created_at')
|
104
105
|
end
|
105
106
|
|
106
107
|
(options[:additionally] || []).each do |attribute|
|
@@ -111,9 +112,7 @@ module EffectiveLogging
|
|
111
112
|
end
|
112
113
|
|
113
114
|
# Blacklist
|
114
|
-
|
115
|
-
|
116
|
-
atts
|
115
|
+
atts.except(:logged_changes, :trash, 'logged_changes', 'trash')
|
117
116
|
end
|
118
117
|
|
119
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|