redis-namespace 0.7.0 → 0.8.0

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.

@@ -0,0 +1 @@
1
+ require 'redis/namespace'
@@ -56,6 +56,7 @@ class Redis
56
56
  "getset" => [ :first ],
57
57
  "hset" => [ :first ],
58
58
  "hget" => [ :first ],
59
+ "hmset" => [ :first ],
59
60
  "hdel" => [ :first ],
60
61
  "hexists" => [ :first ],
61
62
  "hlen" => [ :first ],
@@ -81,6 +82,9 @@ class Redis
81
82
  "move" => [ :first ],
82
83
  "mset" => [ :alternate ],
83
84
  "msetnx" => [ :alternate ],
85
+ "psubscribe" => [ :all ],
86
+ "publish" => [ :first ],
87
+ "punsubscribe" => [ :all ],
84
88
  "quit" => [],
85
89
  "randomkey" => [],
86
90
  "rename" => [ :all ],
@@ -108,10 +112,12 @@ class Redis
108
112
  "spop" => [ :first ],
109
113
  "srandmember" => [ :first ],
110
114
  "srem" => [ :first ],
115
+ "subscribe" => [ :all ],
111
116
  "sunion" => [ :all ],
112
117
  "sunionstore" => [ :all ],
113
118
  "ttl" => [ :first ],
114
119
  "type" => [ :first ],
120
+ "unsubscribe" => [ :all ],
115
121
  "zadd" => [ :first ],
116
122
  "zcard" => [ :first ],
117
123
  "zincrby" => [ :first ],
data/spec/redis_spec.rb CHANGED
@@ -72,6 +72,8 @@ describe "redis" do
72
72
  @namespaced.hgetall('foo').should == {'key' => 'value', 'key1' => 'value1'}
73
73
  @namespaced.hlen('foo').should == 2
74
74
  @namespaced.hkeys('foo').should == ['key', 'key1']
75
+ @namespaced.hmset('bar', 'key', 'value', 'key1', 'value1')
76
+ @namespaced.hgetall('bar').should == {'key' => 'value', 'key1' => 'value1'}
75
77
  end
76
78
 
77
79
  it "should properly intersect three sets" do
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 7
7
+ - 8
8
8
  - 0
9
- version: 0.7.0
9
+ version: 0.8.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Wanstrath
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-21 00:00:00 -07:00
17
+ date: 2010-07-24 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -48,6 +48,7 @@ files:
48
48
  - Rakefile
49
49
  - LICENSE
50
50
  - lib/redis/namespace.rb
51
+ - lib/redis-namespace.rb
51
52
  - spec/redis_spec.rb
52
53
  - spec/spec_helper.rb
53
54
  has_rdoc: true