grizzled-rails-logger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -0
- data/README.md +2 -4
- data/grizzled-rails-logger.gemspec +2 -2
- data/lib/grizzled/rails/logger.rb +2 -2
- data/rdoc/created.rid +2 -2
- data/rdoc/lib/grizzled/rails/logger_rb.html +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
Version 0.1.4
|
4
|
+
|
5
|
+
Before attempting to use (and `gsub` against) the passed-in message, the
|
6
|
+
logging extension now explicitly converts it to a string. This bug fix is an
|
7
|
+
attempt to address [Issue #2][issue2] (which I have been unable to reproduce
|
8
|
+
yet.)
|
9
|
+
|
10
|
+
[issue2]: https://github.com/bmc/grizzled-rails-logger/issues/2
|
11
|
+
|
12
|
+
---
|
13
|
+
|
3
14
|
Version 0.1.3
|
4
15
|
|
5
16
|
Now works with Ruby 1.8.7, as well as Ruby 1.9. Addresses [Issue 1][issue1].
|
data/README.md
CHANGED
@@ -24,10 +24,8 @@ If you want the development version of the gem, use:
|
|
24
24
|
|
25
25
|
gem 'grizzled-rails-logger', :git => 'git://github.com/bmc/grizzled-rails-logger.git'
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
This gem currently only works with Ruby 1.9. If there's a big enough hue and
|
30
|
-
cry, I'll patch it to work with Ruby 1.8.7, but I'd rather not.
|
27
|
+
This gem is specific to Rails 3, but it should work fine with either
|
28
|
+
Ruby 1.9 or Ruby 1.8.7.
|
31
29
|
|
32
30
|
# Documentation
|
33
31
|
|
@@ -89,7 +89,7 @@ Backtrace:
|
|
89
89
|
do_add(severity, message, progname, &block)
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
private
|
93
93
|
|
94
94
|
def do_add(severity, message, progname, options = {}, &block)
|
95
95
|
return if @level > severity
|
@@ -109,7 +109,7 @@ Backtrace:
|
|
109
109
|
:flatten_patterns, Configuration.flatten_patterns
|
110
110
|
)
|
111
111
|
patterns = ['.*'] if patterns.nil? || (patterns.length == 0)
|
112
|
-
flattened_message = message.gsub("\n", '')
|
112
|
+
flattened_message = message.to_s.gsub("\n", '')
|
113
113
|
patterns.each do |pattern|
|
114
114
|
if pattern =~ flattened_message
|
115
115
|
message = flattened_message
|
data/rdoc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Sat, 05 May 2012 17:18:43 -0400
|
2
2
|
lib/grizzled/rails.rb Thu, 12 Apr 2012 11:47:09 -0400
|
3
|
-
lib/grizzled/rails/logger.rb
|
3
|
+
lib/grizzled/rails/logger.rb Sat, 05 May 2012 17:10:00 -0400
|
4
4
|
lib/grizzled.rb Thu, 12 Apr 2012 11:46:52 -0400
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grizzled-rails-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|
16
|
-
requirement: &
|
16
|
+
requirement: &17574520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.0.7
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *17574520
|
25
25
|
description: ! 'A custom Rails 3 logger
|
26
26
|
|
27
27
|
'
|