redis-repeater 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,8 @@ module RedisRepeater
51
51
  options[:queue] = repeat['queue']
52
52
  options[:timeout] = repeat['timeout'] || 0
53
53
  options[:maintain_count] = !!repeat['maintain_count'] # default false
54
+ # Remove duplicates and add this
55
+ @repeats.delete_if { |r| r.source == options[:source] && r.queue == options[:queue] }
54
56
  @repeats << TransferSchedulerJob.new(self, options)
55
57
  end
56
58
  end
@@ -1,5 +1,5 @@
1
1
  module RedisRepeater
2
2
 
3
- VERSION = [0, 2, 1]
3
+ VERSION = [0, 2, 2]
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.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Crepezzi