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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/console/serialized/logger.rb +6 -1
- data/lib/console/terminal/logger.rb +4 -4
- data/lib/console/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: e84e89c5147fddf5d7dcbac7609431adce37ee40b2e6e4ac28c9275054c4d1e1
|
4
|
+
data.tar.gz: 3a919ba4deb380f97009df1c8f3bee617624359415044e457f21bfb6b0100627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.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-
|
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.
|
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
|