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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b8ae544ad2e89e1b19b599d71469fae18f3e2d9
4
- data.tar.gz: 36160510eee038ee2723b55a79584ae29fa060e2
3
+ metadata.gz: 9aae01c5c4e5cf4acfc08f3579266c32410184de
4
+ data.tar.gz: 54dc91a4941d54b7f4175ef2712145f668d48596
5
5
  SHA512:
6
- metadata.gz: 5a17231a928486307cc73d56847f997c419b6a49e59ad024d75f2a3de3019628f4de9ba662573f9ec790c1e0865a1897c88938970e6d2aa6d93c97334ad302fd
7
- data.tar.gz: 48eb8f9b23a36a8e5d38bb8b17bac20d76ade1c7c0d8bd359b58347c74d60aa7ea2fbcfa23d1110e42602c29bcc1bd33f19c68351b6c46afb6e5967d6d99ed4e
6
+ metadata.gz: 8626bd806d18be33a32b60ca0c67be823592a75be9fa8c2f98ced0fa2b01e9af4efc959c120753a4eb68a15181ed7ba9748476c96601a3ad53f718c6b6b353af
7
+ data.tar.gz: 70e688475cadc7ea3d7a6add37a11a70f3214056e4d377a70c447c01824a94bb29ab23a782dbc145ce4dd3e555719bf9bf27ea4a451d2caec223be5d269eb7b2
@@ -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
- taint unless tainted?
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
@@ -1,4 +1,4 @@
1
1
  module Yell #:nodoc:
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
4
4
 
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.1
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-01-08 00:00:00.000000000 Z
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