Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix a bug in 1.8.6 where readbyte is not defined.

  • Loading branch information...
commit ace0450774daa258936efcaa6f0b18ba02a4a439 1 parent df5c21a
Chris Eppstein authored March 06, 2010
5  lib/compass/sass_extensions/functions/image_size.rb
@@ -69,6 +69,11 @@ def initialize(file)
69 69
   private
70 70
     def examine(io)
71 71
       class << io
  72
+        unless method_defined?(:readbyte)
  73
+          def readbyte
  74
+            getc
  75
+          end
  76
+        end
72 77
         def readint; (readbyte << 8) + readbyte; end
73 78
         def readframe; read(readint - 2); end
74 79
         def readsof; [readint, readbyte, readint, readint, readbyte]; end

0 notes on commit ace0450

Please sign in to comment.
Something went wrong with that request. Please try again.