Permalink
Browse files

Fix a bug in 1.8.6 where readbyte is not defined.

  • Loading branch information...
1 parent df5c21a commit ace0450774daa258936efcaa6f0b18ba02a4a439 @chriseppstein chriseppstein committed Mar 7, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/compass/sass_extensions/functions/image_size.rb
@@ -69,6 +69,11 @@ def initialize(file)
private
def examine(io)
class << io
+ unless method_defined?(:readbyte)
+ def readbyte
+ getc
+ end
+ end
def readint; (readbyte << 8) + readbyte; end
def readframe; read(readint - 2); end
def readsof; [readint, readbyte, readint, readint, readbyte]; end

0 comments on commit ace0450

Please sign in to comment.