console 1.17.2 → 1.17.4

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: 689cedcf29ff2b68070c411deb10790350808468c1ad3dde6857522e9d87cd0c
4
- data.tar.gz: afb2b73337d57ffb59b41281f81736b30ba646a58925663fbb7f8bf356d65dd6
3
+ metadata.gz: 279d68c968f13422584c4b2101ce400373798479884450f4bd6db20783d115e3
4
+ data.tar.gz: 4a8df91d11deba88a6fc18f1dd2c09c16676cf32ef045c22aa1e25a942a4ba51
5
5
  SHA512:
6
- metadata.gz: 86d91efd799280a3e88fd0199ace0b305789f02ba55a658aa3c6baf2d1b31969658d0f946463d0220c3e2f032f62b62c3a6226753db49935d6a3dc7983cc3717
7
- data.tar.gz: bba2266b438742f21cf0819db3e948509d354f4c4477a032218b529f2efd0d12577956eb46adb364365f80cc4079587d4d615d217b124e0c230c9543b642261a
6
+ metadata.gz: b118601c16e8a70d0e654aca81d67f0130113a38c926fc931c2d9904b68946e02dfc76af1a7f7804954391ce0600f46ec6897c5416c3a22cdd1a64a2e5d6a798
7
+ data.tar.gz: b32ed9872c022cda4d7cfe2d1e754a8015021c7765cca971052b814cc4f50fd5a069c6fc7f50eda680e6576625f95c91c265f52aab8fc6a78c3e1813bc7391f0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -37,13 +37,17 @@ module Console
37
37
  record = {
38
38
  time: Time.now.iso8601,
39
39
  severity: severity,
40
- class: subject.class,
41
40
  oid: subject.object_id,
42
41
  pid: Process.pid,
43
42
  }
44
43
 
45
- if subject
44
+ # We want to log just a brief subject:
45
+ if subject.is_a?(String)
46
46
  record[:subject] = subject
47
+ elsif subject.is_a?(Module)
48
+ record[:subject] = subject.name
49
+ else
50
+ record[:subject] = subject.class.name
47
51
  end
48
52
 
49
53
  if annotation = Fiber.current.annotation
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2019-2022, by Samuel Williams.
5
5
 
6
6
  module Console
7
- VERSION = "1.17.2"
7
+ VERSION = "1.17.4"
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.2
4
+ version: 1.17.4
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