activemodel-logger_attributes 0.1.1 → 0.1.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a371c035fbe445e6f4464ebc8b54ed0e4feca066a1c8c5de45246a5fd7acf17
|
|
4
|
+
data.tar.gz: 3698ece52a170c916b7a12354551cd0d46f6b9cc1797b5372dcd00214b8f97a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c9c76af3962fc7df77052572d7bfa080cfe6242a6742312bfd26f5eac04055224b2e674eb8ecd761132755b61c7ec00f2ec1f368311ef5fa224392334c95768
|
|
7
|
+
data.tar.gz: e8da2f5fa98e9ba078c65ac4699fb86344fab2802e0e076663a8cee8fce0781d9812642ad5757250400bf329d3c08a48226630294c4fb363cd8ac98ede2f8ae5
|
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ You may be also be interested in the (ActiveRecord version)[https://github.com/c
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem 'activemodel-logger_attributes', '~> 0.1.
|
|
12
|
+
gem 'activemodel-logger_attributes', '~> 0.1.2'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
And then execute:
|
|
@@ -15,7 +15,6 @@ module ActiveModel
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def setup_logger_attr(attribute, options)
|
|
18
|
-
puts "DEFAULTS: #{logger_attr_default_options.ai}"
|
|
19
18
|
@logger_attributes ||= {}
|
|
20
19
|
@logger_attributes[attribute] = logger_attr_default_options.merge(options)
|
|
21
20
|
@logger_attributes[attribute][:logger_name] ||= "#{attribute}_logger"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'active_model/logger_attributes'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activemodel-logger_attributes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Bielinski
|
|
@@ -109,6 +109,7 @@ files:
|
|
|
109
109
|
- lib/active_model/logger_attributes.rb
|
|
110
110
|
- lib/active_model/logger_attributes/device.rb
|
|
111
111
|
- lib/active_model/logger_attributes/version.rb
|
|
112
|
+
- lib/activemodel/logger_attributes.rb
|
|
112
113
|
homepage: https://github.com/chrisb/activemodel-logger_attributes
|
|
113
114
|
licenses:
|
|
114
115
|
- MIT
|