console 1.23.2 → 1.23.4
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/capture.rb +5 -1
- data/lib/console/compatible/logger.rb +1 -1
- data/lib/console/output/json.rb +1 -1
- data/lib/console/terminal/logger.rb +8 -2
- data/lib/console/version.rb +1 -1
- data/license.md +1 -1
- data/readme.md +14 -2
- data.tar.gz.sig +0 -0
- metadata +18 -4
- 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: 7b083e1f81e12d9ba2dae4929c26a2f193d772edc1b32a08714bc317353b08fc
|
4
|
+
data.tar.gz: 3c560f105a74fcf8f0b75c1e8cac36abfabbfaa3fab2781e32780eb85e36a8de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfc967d833d6522aa8a50e0482f5f2f8f436d16afbd94b47c6347e2c9bc706edacf6047ae49f344b7cbb93fdca85a4c6c98f0595af41583e368be8c1192b9ef1
|
7
|
+
data.tar.gz: da3a3e5af4b8f60bbfb69fa734ea4a17bbf7167d9ff81db02b7492ce65ea5b0bcda1ac7d607b44a17f164bc9bfda44b9226fb2996668d60feb4b518c7bf022f1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/console/capture.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2019-
|
4
|
+
# Copyright, 2019-2023, by Samuel Williams.
|
5
5
|
|
6
6
|
require_relative 'filter'
|
7
7
|
|
@@ -55,6 +55,10 @@ module Console
|
|
55
55
|
message[:arguments] = arguments
|
56
56
|
end
|
57
57
|
|
58
|
+
if annotation = Fiber.current.annotation
|
59
|
+
message[:annotation] = annotation
|
60
|
+
end
|
61
|
+
|
58
62
|
if block_given?
|
59
63
|
if block.arity.zero?
|
60
64
|
message[:message] = yield
|
data/lib/console/output/json.rb
CHANGED
@@ -149,8 +149,14 @@ module Console
|
|
149
149
|
buffer = +""
|
150
150
|
|
151
151
|
if @verbose
|
152
|
-
if annotation = Fiber.current.annotation
|
153
|
-
|
152
|
+
if annotation = Fiber.current.annotation
|
153
|
+
# While typically annotations should be strings, that is not always the case.
|
154
|
+
annotation = annotation.to_s
|
155
|
+
|
156
|
+
# If the annotation is empty, we don't want to print it, as it will look like a formatting bug.
|
157
|
+
if annotation.size > 0
|
158
|
+
buffer << ": #{@terminal[:annotation]}#{annotation}#{@terminal.reset}"
|
159
|
+
end
|
154
160
|
end
|
155
161
|
end
|
156
162
|
|
data/lib/console/version.rb
CHANGED
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -18,7 +18,13 @@ When Ruby decided to reverse the order of exception backtraces, I finally gave u
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
Please see the [project documentation](https://socketry.github.io/console).
|
21
|
+
Please see the [project documentation](https://socketry.github.io/console/) for more details.
|
22
|
+
|
23
|
+
- [Getting Started](https://socketry.github.io/console/guides/getting-started/index) - This guide explains how to use `console` for logging.
|
24
|
+
|
25
|
+
- [Command Line](https://socketry.github.io/console/guides/command-line/index) - This guide explains how the `console` gem can be controlled using environment variables.
|
26
|
+
|
27
|
+
- [Integration](https://socketry.github.io/console/guides/integration/index) - This guide explains how to integrate the `console` output into different systems.
|
22
28
|
|
23
29
|
## Contributing
|
24
30
|
|
@@ -36,4 +42,10 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
|
|
36
42
|
|
37
43
|
### Contributor Covenant
|
38
44
|
|
39
|
-
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
45
|
+
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
46
|
+
|
47
|
+
## See Also
|
48
|
+
|
49
|
+
- [console-adapter-rails](https://github.com/socketry/console-adapter-rails)
|
50
|
+
- [console-adapter-sidekiq](https://github.com/socketry/console-adapter-sidekiq)
|
51
|
+
- [console-output-datadog](https://github.com/socketry/console-output-datadog)
|
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.23.
|
4
|
+
version: 1.23.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -46,7 +46,7 @@ cert_chain:
|
|
46
46
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
47
47
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
48
48
|
-----END CERTIFICATE-----
|
49
|
-
date:
|
49
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
50
50
|
dependencies:
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: fiber-annotation
|
@@ -76,6 +76,20 @@ dependencies:
|
|
76
76
|
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: json
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
79
93
|
description:
|
80
94
|
email:
|
81
95
|
executables: []
|
@@ -117,7 +131,7 @@ files:
|
|
117
131
|
- lib/console/version.rb
|
118
132
|
- license.md
|
119
133
|
- readme.md
|
120
|
-
homepage: https://github.
|
134
|
+
homepage: https://socketry.github.io/console/
|
121
135
|
licenses:
|
122
136
|
- MIT
|
123
137
|
metadata: {}
|
@@ -136,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
150
|
- !ruby/object:Gem::Version
|
137
151
|
version: '0'
|
138
152
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.5.5
|
140
154
|
signing_key:
|
141
155
|
specification_version: 4
|
142
156
|
summary: Beautiful logging for Ruby.
|
metadata.gz.sig
CHANGED
Binary file
|