Created
September 21, 2011 00:11
-
-
Save averyvery/1230799 to your computer and use it in GitHub Desktop.
aaaaawwwww shiiiiiitttttt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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