Permalink
Browse files

Add binary reading option for load method in order to make encoding v…

…alid with ruby 1.9.
  • Loading branch information...
1 parent 7c5625f commit 323603d8d5f17081881986efd92421eb088b2d3c @nleguen nleguen committed Feb 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/maildir/serializer/base.rb
@@ -10,7 +10,9 @@ module Serializer
class Base
# Reads the file at path. Returns the contents of path.
def load(path)
- File.read(path)
+ File.open(path,'rb') do |f|
+ f.read
+ end
end
# Writes data to path. Returns number of bytes written.

0 comments on commit 323603d

Please sign in to comment.