mongoid-colors 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid-colors/colorizer.rb +2 -5
- data/lib/mongoid-colors/version.rb +1 -1
- metadata +3 -3
@@ -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
|
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.
|
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-
|
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.
|
93
|
+
rubygems_version: 1.8.25
|
94
94
|
signing_key:
|
95
95
|
specification_version: 3
|
96
96
|
summary: Colorize your Mongoid traces
|