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: b1554706a4c1cd5790ed9715ca708faa98b7876b
4
- data.tar.gz: 6d10271e981d39ee6871689531a68886bb18a259
3
+ metadata.gz: c1c25b9e13f3d47048548cea8ee831b7737ebba7
4
+ data.tar.gz: f7a6a82bff669848b735ad7a58ed2198992c21eb
5
5
  SHA512:
6
- metadata.gz: 6a70e1df88d7b9b79b0335f5e09dd5dafdbf7df8f4133bf66da86da67b7df4e65bebe2348391e97b760fb232404169b678532646b8adef9fee732367eb09a6db
7
- data.tar.gz: 0071b683aa4e8f97b6cad0999f0922999ce42f85eb70dd8d1dc61dd4c686759d897919146c2b74f4af31b179edd4677fc7609a9567654001ddd51c191a43f7d1
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
- connection.publish(channel, message)
17
+ pubsub_connection.publish(channel, message)
18
18
  end
19
19
 
20
20
  def self.sub(channel, &block)
21
- connection.subscribe(channel, &block)
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
@@ -1,3 +1,3 @@
1
1
  module AuthRedisUserConnector
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-26 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler