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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a62ab302df8141afb410a4c50c4caf6209ec5c5
4
- data.tar.gz: 36e54fd44f8af8a3970a34f2dc3c3bfb011a6ff8
3
+ metadata.gz: 2e3b0ba8a97c6cd9b7c21a8342df5004c6643a7c
4
+ data.tar.gz: 3f8a63f5387688c867f1ffa8d1e0df6aa6d49b9f
5
5
  SHA512:
6
- metadata.gz: 6ac3c76a1e33bab723ff97a9a667d36a630f07541571518786f175b01f0a3ee49ac0ace70ecadd3a7ecb8db38d109b7967aa7abf7e85b123d7cb73de505c6d93
7
- data.tar.gz: 6f67110bc4ee430122fab313bdd730c5c079060a4430377bc8c68651b5292e4b0452e4dbf15415902c69775ca2a88aab35fc4eb4e6b06bad4871604ed18a8f0f
6
+ metadata.gz: 2db9b5b15274ba810178994718f9e19568c4e0dae791fbbac39166ce1905e7c1afc7e16ae54c5c491cbb217ab2db7068464aa45e0adae8b4f4fc0b6982e1b147
7
+ data.tar.gz: 678ca72d7dfdd683eaa6d47206f57723af461d0f696762aaf5b3796e650d23cb611dea8430dcef33e6de48faa18c5d2f65182e2e15ad6129d069b270ff38a067
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.0.11
@@ -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?(Fixnum) ? severity : Severity.label_to_level(severity))
11
+ @severity = (severity.is_a?(Integer) ? severity : Severity.label_to_level(severity))
12
12
  @message = message
13
13
  @progname = progname
14
14
  @pid = pid
@@ -200,7 +200,7 @@ module Lumberjack
200
200
 
201
201
  # Set the minimum level of severity of messages to log.
202
202
  def level=(severity)
203
- if severity.is_a?(Fixnum)
203
+ if severity.is_a?(Integer)
204
204
  @level = severity
205
205
  else
206
206
  @level = Severity.label_to_level(severity)
@@ -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(Fixnum){|obj| "fixed number: #{obj}"}
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.10
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: 2016-01-02 00:00:00.000000000 Z
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.0
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.0
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