Skip to content
This repository
Newer
Older
100644 15 lines (15 sloc) 0.585 kb
ae9db103 »
2011-11-23 Add share feature.
1 require 'sprite_factory'
2 namespace :assets do
3 desc 'recreate sprite images and css'
4 task :resprite => :environment do
5 SpriteFactory.library = :chunkypng
ff46cd07 »
2011-12-29 SpriteFactory config imporve.
6 SpriteFactory.csspath = "image-path('sprites/$IMAGE')"
ae9db103 »
2011-11-23 Add share feature.
7 dirs = Dir.glob("#{Rails.root}/app/assets/images/sprites/*/")
8 dirs.each do |path|
9 dir_name = path.split("/").last
10 SpriteFactory.run!("app/assets/images/sprites/#{dir_name}",
ff46cd07 »
2011-12-29 SpriteFactory config imporve.
11 :output_style => "app/assets/stylesheets/sprites/#{dir_name}.scss",
ae9db103 »
2011-11-23 Add share feature.
12 :selector => ".#{dir_name}_")
13 end
14 end
15 end
Something went wrong with that request. Please try again.