console 1.15.0 → 1.15.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/resolver.rb +2 -2
- 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: 3a22bd139802242d9acc996a612905f05419887881056973d48545ad504502c5
|
4
|
+
data.tar.gz: 5c855c52b01e37118bfae82dfbfa59848283b3d008d705fa478d0e173f667a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da5f8a41f1d6655a74b0c563b0fb52dfbff0c163afbce5ecfd58b706c39ec640e59ed1f4e509d740ca58ffbcfd412469d28b2c97e4ba9b49cafaee51f4230436
|
7
|
+
data.tar.gz: 9150e31d177ec0a71f1c235dd5dbf08592f04d12912afd755c657799c018a835eba0f6dfd5ee5e7337f90755c7d804ad8928e5d26e22ab19942eab3fe069e967
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/console/resolver.rb
CHANGED
@@ -24,7 +24,7 @@ require_relative 'filter'
|
|
24
24
|
|
25
25
|
module Console
|
26
26
|
class Resolver
|
27
|
-
# You can change the log level for different classes using CONSOLE_
|
27
|
+
# You can change the log level for different classes using CONSOLE_$LEVEL env vars.
|
28
28
|
#
|
29
29
|
# e.g. `CONSOLE_WARN=Acorn,Banana CONSOLE_DEBUG=Cat` will set the log level for the classes Acorn and Banana to `warn` and Cat to `debug`. This overrides the default log level.
|
30
30
|
#
|
@@ -36,7 +36,7 @@ module Console
|
|
36
36
|
# @returns [Nil] If there were no custom logging levels specified in the environment.
|
37
37
|
# @returns [Resolver] If there were custom logging levels, then the created resolver is returned.
|
38
38
|
def self.default_resolver(logger, env = ENV)
|
39
|
-
# Find all CONSOLE_
|
39
|
+
# Find all CONSOLE_$LEVEL variables from environment:
|
40
40
|
levels = logger.class::LEVELS
|
41
41
|
.map{|label, level| [level, env["CONSOLE_#{label.upcase}"]&.split(',')]}
|
42
42
|
.to_h
|
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.15.
|
4
|
+
version: 1.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -42,7 +42,7 @@ cert_chain:
|
|
42
42
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
43
43
|
HiLJ8VOFx6w=
|
44
44
|
-----END CERTIFICATE-----
|
45
|
-
date: 2022-
|
45
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
46
46
|
dependencies:
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: fiber-local
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.1.6
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: Beautiful logging for Ruby.
|
metadata.gz.sig
CHANGED
Binary file
|