enhanced-logger 0.1.6 → 0.1.7

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: dbb27cef891438a0c1fe03c5dff29ff8a01e6886
4
- data.tar.gz: 1d9e2d85bb98ba72d05eb153241184a2565936ee
3
+ metadata.gz: 9758e89d9fe8fbbd43e02e8ec5444983630f0111
4
+ data.tar.gz: 10373e2f8c954c8ddec61e858e5997fb1f154789
5
5
  SHA512:
6
- metadata.gz: f79f12df2fb40151d13f61a0ca1c9743a2a1c0c426c1512616a80bf82032a8ec3955999d13a27280667470e284b6db962b16de045b47d20ee06c7c81f9cda8d0
7
- data.tar.gz: fdcc4d17bc2bd77c4a5dada5681b519fc437764beee8b84a25034a813200142b0279222ce2b51dc3199c4e81c9d51f89c62e239956500dd8b09614f0cad820b3
6
+ metadata.gz: 748c8e6774fa8d844f86bb779fad56544e08e20e83e8d783333eb252e5d12a15f49ca3341d06b0e745f672cb5db14471b4e687559becbdc3165f47a895702c81
7
+ data.tar.gz: 9d8e727dfaea81cbeac21c08a323ac366784f10dd38064f21b117a968f85e881434362cc4dff48093fe93e99fb0e9b868ee8ec2726f44c1d5fb465bbd2f48dbf
@@ -4,8 +4,8 @@ module EnhancedLogger
4
4
 
5
5
  attr_accessor :level
6
6
 
7
- def initialize level=:info
8
- @level = level || :info
7
+ def initialize level=1
8
+ @level = level
9
9
  $stdout.sync = true
10
10
  end
11
11
 
@@ -20,23 +20,23 @@ module EnhancedLogger
20
20
  end
21
21
 
22
22
  def debug?
23
- LEVELS[ @level ] <= LEVELS[ :debug ]
23
+ @level <= LEVELS[ :debug ]
24
24
  end
25
25
 
26
26
  def info?
27
- LEVELS[ @level ] <= LEVELS[ :info ]
27
+ @level <= LEVELS[ :info ]
28
28
  end
29
29
 
30
30
  def warn?
31
- LEVELS[ @level ] <= LEVELS[ :warn ]
31
+ @level <= LEVELS[ :warn ]
32
32
  end
33
33
 
34
34
  def error?
35
- LEVELS[ @level ] <= LEVELS[ :error ]
35
+ @level <= LEVELS[ :error ]
36
36
  end
37
37
 
38
38
  def fatal?
39
- LEVELS[ @level ] <= LEVELS[ :fatal ]
39
+ @level <= LEVELS[ :fatal ]
40
40
  end
41
41
 
42
42
 
@@ -1,3 +1,3 @@
1
1
  module EnhancedLogger
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enhanced-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Ulmer