redis-namespace 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of redis-namespace might be problematic. Click here for more details.

@@ -181,7 +181,7 @@ class Redis
181
181
  if handling.nil?
182
182
  warn("redis-namespace does not know how to handle '#{command}' command.
183
183
  Passing it to redis as is.")
184
- return
184
+ return @redis.send(command, *args, &block)
185
185
  end
186
186
 
187
187
  (before, after) = handling
data/spec/redis_spec.rb CHANGED
@@ -20,6 +20,10 @@ describe "redis" do
20
20
  @redis.quit
21
21
  end
22
22
 
23
+ it "proxies `client` to the client" do
24
+ @namespaced.client.should == @redis.client
25
+ end
26
+
23
27
  it "should be able to use a namespace" do
24
28
  @namespaced['foo'].should == nil
25
29
  @namespaced['foo'] = 'chris'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-namespace
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- version: "1.0"
9
+ - 1
10
+ version: 1.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Chris Wanstrath