console 1.15.1 → 1.15.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
  SHA256:
3
- metadata.gz: 3a22bd139802242d9acc996a612905f05419887881056973d48545ad504502c5
4
- data.tar.gz: 5c855c52b01e37118bfae82dfbfa59848283b3d008d705fa478d0e173f667a37
3
+ metadata.gz: '07853910049e6c4b4412a73df16de18a7cf0887acff4fe36ec08cd00cd106370'
4
+ data.tar.gz: a83887255288e5174827784e45929d384e8f7b1c3f98e3c5d8234a8348c1da7d
5
5
  SHA512:
6
- metadata.gz: da5f8a41f1d6655a74b0c563b0fb52dfbff0c163afbce5ecfd58b706c39ec640e59ed1f4e509d740ca58ffbcfd412469d28b2c97e4ba9b49cafaee51f4230436
7
- data.tar.gz: 9150e31d177ec0a71f1c235dd5dbf08592f04d12912afd755c657799c018a835eba0f6dfd5ee5e7337f90755c7d804ad8928e5d26e22ab19942eab3fe069e967
6
+ metadata.gz: d8a9db4ebbd0ac263ae8e9081698bea9e8ed67af699de82eb5ff860f369c0c074049af827b207c62724cb4518be1b761c78142784f55023abf660a0c0f8c9cda
7
+ data.tar.gz: 1d2435e602df0b8992e5de30d6cf0a9f2784faab165b437c40fe3a86eb16d17b1e246ebc5a70962da6f7b70bf5ce3bd43f6685e8bb1be81700bb2c7dbb1bdb0c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -50,20 +50,20 @@ module Console
50
50
  super(nil)
51
51
 
52
52
  @progname = subject
53
- @logdev = LogDevice.new(@subject, output)
53
+ @logdev = LogDevice.new(subject, output)
54
54
  end
55
55
 
56
56
  def add(severity, message = nil, progname = nil)
57
57
  severity ||= UNKNOWN
58
-
58
+
59
59
  if @logdev.nil? or severity < level
60
60
  return true
61
61
  end
62
-
62
+
63
63
  if progname.nil?
64
64
  progname = @progname
65
65
  end
66
-
66
+
67
67
  if message.nil?
68
68
  if block_given?
69
69
  message = yield
@@ -72,14 +72,18 @@ module Console
72
72
  progname = @progname
73
73
  end
74
74
  end
75
-
75
+
76
76
  @logdev.call(
77
77
  progname, message,
78
78
  severity: format_severity(severity)
79
79
  )
80
-
80
+
81
81
  return true
82
82
  end
83
+
84
+ def format_severity(value)
85
+ super.downcase
86
+ end
83
87
  end
84
88
  end
85
89
  end
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Console
24
- VERSION = "1.15.1"
24
+ VERSION = "1.15.2"
25
25
  end
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.1
4
+ version: 1.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file