From 25d9cc3468f5c89b6185809239c38256f8cdcbc0 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 8 Dec 2010 12:23:48 -0800 Subject: [PATCH] Fix a bug in the spriting code in ruby 1.9.2 --- lib/compass/sass_extensions/functions/sprites.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/compass/sass_extensions/functions/sprites.rb b/lib/compass/sass_extensions/functions/sprites.rb index 7fc123c9..ff3d12df 100644 --- a/lib/compass/sass_extensions/functions/sprites.rb +++ b/lib/compass/sass_extensions/functions/sprites.rb @@ -70,7 +70,7 @@ module Compass::SassExtensions::Functions::Sprites :repeat => repeat_for(sprite_name), :spacing => spacing_for(sprite_name), :position => position_for(sprite_name), - :digest => MD5.file(file).hexdigest + :digest => Digest::MD5.file(file).hexdigest } end @images.each_with_index do |image, index| @@ -163,7 +163,8 @@ module Compass::SassExtensions::Functions::Sprites def uniqueness_hash @uniqueness_hash ||= begin - sum = MD5.md5(SPRITE_VERSION) + sum = Digest::MD5.new + sum << SPRITE_VERSION sum << path images.each do |image| [:relative_file, :height, :width, :repeat, :spacing, :position, :digest].each do |attr|