extended_logger 0.6.3 → 0.6.4

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: 5f704fdee2a7eb383aa5cb2d3a9be31eec5771e7
4
- data.tar.gz: 254c1e8950e8d6a6b04a2c667874b08e843fcde6
3
+ metadata.gz: dd79c2d50d7076bb1db726a2d2baf47a286fc61b
4
+ data.tar.gz: 0aaec04c2633a80e1defec4058d81516bf1029c0
5
5
  SHA512:
6
- metadata.gz: f74eafcc745d45528526abec4303c3a73bfff27d39e2682c7d3e7c87511c096e662bf0e7e515e4865b69674a804b715d27900f21d2da2170c0ce93428bdb1c68
7
- data.tar.gz: 4e2eac9a4fd0b39f8bfa5b9926d6d2eecd0c5e76613531d649801807c2c86e6344da9a6cc292279e62c19c1d68052291819bd9b3910fbc6107beec047d63d65c
6
+ metadata.gz: 224487cc6e176f34cec756f10498ad7e2b795a13763670a745c0d82a4ade0fac4f575c7ffbe32914d6f2f64f83f793990aaa6e450e78d0aa1e1d3a4114ecfd23
7
+ data.tar.gz: 913eef8b2d0b5c4eca939c4e94ee2d42300b11314806ccdd6ad43f2c9b49e1d17e8cefc778da8c233e6669f3b289d2948f11804fb33d4d595e8b5618f6589c85
@@ -59,11 +59,11 @@ class ExtendedLogger
59
59
  end
60
60
 
61
61
  def level
62
- @level ||= levels.default
62
+ sink.level
63
63
  end
64
64
 
65
65
  def level= reference
66
- @level = levels.resolve reference
66
+ sink.level = reference
67
67
  end
68
68
 
69
69
  module Assertions
@@ -18,7 +18,7 @@ class ExtendedLogger
18
18
  device = File.open device, 'a+' if device.is_a? String
19
19
  device.sync = true
20
20
 
21
- if color_scheme == :none or not (device.tty? and device.is_a? StringIO)
21
+ if color_scheme == :none or not (device.tty? or device.is_a? StringIO)
22
22
  color_scheme = nil
23
23
  end
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extended_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd