Sha256: 4831d3fdc7dc2fe752fbd1fd5be498d1eb05e76a9e3a5758426b2f8ec2166a3d

Contents?: true

Size: 525 Bytes

Versions: 19

Compression:

Stored size: 525 Bytes

Contents

Rails.application.sprites do
  sprite 'sprites/3.png' => 'sprites/3.css' do
    _"sprite_images/sprite3/1.png" => ".klass_1"
    _"sprite_images/sprite3/2.png" => ".klass_2"
  end

  sprite 'sprites/4.png' do
    Dir[Rails.root.join('public/images/sprite_images/sprite4/*.{png,gif,jpg}')].each do |path|
      image_path = path[%r{^.*/public/images/(.*)$}, 1]
      klass_name = ".klass_#{File.basename(image_path, File.extname(image_path)).split(' ').join('_').downcase}"
      sp image_path => klass_name
    end
  end
end

Version data entries

19 entries across 17 versions & 1 rubygems

Version Path
active_assets-1.1.3 test/fixtures/rails_root/config/sprites.rb
active_assets-1.1.2 test/fixtures/rails_root/config/sprites.rb
active_assets-1.1.1 test/fixtures/rails_root/config/sprites.rb
active_assets-1.0.3 test/fixtures/rails_root/config/sprites.rb
active_assets-1.1.0 test/fixtures/rails_root/config/sprites.rb
active_assets-0.3.1 test/fixtures/rails_root_23/config/sprites.rb
active_assets-0.3.1 test/fixtures/rails_root/config/sprites.rb
active_assets-1.0.2 test/fixtures/rails_root/config/sprites.rb
active_assets-1.0.1 test/fixtures/rails_root/config/sprites.rb
active_assets-1.0.0 test/fixtures/rails_root/config/sprites.rb
active_assets-0.3.0 test/fixtures/rails_root/config/sprites.rb
active_assets-0.3.0 test/fixtures/rails_root_23/config/sprites.rb
active_assets-1.0.0.rc1 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.8 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.7 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.6 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.5 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.4 test/fixtures/rails_root/config/sprites.rb
active_assets-0.2.3 test/fixtures/rails_root/config/sprites.rb