grizzled-rails-logger 0.1.5 → 0.1.6
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.
- data/CHANGELOG.md +16 -6
- data/README.md +1 -1
- data/grizzled-rails-logger.gemspec +2 -2
- data/lib/grizzled/rails/logger.rb +3 -6
- data/rdoc/created.rid +2 -2
- data/rdoc/lib/grizzled/rails/logger_rb.html +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
Version 0.1.
|
3
|
+
Version 0.1.6 (07 Jan, 2013)
|
4
|
+
|
5
|
+
- Addressed [Issue #12][]: Extra newlines in unflattened exceptions logged
|
6
|
+
through the `exception()` method.
|
7
|
+
- Minor documentation change contributed my Pirogov Evgenij.
|
8
|
+
|
9
|
+
[Issue #12]: https://github.com/bmc/grizzled-rails-logger/issues/5
|
10
|
+
|
11
|
+
---
|
12
|
+
|
13
|
+
Version 0.1.5 (16 June, 2012)
|
4
14
|
|
5
15
|
- Changed to work with Rails 3.2.6, while retaining backward compatibility
|
6
16
|
with prior versions. Addresses [Issue #5][].
|
@@ -12,7 +22,7 @@ Version 0.1.5
|
|
12
22
|
|
13
23
|
---
|
14
24
|
|
15
|
-
Version 0.1.4
|
25
|
+
Version 0.1.4 (9 May, 2012)
|
16
26
|
|
17
27
|
Before attempting to use (and `gsub` against) the passed-in message, the
|
18
28
|
logging extension now explicitly converts it to a string. This bug fix is an
|
@@ -23,7 +33,7 @@ yet.)
|
|
23
33
|
|
24
34
|
---
|
25
35
|
|
26
|
-
Version 0.1.3
|
36
|
+
Version 0.1.3 (5 May, 2012)
|
27
37
|
|
28
38
|
Now works with Ruby 1.8.7, as well as Ruby 1.9. Addresses [Issue 1][issue1].
|
29
39
|
(Still requires Rails 3, however.)
|
@@ -32,18 +42,18 @@ Now works with Ruby 1.8.7, as well as Ruby 1.9. Addresses [Issue 1][issue1].
|
|
32
42
|
|
33
43
|
---
|
34
44
|
|
35
|
-
Version 0.1.2
|
45
|
+
Version 0.1.2 (21 April, 2012)
|
36
46
|
|
37
47
|
Backtrace dump now includes message that's in the exception.
|
38
48
|
|
39
49
|
---
|
40
50
|
|
41
|
-
Version 0.1.1
|
51
|
+
Version 0.1.1 (19 April, 2012)
|
42
52
|
|
43
53
|
Added `flatten_patterns` to the configuration options.
|
44
54
|
|
45
55
|
---
|
46
56
|
|
47
|
-
Version 0.1.0
|
57
|
+
Version 0.1.0 (12 April, 2012)
|
48
58
|
|
49
59
|
* Initial version.
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Add the following to your `Gemfile`, and run `bundle install`:
|
|
22
22
|
|
23
23
|
If you want the development version of the gem, use:
|
24
24
|
|
25
|
-
gem 'grizzled-rails-logger', :
|
25
|
+
gem 'grizzled-rails-logger', github: 'bmc/grizzled'
|
26
26
|
|
27
27
|
This gem is specific to Rails 3, but it should work fine with either
|
28
28
|
Ruby 1.9 or Ruby 1.8.7.
|
@@ -73,11 +73,8 @@ module Grizzled # :nodoc:
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def exception(message, ex, progname = nil)
|
76
|
-
|
77
|
-
|
78
|
-
Backtrace:
|
79
|
-
#{ex.backtrace.join("\n")}
|
80
|
-
EOM
|
76
|
+
lines = ["#{ex.class}: #{ex.message}", "Backtrace"] + ex.backtrace
|
77
|
+
ex_message = lines.join("\n")
|
81
78
|
if message.nil? || (message.length == 0)
|
82
79
|
message = "#{ex_message}"
|
83
80
|
else
|
@@ -154,7 +151,7 @@ Backtrace:
|
|
154
151
|
gsub("%P", pid).
|
155
152
|
gsub("%S", sev).
|
156
153
|
gsub("%M", message)
|
157
|
-
|
154
|
+
|
158
155
|
if Configuration.colorize
|
159
156
|
color = Configuration.colors[SEVERITY_MAP[severity]]
|
160
157
|
message = "#{color}#{message}#{Term::ANSIColor.reset}" if color
|
data/rdoc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Tue, 08 Jan 2013 21:16:52 -0500
|
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 Tue, 08 Jan 2013 21:11:54 -0500
|
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.6
|
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: 2012-
|
12
|
+
date: 2012-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|