Skip to content

Instantly share code, notes, and snippets.

@averyvery
Created September 21, 2011 00:11
Show Gist options
  • Save averyvery/1230799 to your computer and use it in GitHub Desktop.
Save averyvery/1230799 to your computer and use it in GitHub Desktop.
aaaaawwwww shiiiiiitttttt
project_type = :rails
preferred_syntax = :scss
output_style = :expanded
http_path = "/"
relative_assets = true
line_comments = false
if Rails.env.development?
require 'ruby-growl'
on_sprite_saved do |filename|
unless filename.match(/transparent/)
png8filename = filename.sub(/\.png/, '-fs8.png')
%x{public/pngquant/pngquant #{filename}}
%x{mv -f #{png8filename} #{filename}}
%x{open -a ImageOptim.app #{filename}}
else
%x{open -a ImageAlpha.app #{filename}}
end
g = Growl.new "localhost", "ruby-growl",
["ruby-growl Notification"]
g.notify "ruby-growl Notification", "Compass sprite generation",
"Your sprite is done:" + filename
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment