lib/compass/sass_extensions/functions/inline_image.rb in compass-0.10.4 vs lib/compass/sass_extensions/functions/inline_image.rb in compass-0.10.5.pre.1

- old
+ new

@@ -44,10 +44,10 @@ end end def data(real_path) if File.readable?(real_path) - [File.read(real_path)].pack('m').gsub("\n","") + [File.open(real_path, "rb") {|io| io.read}].pack('m').gsub("\n","") else raise Compass::Error, "File not found or cannot be read: #{real_path}" end end end