redis 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +5 -3
  2. data/lib/redis.rb +1 -1
  3. data/lib/redis/client.rb +3 -0
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -59,9 +59,11 @@ task :stop do
59
59
  end
60
60
  end
61
61
 
62
- Rake::TestTask.new(:test) do |t|
63
- t.pattern = "test/**/*_test.rb"
64
- t.ruby_opts << "-r rubygems"
62
+ desc "Run the test suite"
63
+ task :test do
64
+ require 'cutest'
65
+
66
+ Cutest.run(Dir['./test/**/*_test.rb'])
65
67
  end
66
68
 
67
69
  Rake::GemPackageTask.new(spec) do |pkg|
@@ -1,7 +1,7 @@
1
1
  require 'socket'
2
2
 
3
3
  class Redis
4
- VERSION = "2.0.10"
4
+ VERSION = "2.0.11"
5
5
 
6
6
  class ProtocolError < RuntimeError
7
7
  def initialize(reply_type)
@@ -249,6 +249,9 @@ class Redis
249
249
  else
250
250
  raise Errno::ECONNRESET
251
251
  end
252
+ rescue Exception
253
+ disconnect
254
+ raise
252
255
  end
253
256
  end
254
257
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 10
9
- version: 2.0.10
8
+ - 11
9
+ version: 2.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ezra Zygmuntowicz
@@ -21,7 +21,7 @@ autorequire: redis
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2010-09-20 00:00:00 -03:00
24
+ date: 2010-10-14 00:00:00 -03:00
25
25
  default_executable:
26
26
  dependencies: []
27
27