Commit aa51152e by Daniel Mendler

v0.2.1

parent 4a26581f
...@@ -83,7 +83,7 @@ class MimeMagic ...@@ -83,7 +83,7 @@ class MimeMagic
MAGIC.find {|type, matches| magic_match_str(str, matches) } MAGIC.find {|type, matches| magic_match_str(str, matches) }
else else
io.binmode io.binmode
io.set_encoding(Encoding::BINARY, Encoding::BINARY) if io.respond_to?(:set_encoding) io.set_encoding(Encoding::BINARY) if io.respond_to?(:set_encoding)
MAGIC.find {|type, matches| magic_match_io(io, matches) } MAGIC.find {|type, matches| magic_match_io(io, matches) }
end end
mime && new(mime[0]) mime && new(mime[0])
......
class MimeMagic class MimeMagic
# MimeMagic version string # MimeMagic version string
# @api public # @api public
VERSION = '0.2.0' VERSION = '0.2.1'
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment