ohm 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ohm/redis.rb +1 -1
  2. metadata +1 -1
data/lib/ohm/redis.rb CHANGED
@@ -240,7 +240,7 @@ module Ohm
240
240
  def format_bulk_reply(line)
241
241
  bulklen = line.to_i
242
242
  return nil if bulklen == -1
243
- reply = @sock.read(bulklen).encode("UTF-8")
243
+ reply = @sock.read(bulklen).force_encoding("UTF-8")
244
244
  @sock.read(2) # Discard CRLF.
245
245
  reply
246
246
  end
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.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens