ohm 0.0.10 → 0.0.11

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/ohm/redis.rb +2 -0
  2. metadata +1 -1
@@ -134,6 +134,8 @@ module Ohm
134
134
  @sock.setsockopt Socket::SOL_SOCKET, Socket::SO_RCVTIMEO, optval
135
135
  @sock.setsockopt Socket::SOL_SOCKET, Socket::SO_SNDTIMEO, optval
136
136
  end
137
+ rescue Errno::ECONNREFUSED
138
+ raise Errno::ECONNREFUSED, "Unable to connect to Redis on #{host}:#{port}"
137
139
  end
138
140
 
139
141
  def connected?
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens