auth_redis_user_connector 0.0.4 → 0.0.5
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: d5bbda805648f419b5770145daaedca819fda5d7
|
4
|
+
data.tar.gz: 7e5adf43cc49ec45afee6fa3b29f7863330230c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f4ec1c22085508424e3a1ba3f6ec50b98cf36ddec2b5f17a00c282efc7ef4693d0b6c80f96ed5265c9fcd29922172c0547181d6a6c9bf620dc461f088190b0
|
7
|
+
data.tar.gz: e4eef0a25773e6faa3acf949bea33b50f506db60c4a96ff3e841eee599cf9f4ac40f49a81cb4c7c5f90505cdb029513c17b30e462be42d5f47b2715ef07b0f39
|
@@ -2,8 +2,6 @@ require 'redis'
|
|
2
2
|
|
3
3
|
class RedisUserConnector
|
4
4
|
def self.connect(hash)
|
5
|
-
raise "#{name}: Could not establish connection" if hash.nil? || hash.empty?
|
6
|
-
|
7
5
|
@connect = hash
|
8
6
|
end
|
9
7
|
|
@@ -18,6 +16,8 @@ class RedisUserConnector
|
|
18
16
|
private
|
19
17
|
|
20
18
|
def self.connect_options
|
19
|
+
raise "#{name}: Could not establish connection" if @connect.nil? || @connect.empty?
|
20
|
+
|
21
21
|
@connect.merge :driver => :hiredis
|
22
22
|
end
|
23
23
|
|