testa_logger 0.1.18 → 0.1.19

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: 0e54c8fcfa637c52af88557047c609c20bae5fceaa4c7c1f858b932e99dcea83
4
- data.tar.gz: 90e8a792881aadacd85e60637092950fe32eacbae6def26631ed590f870e3c04
3
+ metadata.gz: 307ec423100fc91b076c4a0b74f4e21f3bad229f0229d5590f422026bc2559ff
4
+ data.tar.gz: cfb7daddd00e39662ec98eb0ceb70251b984db573067f8d9ad0b3d050c06d161
5
5
  SHA512:
6
- metadata.gz: cfedcc35d6e967ba4b7d89d952ae3d8ebc55659eb46d4f4233d795212d4d01b9659ff195f048360e717e4ca662699ff233eecf1ca2d062eeceb167919df9c4e0
7
- data.tar.gz: 75787855da741df695fbe9cb9726ff63fa979d06f657e801bf2f7dfa00abdf8dd970bfffa0448e7d7f20a3830c7ac27f88dd047d8a65a6210efe22465c6a976e
6
+ metadata.gz: '019210822fcf3b11855ea4baeb121d105f4c3f411cd2367b09fe7ce5e7beb48da099a7346cc9f7b910e314534cac5fafc41e051e704ab6e70bac58ed2538da9c'
7
+ data.tar.gz: de1d807516efb2e4d94934dbe1527ef0cc339599cb6644405b73f44ac8dd3a9a3d63e1cfcec470931bc0d45c495a03ecfc8a922636f54c774957d2bb7e37c0fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testa_logger (0.1.18)
4
+ testa_logger (0.1.19)
5
5
  activesupport
6
6
  awesome_print
7
7
  aws-sdk-s3
@@ -80,27 +80,27 @@ module TestaLogger
80
80
  options.formatter
81
81
  end
82
82
 
83
- def debug(tag = "", *args, &block)
83
+ def debug(tag = nil, *args, &block)
84
84
  add_log_to_queue(DEBUG, tag, args, &block)
85
85
  end
86
86
 
87
- def info(tag = "", *args, &block)
87
+ def info(tag = nil, *args, &block)
88
88
  add_log_to_queue(INFO, tag, args, &block)
89
89
  end
90
90
 
91
- def warn(tag = "", *args, &block)
91
+ def warn(tag = nil, *args, &block)
92
92
  add_log_to_queue(WARN, tag, args, &block)
93
93
  end
94
94
 
95
- def error(tag = "", *args, &block)
95
+ def error(tag = nil, *args, &block)
96
96
  add_log_to_queue(ERROR, tag, args, &block)
97
97
  end
98
98
 
99
- def fatal(tag = "", *args, &block)
99
+ def fatal(tag = nil, *args, &block)
100
100
  add_log_to_queue(FATAL, tag, args, &block)
101
101
  end
102
102
 
103
- def unknown(tag = "", *args, &block)
103
+ def unknown(tag = nil, *args, &block)
104
104
  add_log_to_queue(UNKNOWN, tag, args, &block)
105
105
  end
106
106
 
@@ -210,7 +210,7 @@ module TestaLogger
210
210
  def extract_tag(tag, args)
211
211
  if args.count.zero?
212
212
  # if no additional arguments is given, message is in tag variable
213
- args.unshift(tag)
213
+ args.unshift(tag) unless tag.nil?
214
214
  tag = NO_TAG
215
215
  end
216
216
  tag
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic