Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6a97a74f
Commit
6a97a74f
authored
May 29, 2009
by
antirez
Browse files
Redis-rb minor bool convertion fix
parent
69664139
Changes
1
Hide whitespace changes
Inline
Side-by-side
client-libraries/ruby/lib/redis.rb
View file @
6a97a74f
...
@@ -20,13 +20,7 @@ class Redis
...
@@ -20,13 +20,7 @@ class Redis
"echo"
=>
true
,
"getset"
=>
true
,
"smove"
=>
true
"echo"
=>
true
,
"getset"
=>
true
,
"smove"
=>
true
}
}
ConvertToBool
=
lambda
do
|
r
|
ConvertToBool
=
lambda
{
|
r
|
r
==
0
?
false
:
r
}
case
r
when
0
then
false
when
1
then
true
else
r
end
end
ReplyProcessor
=
{
ReplyProcessor
=
{
"exists"
=>
ConvertToBool
,
"exists"
=>
ConvertToBool
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment