console 1.17.1 → 1.17.3

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: ec8cced656faf79ff199d9ddc458a08b8e0591076ff7a4f8358f15a8d1f4bd31
4
- data.tar.gz: d6e73fbbc6ae63365407df0816fc78749963a504a8a201f06c2ddc8f0685a886
3
+ metadata.gz: e84e89c5147fddf5d7dcbac7609431adce37ee40b2e6e4ac28c9275054c4d1e1
4
+ data.tar.gz: 3a919ba4deb380f97009df1c8f3bee617624359415044e457f21bfb6b0100627
5
5
  SHA512:
6
- metadata.gz: 4550d9eaea0351ab08d1e238d8ea9a854265c10842b7e13be5c139d744694f8cf18446a0650590a5f3413d56c1cb10a421cb8633c197f15a66d0b82cc8090f6f
7
- data.tar.gz: 80e04be768476261d778a30eeb9d03e1d7f40eaea138e63f7b5dc5034e75ecf029769d2e879f549e424a57371fdf3def5b457af15cd3e423f6c3dd3dd019c3b9
6
+ metadata.gz: fe3f04bb8844f111c29aa00f63e0da6025babb8685d21002be06e23d11d60da620f943b5e0f0e75abad4548f8033a3417df5d3ff891e97ba114e0464510d07b1
7
+ data.tar.gz: 4617e34bcb9ef30a67d2f787babcc3bfa183ae8af4228bb7092362078841ada2e70227fe7ee7b3b09e4465e0f49a7784b374bcd9a3893781ee6aeb700aaa12d2
checksums.yaml.gz.sig CHANGED
Binary file
@@ -42,8 +42,13 @@ module Console
42
42
  pid: Process.pid,
43
43
  }
44
44
 
45
- if subject
45
+ # We want to log just a brief subject:
46
+ if subject.is_a?(String)
46
47
  record[:subject] = subject
48
+ elsif subject.is_a?(Module)
49
+ record[:subject] = subject.name
50
+ else
51
+ record[:subject] = subject.class.name
47
52
  end
48
53
 
49
54
  if annotation = Fiber.current.annotation
@@ -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
 
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2019-2022, by Samuel Williams.
5
5
 
6
6
  module Console
7
- VERSION = "1.17.1"
7
+ VERSION = "1.17.3"
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.1
4
+ version: 1.17.3
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-06 00:00:00.000000000 Z
46
+ date: 2023-07-19 00:00:00.000000000 Z
47
47
  dependencies:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: fiber-local
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.4.7
216
+ rubygems_version: 3.4.10
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Beautiful logging for Ruby.
metadata.gz.sig CHANGED
Binary file