logging-couchdb 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/logging/couch_db_layout.rb +5 -4
- metadata +2 -2
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ PROJ.name = 'logging-couchdb'
|
|
23
23
|
PROJ.authors = 'Tim Pease'
|
24
24
|
PROJ.email = 'tim.pease@gmail.com'
|
25
25
|
PROJ.url = 'http://logging.rubyforge.org/logging-couchdb'
|
26
|
-
PROJ.version = '1.0.
|
26
|
+
PROJ.version = '1.0.3'
|
27
27
|
PROJ.rubyforge.name = 'logging'
|
28
28
|
PROJ.exclude << 'logging-couchdb.gemspec'
|
29
29
|
PROJ.readme_file = 'README.rdoc'
|
@@ -138,14 +138,15 @@ module Logging::Layouts
|
|
138
138
|
# Take the given _value_ and convert it into a format suitable for use
|
139
139
|
# in a JSON object structure.
|
140
140
|
#
|
141
|
-
def format_obj(
|
142
|
-
case
|
143
|
-
when nil, Numeric, String, Array, Hash
|
141
|
+
def format_obj( obj )
|
142
|
+
case obj
|
143
|
+
when nil, Numeric, String, Array, Hash
|
144
|
+
obj
|
144
145
|
when Exception
|
145
146
|
ary = ["<#{obj.class.name}> #{obj.message}"]
|
146
147
|
ary.concat(obj.backtrace) unless obj.backtrace.nil?
|
147
148
|
ary
|
148
|
-
else super(
|
149
|
+
else super(obj) end
|
149
150
|
end
|
150
151
|
|
151
152
|
end # class CouchDB
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logging-couchdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-17 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|