ci_logger 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci_logger/logger.rb +11 -0
- data/lib/ci_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cf7f2dd60a91e9fa17277d37076bb7dbf25b9113b49c1bcf845d338121315bd
|
4
|
+
data.tar.gz: 2061f9ff81b43d5f884cfe069adbd098ad3677b9ea0c823d1e2499638ede8510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc04cf494366424732fba457af6b7b5afc4a7a385f83971464e31af238acac51ac73bac9b4261198aff04f3c6dc625c48bc20add75f2c76bea5380f3b94ae45
|
7
|
+
data.tar.gz: 13d36af5c45028117b6e8a6ce865b67146b9663d919371d29b3da3f36fcb24c7ce10027ae9eb24695baf65496e388097ccf0c70bdfe91e7239716325b72d87e1
|
data/lib/ci_logger/logger.rb
CHANGED
@@ -42,6 +42,17 @@ module CiLogger
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def add(severity, message = nil, progname = nil)
|
45
|
+
if progname.nil?
|
46
|
+
progname = @progname
|
47
|
+
end
|
48
|
+
if message.nil?
|
49
|
+
if block_given?
|
50
|
+
message = yield
|
51
|
+
else
|
52
|
+
message = progname
|
53
|
+
progname = @progname
|
54
|
+
end
|
55
|
+
end
|
45
56
|
temporary_log << { severity: severity, message: message, progname: progname }
|
46
57
|
end
|
47
58
|
|
data/lib/ci_logger/version.rb
CHANGED