lumberjack 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/lumberjack/log_entry.rb +1 -1
- data/lib/lumberjack/logger.rb +1 -1
- data/spec/formatter_spec.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e3b0ba8a97c6cd9b7c21a8342df5004c6643a7c
|
4
|
+
data.tar.gz: 3f8a63f5387688c867f1ffa8d1e0df6aa6d49b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db9b5b15274ba810178994718f9e19568c4e0dae791fbbac39166ce1905e7c1afc7e16ae54c5c491cbb217ab2db7068464aa45e0adae8b4f4fc0b6982e1b147
|
7
|
+
data.tar.gz: 678ca72d7dfdd683eaa6d47206f57723af461d0f696762aaf5b3796e650d23cb611dea8430dcef33e6de48faa18c5d2f65182e2e15ad6129d069b270ff38a067
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.11
|
data/lib/lumberjack/log_entry.rb
CHANGED
@@ -8,7 +8,7 @@ module Lumberjack
|
|
8
8
|
|
9
9
|
def initialize(time, severity, message, progname, pid, unit_of_work_id)
|
10
10
|
@time = time
|
11
|
-
@severity = (severity.is_a?(
|
11
|
+
@severity = (severity.is_a?(Integer) ? severity : Severity.label_to_level(severity))
|
12
12
|
@message = message
|
13
13
|
@progname = progname
|
14
14
|
@pid = pid
|
data/lib/lumberjack/logger.rb
CHANGED
data/spec/formatter_spec.rb
CHANGED
@@ -32,7 +32,7 @@ describe Lumberjack::Formatter do
|
|
32
32
|
|
33
33
|
it "should format an object based on the class hierarchy" do
|
34
34
|
formatter.add(Numeric){|obj| "number: #{obj}"}
|
35
|
-
formatter.add(
|
35
|
+
formatter.add(Integer){|obj| "fixed number: #{obj}"}
|
36
36
|
formatter.format(10).should == "fixed number: 10"
|
37
37
|
formatter.format(10.1).should == "number: 10.1"
|
38
38
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lumberjack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: timecop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8
|
33
|
+
version: '0.8'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.8
|
40
|
+
version: '0.8'
|
41
41
|
description: A simple, powerful, and very fast logging utility that can be a drop
|
42
42
|
in replacement for Logger or ActiveSupport::BufferedLogger. Provides support for
|
43
43
|
automatically rolling log files even with multiple processes writing the same log
|