promiscuous 0.33.0 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,12 +4,12 @@ module Promiscuous::Redis
4
4
  mattr_accessor :master
5
5
 
6
6
  def self.connect
7
- disconnect if self.master
7
+ disconnect
8
8
  self.master = new_connection
9
9
  end
10
10
 
11
11
  def self.disconnect
12
- self.master.client.disconnect
12
+ self.master.client.disconnect if self.master
13
13
  self.master = nil
14
14
  end
15
15
 
@@ -64,6 +64,10 @@ module Promiscuous::Redis
64
64
  end
65
65
 
66
66
  class Null
67
+ def client
68
+ return self.class.new
69
+ end
70
+
67
71
  def method_missing(name, *args, &block)
68
72
  0
69
73
  end
@@ -38,7 +38,9 @@ class Promiscuous::Subscriber::Worker
38
38
  self.runners = nil
39
39
  end
40
40
  self.stopped = true
41
+
41
42
  # TODO wait for the runners to finish
43
+ sleep 1
42
44
  end
43
45
 
44
46
  def unit_of_work(type, &block)
@@ -1,3 +1,3 @@
1
1
  module Promiscuous
2
- VERSION = '0.33.0'
2
+ VERSION = '0.33.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.33.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -248,9 +248,9 @@ files:
248
248
  - lib/promiscuous/worker.rb
249
249
  - lib/promiscuous/amqp.rb
250
250
  - lib/promiscuous/subscriber.rb
251
- - lib/promiscuous/redis.rb
252
251
  - lib/promiscuous/config.rb
253
252
  - lib/promiscuous/cli.rb
253
+ - lib/promiscuous/redis.rb
254
254
  - lib/promiscuous/version.rb
255
255
  - lib/promiscuous.rb
256
256
  - bin/promiscuous