auth_redis_user_connector 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c25b9e13f3d47048548cea8ee831b7737ebba7
|
4
|
+
data.tar.gz: f7a6a82bff669848b735ad7a58ed2198992c21eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 023ae767e72ddffdecc066ce1c8dfa58f9a142fa9b9253b6671abfb966ebe4bca3d147965e1cee72b1d592ce57bf1b0991df663a5ec987f1b5c44ca9be695cd7
|
7
|
+
data.tar.gz: d89c8639a3d29559af9c303746614e6b356de0a0127b0094b1739b56d3b16c8e9c1ed7c100e8f56cc5c6a6bc9cf453aa2127fe7b8eebffb852e2f1d609091a2e
|
@@ -14,11 +14,11 @@ class RedisUserConnector
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.pub(channel, message)
|
17
|
-
|
17
|
+
pubsub_connection.publish(channel, message)
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.sub(channel, &block)
|
21
|
-
|
21
|
+
pubsub_connection.subscribe(channel, &block)
|
22
22
|
end
|
23
23
|
|
24
24
|
private
|
@@ -30,7 +30,11 @@ class RedisUserConnector
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.connection
|
33
|
-
Redis.new(connect_options)
|
33
|
+
@connection ||= Redis.new(connect_options)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.pubsub_connection
|
37
|
+
@pubsub_connection ||= Redis.new(connect_options)
|
34
38
|
end
|
35
39
|
|
36
40
|
def self.namespace
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth_redis_user_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|