effective_logging 1.11.4 → 1.11.5

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
  SHA1:
3
- metadata.gz: 13efe504e16627679d03711d59a6a6600085f08e
4
- data.tar.gz: 934a3d5dcbd2caeef4b643990a72eaaf871ff86a
3
+ metadata.gz: 937a74b79730479f2f0994cc786d8eabff3903dc
4
+ data.tar.gz: 63dc477e50b0f04be570827151e9d5d7eaaf39f0
5
5
  SHA512:
6
- metadata.gz: 6f22ac403a59bc1ca3c12ec5fe6df24bc3a710c7a81a0a1eed0b7f2ef9e5947cba4599ccfc9a90f8e4d919058231b5d14e8046b265a54e3d01fad58e80cb3d4a
7
- data.tar.gz: e10b85976f9626ba87638aac3bc1c45856161d267026c02b524f289ad112d1d549e498e7f65936a5aab9203bb7900708bf7186508ad7c1653905b9a727dae14b
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
- [:logged_changes, :trash].each { |nope| atts.delete(nope) }
115
-
116
- atts
115
+ atts.except(:logged_changes, :trash, 'logged_changes', 'trash')
117
116
  end
118
117
 
119
118
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '1.11.4'.freeze
2
+ VERSION = '1.11.5'.freeze
3
3
  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
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: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails