console 1.28.0 → 1.28.1
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/version.rb +1 -1
- data/lib/console/warn.rb +11 -5
- data/readme.md +8 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 8c1e55ddfff39c11445d128d77669db8d27047b5bb52451c0dcd41986b9efe99
|
4
|
+
data.tar.gz: 314cd06dc220bc184899c393d68ef8e0387e92bbeb39522b2ec9ab11b408cb01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2b5c3d3d01818a45f7680e07417c5c6bb805caa81c5a598d7a4c83fa77363cdbf241eb5f00327ff835c130ebe53994f34c923c50304c972d01b714fba638263
|
7
|
+
data.tar.gz: 6cc85f8a898133e9af736f89b0d12cda37fdc46f2467131e89b6784842a8cdff9757f0981cf18c7ae0cbf1b21d005aaf4f7b9f647c891ec96b790833446c4fcd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/console/version.rb
CHANGED
data/lib/console/warn.rb
CHANGED
@@ -18,11 +18,17 @@ module Console
|
|
18
18
|
options[:backtrace] = caller(uplevel, 1)
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
if arguments.last.is_a?(Exception)
|
22
|
+
exception = arguments.pop
|
23
|
+
|
24
|
+
Console::Event::Failure.for(exception).emit(*arguments, severity: :warn)
|
25
|
+
else
|
26
|
+
begin
|
27
|
+
fiber.console_warn = true
|
28
|
+
Console.warn(*arguments, **options)
|
29
|
+
ensure
|
30
|
+
fiber.console_warn = false
|
31
|
+
end
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|
data/readme.md
CHANGED
@@ -28,6 +28,14 @@ Please see the [project documentation](https://socketry.github.io/console/) for
|
|
28
28
|
|
29
29
|
- [Events](https://socketry.github.io/console/guides/events/index) - This guide explains how to log structured events with a well-defined schema.
|
30
30
|
|
31
|
+
## Releases
|
32
|
+
|
33
|
+
Please see the [project releases](https://socketry.github.io/console/releases/index) for all releases.
|
34
|
+
|
35
|
+
### v1.28.0
|
36
|
+
|
37
|
+
- Add support for `Kernel#warn` redirection to `Console.warn`.
|
38
|
+
|
31
39
|
## Contributing
|
32
40
|
|
33
41
|
We welcome contributions to this project.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|