redis-repeater 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module RedisRepeater
10
10
  @repeats = []
11
11
  # Get the logger
12
12
  @logger = logger
13
- @logger ||= Logger.new(File.open(configuration['log'], 'a')) if configuration['log']
13
+ @logger ||= Logger.new(configuration['log']) if configuration['log']
14
14
  @logger ||= Logger.new(STDOUT)
15
15
  # Load the configuration and start the server
16
16
  load_hash_configuration configuration
@@ -23,8 +23,8 @@ module RedisRepeater
23
23
  @repeats.each do |job|
24
24
  EventMachine::add_periodic_timer(job.timeout) { job.perform }
25
25
  end
26
+ @logger.info "Repeating #{@repeats.count} #{@repeats.count == 1 ? 'queue' : 'queues'} forever!"
26
27
  end
27
- @logger.info "\nRepeating #{@repeats.count} #{@repeats.count == 1 ? 'queue' : 'queues'} forever!"
28
28
  end
29
29
 
30
30
  private
@@ -1,5 +1,5 @@
1
1
  module RedisRepeater
2
2
 
3
- VERSION = [0, 2, 3]
3
+ VERSION = [0, 2, 4]
4
4
 
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: redis-repeater
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Crepezzi