redis-namespace 1.0.4 → 1.1.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.
- data/lib/redis/namespace.rb +4 -7
- metadata +57 -31
- checksums.yaml +0 -7
data/lib/redis/namespace.rb
CHANGED
|
@@ -123,6 +123,7 @@ class Redis
|
|
|
123
123
|
"ttl" => [ :first ],
|
|
124
124
|
"type" => [ :first ],
|
|
125
125
|
"unsubscribe" => [ :all ],
|
|
126
|
+
"watch" => [ :all ],
|
|
126
127
|
"zadd" => [ :first ],
|
|
127
128
|
"zcard" => [ :first ],
|
|
128
129
|
"zcount" => [ :first ],
|
|
@@ -162,11 +163,11 @@ class Redis
|
|
|
162
163
|
|
|
163
164
|
alias_method :self_respond_to?, :respond_to?
|
|
164
165
|
|
|
165
|
-
def respond_to?(
|
|
166
|
-
if self_respond_to?(
|
|
166
|
+
def respond_to?(*args)
|
|
167
|
+
if self_respond_to?(*args)
|
|
167
168
|
true
|
|
168
169
|
else
|
|
169
|
-
@redis.respond_to?(
|
|
170
|
+
@redis.respond_to?(*args)
|
|
170
171
|
end
|
|
171
172
|
end
|
|
172
173
|
|
|
@@ -174,10 +175,6 @@ class Redis
|
|
|
174
175
|
query.nil? ? super("*") : super
|
|
175
176
|
end
|
|
176
177
|
|
|
177
|
-
def exec
|
|
178
|
-
method_missing(:exec)
|
|
179
|
-
end
|
|
180
|
-
|
|
181
178
|
def method_missing(command, *args, &block)
|
|
182
179
|
handling = COMMANDS[command.to_s] ||
|
|
183
180
|
COMMANDS[ALIASES[command.to_s]]
|
metadata
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redis-namespace
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 19
|
|
5
|
+
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 1
|
|
8
|
+
- 1
|
|
9
|
+
- 0
|
|
10
|
+
version: 1.1.0
|
|
5
11
|
platform: ruby
|
|
6
|
-
authors:
|
|
12
|
+
authors:
|
|
7
13
|
- Chris Wanstrath
|
|
8
14
|
autorequire:
|
|
9
15
|
bindir: bin
|
|
10
16
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
|
|
18
|
+
date: 2011-08-15 00:00:00 -07:00
|
|
19
|
+
default_executable:
|
|
20
|
+
dependencies:
|
|
21
|
+
- !ruby/object:Gem::Dependency
|
|
14
22
|
name: redis
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - <
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.0.0
|
|
20
|
-
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
24
27
|
- - <
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 7
|
|
30
|
+
segments:
|
|
31
|
+
- 3
|
|
32
|
+
- 0
|
|
33
|
+
- 0
|
|
26
34
|
version: 3.0.0
|
|
35
|
+
type: :runtime
|
|
36
|
+
version_requirements: *id001
|
|
27
37
|
description: |
|
|
28
38
|
Adds a Redis::Namespace class which can be used to namespace calls
|
|
29
39
|
to Redis. This is useful when using a single instance of Redis with
|
|
30
40
|
multiple, different applications.
|
|
41
|
+
|
|
31
42
|
email: chris@ozmm.org
|
|
32
43
|
executables: []
|
|
44
|
+
|
|
33
45
|
extensions: []
|
|
46
|
+
|
|
34
47
|
extra_rdoc_files: []
|
|
35
|
-
|
|
48
|
+
|
|
49
|
+
files:
|
|
36
50
|
- README.md
|
|
37
51
|
- Rakefile
|
|
38
52
|
- LICENSE
|
|
@@ -40,27 +54,39 @@ files:
|
|
|
40
54
|
- lib/redis-namespace.rb
|
|
41
55
|
- spec/redis_spec.rb
|
|
42
56
|
- spec/spec_helper.rb
|
|
57
|
+
has_rdoc: true
|
|
43
58
|
homepage: http://github.com/defunkt/redis-namespace
|
|
44
59
|
licenses: []
|
|
45
|
-
|
|
60
|
+
|
|
46
61
|
post_install_message:
|
|
47
62
|
rdoc_options: []
|
|
48
|
-
|
|
63
|
+
|
|
64
|
+
require_paths:
|
|
49
65
|
- lib
|
|
50
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
|
+
none: false
|
|
68
|
+
requirements:
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
hash: 3
|
|
72
|
+
segments:
|
|
73
|
+
- 0
|
|
74
|
+
version: "0"
|
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
|
+
none: false
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
hash: 3
|
|
81
|
+
segments:
|
|
82
|
+
- 0
|
|
83
|
+
version: "0"
|
|
60
84
|
requirements: []
|
|
85
|
+
|
|
61
86
|
rubyforge_project:
|
|
62
|
-
rubygems_version:
|
|
87
|
+
rubygems_version: 1.5.2
|
|
63
88
|
signing_key:
|
|
64
|
-
specification_version:
|
|
89
|
+
specification_version: 3
|
|
65
90
|
summary: Namespaces Redis commands.
|
|
66
91
|
test_files: []
|
|
92
|
+
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: e4b085133184d4d2479ecc4488830816a5fcf835
|
|
4
|
-
data.tar.gz: 6c5282ec08c1b283d2ca769fbee91dbdb45a4583
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: fa6d86634a5d0d203a961811e12b2910c1c8504a90276867d573b4b740868c3d5d2ffdcd7dd84f6dc566cbf08f8be9043bba672bf44b6f1cd7ee5ba7f2cb371d
|
|
7
|
-
data.tar.gz: 6a04b2065383c18448b2c313eda054d5784b0a3230d87a39fc58266b2409bb1702a532c599535b3eee8523e6ae31805405e3d2c43f1691cb08347d52cc544084
|