extended_logger 0.2.6 → 0.2.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: 49556d004b36ef29b6255c074ec501261fc36b51
4
- data.tar.gz: f07f8bf086584eacc2e4294def7cd9bc3d0521a8
3
+ metadata.gz: 69fbd42275b49a88b59b5c6c9304b1c85802ec13
4
+ data.tar.gz: df224b6d6ab28e632911b59f567afc139c29b664
5
5
  SHA512:
6
- metadata.gz: dee76927f44546a57acc7d6549cf1881d3e3e475a36b24c9f1785de66a42eb78e3ea49b843f67e5e214baa42b64932467d54996fd14668da3b0fad279165edc2
7
- data.tar.gz: 5dfad9653cbd53610122e28a4b4be44f9bfbb39d947fb130274971be5218730dd87c257e78043a9539e55bbbef004787903b96a97dad4c42ace1e317a4310e4e
6
+ metadata.gz: 56c924b08014891c69e89515d24049c90f942767cdafdd12d5507359e164f382c69e2980e045171a68f6cb491ffeb97d8283865cf8c3d5b01c83f6f240c1e3a0
7
+ data.tar.gz: d204424f8e5a9b97afcd95b48d2e463cfb462a5f36a6665d5aab55b5f5e6a7ffa99059d45182961ab0685801479437021a4ff803105514845fe9367110a1754b
@@ -45,11 +45,11 @@ class ExtendedLogger
45
45
  end
46
46
 
47
47
  def device
48
- ENV['LOG_DEVICE'] or @device || $stderr
48
+ @device || env['LOG_DEVICE'] || $stderr
49
49
  end
50
50
 
51
51
  def level
52
- level = ENV['LOG_LEVEL'] || @level
52
+ level = @level || env['LOG_LEVEL']
53
53
 
54
54
  return unless level
55
55
  return level if level.is_a? Integer
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.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd