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 CHANGED
@@ -1 +1 @@
1
- 0.2.0
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 block_given?
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mongoid_colored_logger"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Shterenzon"]
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.0
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: 686914334206650253
129
+ hash: 25202840119191970
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements: