ohm 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ohm/redis.rb +2 -0
- data/test/db/redis.pid +1 -1
- metadata +2 -2
data/lib/ohm/redis.rb
CHANGED
@@ -103,6 +103,7 @@ module Ohm
|
|
103
103
|
def connect
|
104
104
|
connect_to(@host, @port, @timeout == 0 ? nil : @timeout)
|
105
105
|
call_command([:select, @db]) if @db != 0
|
106
|
+
@sock
|
106
107
|
end
|
107
108
|
|
108
109
|
def connect_to(host, port, timeout = nil)
|
@@ -142,6 +143,7 @@ module Ohm
|
|
142
143
|
def disconnect
|
143
144
|
@sock.close
|
144
145
|
@sock = nil
|
146
|
+
true
|
145
147
|
end
|
146
148
|
|
147
149
|
def reconnect
|
data/test/db/redis.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
6331
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Martens
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-07-
|
13
|
+
date: 2009-07-24 00:00:00 -03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|