yell 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yell/level.rb +3 -2
- data/lib/yell/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aae01c5c4e5cf4acfc08f3579266c32410184de
|
4
|
+
data.tar.gz: 54dc91a4941d54b7f4175ef2712145f668d48596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8626bd806d18be33a32b60ca0c67be823592a75be9fa8c2f98ced0fa2b01e9af4efc959c120753a4eb68a15181ed7ba9748476c96601a3ad53f718c6b6b353af
|
7
|
+
data.tar.gz: 70e688475cadc7ea3d7a6add37a11a70f3214056e4d377a70c447c01824a94bb29ab23a782dbc145ce4dd3e555719bf9bf27ea4a451d2caec223be5d269eb7b2
|
data/lib/yell/level.rb
CHANGED
@@ -41,6 +41,7 @@ module Yell #:nodoc:
|
|
41
41
|
#
|
42
42
|
# @param [Integer,String,Symbol,Array,Range,nil] severity The severity for the level.
|
43
43
|
def initialize( *severities )
|
44
|
+
@tainted = false
|
44
45
|
set(*severities)
|
45
46
|
end
|
46
47
|
|
@@ -176,7 +177,7 @@ module Yell #:nodoc:
|
|
176
177
|
else set!( index ) # :==
|
177
178
|
end
|
178
179
|
|
179
|
-
|
180
|
+
@tainted = true unless @tainted
|
180
181
|
end
|
181
182
|
|
182
183
|
def index_from( severity )
|
@@ -203,7 +204,7 @@ module Yell #:nodoc:
|
|
203
204
|
end
|
204
205
|
|
205
206
|
def set!( index, val = true )
|
206
|
-
@severities.map! { false } unless tainted
|
207
|
+
@severities.map! { false } unless @tainted
|
207
208
|
|
208
209
|
@severities[index] = val
|
209
210
|
end
|
data/lib/yell/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rudolf Schmidt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Yell - Your Extensible Logging Library. Define multiple adapters, various
|
14
14
|
log level combinations or message formatting options like you've never done before
|