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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a1588810973b2d219accb3bbb33005311b4c214c052c877a601ed8c9cbeaff8
4
- data.tar.gz: b2cb63cd0c9fa5e136455f5367fd3b8c47896ae04b0f73aa2fe72604af725e2f
3
+ metadata.gz: 689cedcf29ff2b68070c411deb10790350808468c1ad3dde6857522e9d87cd0c
4
+ data.tar.gz: afb2b73337d57ffb59b41281f81736b30ba646a58925663fbb7f8bf356d65dd6
5
5
  SHA512:
6
- metadata.gz: 964c9e0a5362a89d6bbf103d8a16a7f0c29eb5a032fc24d92d5339909bdd76970404640de776d097bd5d1f9b633270d4da67baa3bd2cc69f0cb59ab0564e8217
7
- data.tar.gz: 4e3cb21047824f715dbc13e98707c6aebc641ebf304c5e11e22c72cf4786102ffeb0690693d23194b45933991bf8de6fc38559f89a0da5a55a10afc2c5df665c
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.style(:blue)
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 << "(#{@terminal[:annotation]}#{annotation})#{@terminal.reset} "
153
+ buffer << ": #{@terminal[:annotation]}#{annotation}#{@terminal.reset}"
154
154
  end
155
155
  end
156
156
 
157
- buffer << @terminal[:logger_suffix].to_s
157
+ buffer << " #{@terminal[:logger_suffix]}"
158
158
 
159
159
  if object
160
160
  buffer << "[oid=0x#{object.object_id.to_s(16)}] "
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2019-2022, by Samuel Williams.
5
5
 
6
6
  module Console
7
- VERSION = "1.17.0"
7
+ VERSION = "1.17.2"
8
8
  end
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.0
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-05 00:00:00.000000000 Z
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