evt-log 2.1.1.0 → 2.1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/log/level.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf290942278a756b0955554e58f5f7bd328fe2b7f1933f237dfbef931849c772
4
- data.tar.gz: ae3f6ff25d2047bfcfd44248e98b8b2e6b187aa918c04fb2d7b9cac59868a2c1
3
+ metadata.gz: 571703e4d39532ea2b8ab193b45ca8df40d1f6c8cd24fff328f118e7d9d55925
4
+ data.tar.gz: c2b606c7bf40d2cb894f7baf90ea19c3caa650927a501c92afda41c1efd87da4
5
5
  SHA512:
6
- metadata.gz: 36c499cf6addc39899831f6bd00966df67dcea143bb6d87d9d26624792fea74a0e46f969821bd684f6b88ed4079f6657a1bc8530f0f6ef1e9ed691edf2749b23
7
- data.tar.gz: 041a02f64b8cc485cace2bb52f3cb5c6c45bb0522ed3b9475dd1c178926a0c84a0d2b882c9a34d19d0ce871ee683be917edf197f973bd6cbfb9bf59b45a94042
6
+ metadata.gz: 712c2aee1b7cc47a41702972e68bfd6a4ef7b7939674260d40c1e95bf0d6c5a0bfb5951afe2541b25847e352f87b48746808d37928dc0fdcca7cebdcaeac1801
7
+ data.tar.gz: 2adb1c1444d84a79b0dccf3b2826cacd9aa2d1b6abe00fe4bac98293e8911684f94e9c83ce9f253d081300cf3b583ed35cec6e5a9420771c4227659d90ec0945
@@ -53,11 +53,11 @@ class Log
53
53
 
54
54
  unless level == :_none
55
55
  if !levels?
56
- raise Log::Error, "Level #{level.inspect} cannot be set. The logger has no levels."
56
+ raise Log::Error, "Level \"#{level}\" cannot be set. The logger has no levels defined."
57
57
  end
58
58
 
59
59
  if !level?(level)
60
- raise Log::Error, "Level #{level.inspect} must be one of: #{levels.keys.join(', ')}"
60
+ raise Log::Error, "Level \"#{level}\" must be one of: #{levels.keys.reduce('') { |acc, val| acc << "\"#{val}\", " }.chomp(', ')}"
61
61
  end
62
62
  end
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.0
4
+ version: 2.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-initializer
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.0.1
140
+ rubygems_version: 3.1.2
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Logging to STD IO with levels, tagging, and coloring