file cleanup

This commit is contained in:
Scott Davis 2011-03-21 18:36:55 -04:00
parent 01b9cd3a46
commit f7d0079f27
4 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,3 @@
require 'compass/sass_extensions/sprites/image'
require 'compass/sass_extensions/sprites/engines/chunky_png_engine'
module Compass module Compass
module SassExtensions module SassExtensions
module Sprites module Sprites

View File

@ -0,0 +1 @@
require 'compass/sass_extensions/sprites/engines/chunky_png_engine'

View File

@ -16,7 +16,7 @@ module Compass
images.each do |image| images.each do |image|
input_png = ChunkyPNG::Image.from_file(image.file) input_png = ChunkyPNG::Image.from_file(image.file)
if image.repeat == "no-repeat" if image.repeat == "no-repeat"
output_png.replace input_png, image.left, image.top output_png.replace! input_png, image.left, image.top
else else
x = image.left - (image.left / image.width).ceil * image.width x = image.left - (image.left / image.width).ceil * image.width
while x < width do while x < width do

View File

@ -1,5 +1,3 @@
require 'digest/md5'
module Compass module Compass
module SassExtensions module SassExtensions
module Sprites module Sprites