workers 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,19 @@
1
1
  module Workers
2
2
  module Helpers
3
3
  def log_debug(msg, e = nil)
4
- @logger.debug(concat_e(msg, e))
4
+ (@_logger || @logger).debug(concat_e(msg, e))
5
5
  end
6
6
 
7
7
  def log_info(msg, e = nil)
8
- @logger.info(concat_e(msg, e))
8
+ (@_logger || @logger).info(concat_e(msg, e))
9
9
  end
10
10
 
11
11
  def log_warn(msg, e = nil)
12
- @logger.warn(concat_e(msg, e))
12
+ (@_logger || @logger).warn(concat_e(msg, e))
13
13
  end
14
14
 
15
15
  def log_error(msg, e = nil)
16
- @logger.error(concat_e(msg, e))
16
+ (@_logger || @logger).error(concat_e(msg, e))
17
17
  end
18
18
 
19
19
  def concat_e(msg, e = nil)
@@ -1,3 +1,3 @@
1
1
  module Workers
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
12
+ date: 2013-05-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Workers is a Ruby gem for performing work in background threads.
15
15
  email: