console 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/console/terminal/logger.rb +8 -2
- data/lib/console/terminal/text.rb +4 -0
- data/lib/console/terminal/xterm.rb +4 -0
- data/lib/console/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 905a0b4a1dc6fc5ce11e3c8ddb2cddf17ea280cb8e59fec936e314e82cea8b6f
|
4
|
+
data.tar.gz: dc1bbe02f4e974fbec84385b2214f8ad27e8f2cd9cdeaf683bbe96645c613161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73dc76f42e3249c3ead06056dedef0e0eb37025f5389d14e200852a6a9355b7d968694090bdee8000f34f48241fbe90ebef45a4081b2949189adff16d977d5aa
|
7
|
+
data.tar.gz: 7f4a918850a457ff12de55006854cbc068b8cbd3a02a239e7587d9d64424cfcfffebd24400f3a12b1d5cd28b4140a6cd2c23bdd328a6ef4acd40bc9002384273
|
@@ -35,12 +35,18 @@ module Console
|
|
35
35
|
end
|
36
36
|
|
37
37
|
class Logger
|
38
|
-
def initialize(io = $stderr, verbose:
|
38
|
+
def initialize(io = $stderr, verbose: nil, **options)
|
39
39
|
@io = io
|
40
|
-
@verbose = verbose
|
41
40
|
@start = Time.now
|
42
41
|
|
43
42
|
@terminal = Terminal.for(io)
|
43
|
+
|
44
|
+
if verbose.nil?
|
45
|
+
@verbose = !@terminal.colors?
|
46
|
+
else
|
47
|
+
@verbose = verbose
|
48
|
+
end
|
49
|
+
|
44
50
|
@terminal[:logger_prefix] ||= @terminal.style(nil, nil, :bold)
|
45
51
|
@terminal[:logger_suffix] ||= @terminal.style(:white, nil, :faint)
|
46
52
|
@terminal[:debug] = @terminal.style(:cyan)
|
data/lib/console/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -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.
|
118
|
+
rubygems_version: 3.0.2
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Beautiful logging for Ruby.
|