redis-namespace 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

@@ -152,6 +152,10 @@ class Redis
152
152
  @redis.respond_to?(command)
153
153
  end
154
154
 
155
+ def keys(query = nil)
156
+ query.nil? ? super("*") : super
157
+ end
158
+
155
159
  def method_missing(command, *args, &block)
156
160
  (before, after) = COMMANDS[command.to_s] ||
157
161
  COMMANDS[ALIASES[command.to_s]]
data/spec/redis_spec.rb CHANGED
@@ -99,6 +99,7 @@ describe "redis" do
99
99
  @namespaced["bar"] = 2
100
100
  @namespaced["baz"] = 3
101
101
  @namespaced.keys("*").sort.should == %w( bar baz foo )
102
+ @namespaced.keys.sort.should == %w( bar baz foo )
102
103
  end
103
104
 
104
105
  it "can change its namespace" do
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
7
+ - 7
8
8
  - 0
9
- version: 0.6.0
9
+ version: 0.7.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Wanstrath