namespaced_redis 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/namespaced_redis.rb +3 -2
  2. metadata +3 -3
@@ -1,9 +1,10 @@
1
1
  class NamespacedRedis
2
2
 
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
 
5
5
  def initialize(redis_options={}, namespace="")
6
- @redis = Redis.new(redis_options)
6
+ @@redis ||= Redis.new(redis_options)
7
+ @redis = @@redis
7
8
  @namespace = namespace
8
9
  end
9
10
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stewart McKee
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-09-04 00:00:00 +01:00
17
+ date: 2012-09-05 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency