auth_redis_user_connector 0.0.3 → 0.0.4
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: 806dec713dc0a8824dbf1e933c854b2f7961c886
|
4
|
+
data.tar.gz: 34e83717809f065bfbedc7d827de09dd6dfa1181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8473cea7c40d3c813882363b8128f75d3a3cc8646ac56b5a5e9e30357fc42de7c9b59ce1e4cf9e057022337b20b92da9e7ab7050081a0390657e62fce963e412
|
7
|
+
data.tar.gz: 0a34d34b06c8d9ebf12bba1fcefa1178322eb34bb4cfb387058707fece20ae9bd959ea69da1c2bf7a045ff0ced5eb34d3f39368aecd3b90dfa858c461816a6eb
|
@@ -2,7 +2,9 @@ require 'redis'
|
|
2
2
|
|
3
3
|
class RedisUserConnector
|
4
4
|
def self.connect(hash)
|
5
|
-
|
5
|
+
raise "#{name}: Could not establish connection" if hash.nil? || hash.empty?
|
6
|
+
|
7
|
+
@connect = hash
|
6
8
|
end
|
7
9
|
|
8
10
|
def self.get(key)
|
@@ -16,8 +18,6 @@ class RedisUserConnector
|
|
16
18
|
private
|
17
19
|
|
18
20
|
def self.connect_options
|
19
|
-
raise "#{name}: Could not establish connection" unless @connect
|
20
|
-
|
21
21
|
@connect.merge :driver => :hiredis
|
22
22
|
end
|
23
23
|
|