mongoid_colored_logger 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongoid_colored_logger/logger_decorator.rb +3 -3
- data/mongoid_colored_logger.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -17,12 +17,12 @@ module MongoidColoredLogger
|
|
17
17
|
end
|
18
18
|
|
19
19
|
colorize_method = Mongoid::VERSION.to_f >= 3.0 ? :colorize_message : :colorize_legacy_message
|
20
|
-
|
20
|
+
|
21
21
|
%w[debug info warn error fatal unknown].each.with_index do |method, severity|
|
22
22
|
define_method(method) do |message = nil, progname = nil, &block|
|
23
|
-
message = block.call if message.nil? and
|
23
|
+
message = block.call if message.nil? and block
|
24
24
|
message = self.send(colorize_method, message.to_s)
|
25
|
-
|
25
|
+
|
26
26
|
@logger.add(severity, message, progname, &block)
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_colored_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
segments:
|
128
128
|
- 0
|
129
|
-
hash:
|
129
|
+
hash: 25202840119191970
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
none: false
|
132
132
|
requirements:
|