console 1.17.0 → 1.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/console/terminal/logger.rb +8 -8
- data/lib/console/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 689cedcf29ff2b68070c411deb10790350808468c1ad3dde6857522e9d87cd0c
|
4
|
+
data.tar.gz: afb2b73337d57ffb59b41281f81736b30ba646a58925663fbb7f8bf356d65dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d91efd799280a3e88fd0199ace0b305789f02ba55a658aa3c6baf2d1b31969658d0f946463d0220c3e2f032f62b62c3a6226753db49935d6a3dc7983cc3717
|
7
|
+
data.tar.gz: bba2266b438742f21cf0819db3e948509d354f4c4477a032218b529f2efd0d12577956eb46adb364365f80cc4079587d4d615d217b124e0c230c9543b642261a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -63,7 +63,7 @@ module Console
|
|
63
63
|
@terminal[:error] = @terminal.style(:red)
|
64
64
|
@terminal[:fatal] = @terminal[:error]
|
65
65
|
|
66
|
-
@terminal[:annotation] = @terminal.
|
66
|
+
@terminal[:annotation] = @terminal.reset
|
67
67
|
@terminal[:value] = @terminal.style(:blue)
|
68
68
|
|
69
69
|
self.register_defaults(@terminal)
|
@@ -101,10 +101,6 @@ module Console
|
|
101
101
|
format_argument(argument, buffer)
|
102
102
|
end
|
103
103
|
|
104
|
-
if options&.any?
|
105
|
-
format_options(options, buffer)
|
106
|
-
end
|
107
|
-
|
108
104
|
if block_given?
|
109
105
|
if block.arity.zero?
|
110
106
|
format_argument(yield, buffer)
|
@@ -113,6 +109,10 @@ module Console
|
|
113
109
|
end
|
114
110
|
end
|
115
111
|
|
112
|
+
if options&.any?
|
113
|
+
format_options(options, buffer)
|
114
|
+
end
|
115
|
+
|
116
116
|
@io.write buffer.string
|
117
117
|
end
|
118
118
|
|
@@ -146,15 +146,15 @@ module Console
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def default_suffix(object = nil)
|
149
|
-
buffer = +"
|
149
|
+
buffer = +""
|
150
150
|
|
151
151
|
if @verbose
|
152
152
|
if annotation = Fiber.current.annotation and annotation.size > 0
|
153
|
-
buffer << "
|
153
|
+
buffer << ": #{@terminal[:annotation]}#{annotation}#{@terminal.reset}"
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
-
buffer << @terminal[:logger_suffix]
|
157
|
+
buffer << " #{@terminal[:logger_suffix]}"
|
158
158
|
|
159
159
|
if object
|
160
160
|
buffer << "[oid=0x#{object.object_id.to_s(16)}] "
|
data/lib/console/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
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.17.
|
4
|
+
version: 1.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -43,7 +43,7 @@ cert_chain:
|
|
43
43
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
44
44
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
45
45
|
-----END CERTIFICATE-----
|
46
|
-
date: 2023-06-
|
46
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
47
47
|
dependencies:
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: fiber-local
|
metadata.gz.sig
CHANGED
Binary file
|