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: 806dec713dc0a8824dbf1e933c854b2f7961c886
4
- data.tar.gz: 34e83717809f065bfbedc7d827de09dd6dfa1181
3
+ metadata.gz: d5bbda805648f419b5770145daaedca819fda5d7
4
+ data.tar.gz: 7e5adf43cc49ec45afee6fa3b29f7863330230c4
5
5
  SHA512:
6
- metadata.gz: 8473cea7c40d3c813882363b8128f75d3a3cc8646ac56b5a5e9e30357fc42de7c9b59ce1e4cf9e057022337b20b92da9e7ab7050081a0390657e62fce963e412
7
- data.tar.gz: 0a34d34b06c8d9ebf12bba1fcefa1178322eb34bb4cfb387058707fece20ae9bd959ea69da1c2bf7a045ff0ced5eb34d3f39368aecd3b90dfa858c461816a6eb
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
 
@@ -1,3 +1,3 @@
1
1
  module AuthRedisUserConnector
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTeam