promiscuous 0.33.0 → 0.33.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/promiscuous/redis.rb
CHANGED
@@ -4,12 +4,12 @@ module Promiscuous::Redis
|
|
4
4
|
mattr_accessor :master
|
5
5
|
|
6
6
|
def self.connect
|
7
|
-
disconnect
|
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
|
data/lib/promiscuous/version.rb
CHANGED
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.
|
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
|