lib/rails_sprite/sprite_util.rb in rails-sprite-0.0.2 vs lib/rails_sprite/sprite_util.rb in rails-sprite-0.0.3

- old
+ new

@@ -132,9 +132,11 @@ options[:file_infos].each do |file_info| target.composite!(file_info[:image], file_info[:x], file_info[:y], Magick::SrcOverCompositeOp) end + system "mkdir -p #{::File.dirname(image_to_file_path)}" + target.write(image_to_file_path) end end end