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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 575c03831991c807eadce1326d3b9101d7689f7b612b8d21e4c26172a6086456
4
- data.tar.gz: f7cadc500bb29f733180abe3ec3fa7d00aab7de434704c97800b03fc13193ee2
3
+ metadata.gz: 4cf7f2dd60a91e9fa17277d37076bb7dbf25b9113b49c1bcf845d338121315bd
4
+ data.tar.gz: 2061f9ff81b43d5f884cfe069adbd098ad3677b9ea0c823d1e2499638ede8510
5
5
  SHA512:
6
- metadata.gz: dfd5a532fc751468a82c30c4f8ad5eb15e8cc15cd36d61717077d2ec951738c6ec9b2763c50ae0f1f2e943c9b4442dcee1c093be05a2a226653e6b3c71b0aaf9
7
- data.tar.gz: ca00f9a82881ef239eabce27e428fa3139b54665f65a01bfd01b7c9a8adea4d68f270a0e5397d7bc1a1d964e5634e41d17f97ab8974d9080be6708fe40671d9b
6
+ metadata.gz: 1dc04cf494366424732fba457af6b7b5afc4a7a385f83971464e31af238acac51ac73bac9b4261198aff04f3c6dc625c48bc20add75f2c76bea5380f3b94ae45
7
+ data.tar.gz: 13d36af5c45028117b6e8a6ce865b67146b9663d919371d29b3da3f36fcb24c7ce10027ae9eb24695baf65496e388097ccf0c70bdfe91e7239716325b72d87e1
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module CiLogger
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet