mongoid-colors 0.3.2 → 0.3.3

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.
@@ -12,11 +12,7 @@ module MongoidColors::Colorizer
12
12
  Mongoid.logger.formatter = lambda do |severity, datetime, progname, msg|
13
13
  m = parse(msg)
14
14
  return if m == :ignore
15
-
16
- if m.nil?
17
- old_formatter.call(severity, datetime, progname, msg)
18
- return
19
- end
15
+ return old_formatter.call(severity, datetime, progname, msg) if m.nil?
20
16
 
21
17
  m[:query].gsub!(/BSON::ObjectId\('([^']+)'\)/, '0x\1')
22
18
  m[:duration] = m[:duration].split('.')[0] if m[:duration]
@@ -69,6 +65,7 @@ module MongoidColors::Colorizer
69
65
  end
70
66
  res
71
67
  when /which could negatively impact client-side performance/
68
+ :ignore
72
69
  when /COMMAND.*getlasterror/
73
70
  :ignore
74
71
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidColors
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-colors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 1.8.23
93
+ rubygems_version: 1.8.25
94
94
  signing_key:
95
95
  specification_version: 3
96
96
  summary: Colorize your Mongoid traces