redis 2.0.8 → 2.0.9

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.
Files changed (2) hide show
  1. data/lib/redis.rb +8 -2
  2. metadata +3 -3
@@ -1,11 +1,17 @@
1
1
  require 'socket'
2
2
 
3
3
  class Redis
4
- VERSION = "2.0.8"
4
+ VERSION = "2.0.9"
5
5
 
6
6
  class ProtocolError < RuntimeError
7
7
  def initialize(reply_type)
8
- super("Protocol error, got '#{reply_type}' as initial reply byte")
8
+ super(<<-EOS.gsub(/(?:^|\n)\s*/, " "))
9
+ Got '#{reply_type}' as initial reply byte.
10
+ If you're running in a multi-threaded environment, make sure you
11
+ pass the :thread_safe option when initializing the connection.
12
+ If you're in a forking environment, such as Unicorn, you need to
13
+ connect to Redis after forking.
14
+ EOS
9
15
  end
10
16
  end
11
17
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 8
9
- version: 2.0.8
8
+ - 9
9
+ version: 2.0.9
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-14 00:00:00 -03:00
24
+ date: 2010-09-17 00:00:00 -03:00
25
25
  default_executable:
26
26
  dependencies: []
27
27