console 1.3.1 → 1.3.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: de8d5bf7f57f9e3f42e3590fd2aa5110afbb10d51e99905192d139d901ec1832
4
- data.tar.gz: 3813dcba7055875b67794c20fd57ef840a4db646fead53a08ca8687c749e5f72
3
+ metadata.gz: b8f2a979a83f16c98de42a9ce7c76db88096c5a6baeb0a6739842e627d9c3ba4
4
+ data.tar.gz: 2e326f28c7a744ff783d009db13438d4333a02e63347fe03aedaab2edb1aee48
5
5
  SHA512:
6
- metadata.gz: bc435d2391b023d4f6921b4897e3dae2116b48e68f2b2b54311da4b7acd3219d52f6a18b805e0fbe9cd76a49d2d698208a6dcedf880ab9ebe3a5562944e7509f
7
- data.tar.gz: 39e2aa007367e6423c9f633f027fdfea4dc65568e251cee47844a5dc8a83540391138b359384fbeebbc7df73c65c9ff4352da419b84d1ddc3cc80da23699b3ae
6
+ metadata.gz: 5e1df308579cd0c3da40dd8fdb970bfd41f0fd006acb9ca62e73dfdd47b62d28ce719f71eb853bea3400f0c1a1b2eec18be82a601652388ebcc8a8a32ac9f135
7
+ data.tar.gz: 5fd7718437f58ce2a8b41f91f9661b227a5b9b307046f057b837f63fbaf93642fa01b06c35cf720907d2b3d666b828bed3c01d6514f167f92142db18c56a3b9c
@@ -37,10 +37,10 @@ module Console
37
37
  LEVELS[level] || Logger.warn
38
38
  elsif $DEBUG
39
39
  Logger::DEBUG
40
- elsif $VERBOSE
41
- Logger::INFO
42
- else
40
+ elsif $VERBOSE.nil?
43
41
  Logger::WARN
42
+ else
43
+ Logger::INFO
44
44
  end
45
45
  end
46
46
  end
@@ -49,6 +49,7 @@ module Console
49
49
  @logger = Logger.new(
50
50
  Terminal::Logger.new($stderr),
51
51
  level: self.default_log_level,
52
+ verbose: !$VERBOSE.nil?,
52
53
  )
53
54
 
54
55
  def logger= logger
@@ -63,6 +63,8 @@ module Console
63
63
  @subjects = {}
64
64
 
65
65
  @options = options
66
+
67
+ verbose!(verbose)
66
68
  end
67
69
 
68
70
  def with(level: @level, verbose: @verbose, **options)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Console
22
- VERSION = "1.3.1"
22
+ VERSION = "1.3.2"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-02 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.0.3
118
+ rubygems_version: 3.0.2
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Beautiful logging for Ruby.