weather-sage 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 2d8a169b0525d21c350826048cf01cc233741f1c1d897f88a1f2f05787aa38ad
4
- data.tar.gz: 440a697b31b7e806c82afd0e572e313d1fb9e033a67cda205ba1c00be301bc6d
3
+ metadata.gz: b661cb5dcac76ec4b94612d762a34b7b4614bb4bc145143e4dfaf7fe90d05f0a
4
+ data.tar.gz: eb9e4276c9960ddddeec4b9657cab4312acd4f6ce9f1e58750a681978a657656
5
5
  SHA512:
6
- metadata.gz: 80305e078b4be11c351509cb1aaef299ae47fb8db851f35a1ed1651319f2ff89b4dd3246c8a5b2a23ad01a87adddcb060b4353fc9001fbbcc0c997bac4df306f
7
- data.tar.gz: b1f752c2f412cf374b85caec3563801d299ec17e94102276f71da9ac5be2fea5fe895c8329bbc9e2ca1c1ffd5f0fb579959282246a33bec97214e195e60ba94c
6
+ metadata.gz: 930ab6cb3bf3bec99c3354d3395eaf97dff6f838640af850750c1efabd5545935382cfcdb82a695d01592266d0c118f28dd02873db955d99c6548118c0f18702
7
+ data.tar.gz: c0f2d45666a1fa48e81ec94ecc1902eec9078731166a5183f5570ed94d8a8c5ca52f2ed668b4cff45a1c72792f9a38fc628374f2e3eba7644a4caac25e994f24
@@ -10,7 +10,7 @@ module WeatherSage
10
10
  #
11
11
  # Release version.
12
12
  #
13
- VERSION = '0.1.1'
13
+ VERSION = '0.1.2'
14
14
 
15
15
  # :nodoc:
16
16
  LIB_DIR = File.join(__dir__, 'weather-sage').freeze
@@ -22,20 +22,17 @@ class WeatherSage::CLI::Env::Log < ::Logger
22
22
  #
23
23
  def initialize(env)
24
24
  # get log level (default to "warn" if unspecified)
25
- level = (env.get('LOG_LEVEL', DEFAULT_LEVEL)).upcase
25
+ log_level = (env.get('LOG_LEVEL', DEFAULT_LEVEL)).upcase
26
26
 
27
- # create logger
28
- super(
29
- # log path (default to STDERR)
30
- env.get('LOG_PATH', STDERR),
27
+ # create logger from log path (default to STDERR)
28
+ super(env.get('LOG_PATH', STDERR))
31
29
 
32
- # log level (default to WARN)
33
- level: ::Logger.const_get(level)
34
- )
30
+ # set log level (default to WARN)
31
+ self.level = ::Logger.const_get(log_level)
35
32
 
36
33
  # log level
37
34
  info('Env::Log#initialize') do
38
- 'level = %p' % [level]
35
+ 'level = %p' % [log_level]
39
36
  end
40
37
  end
41
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather-sage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Duncan