lib/linner.rb in linner-0.8.3 vs lib/linner.rb in linner-0.8.4

- old
+ new

@@ -65,10 +65,11 @@ asset.revision! (concat_assets + copy_assets).flatten.each do |file| path = File.join env.public_folder, file next unless Asset.new(path).stylesheet? - puts = File.read(path).gsub(File.join(env.sprites["path"], File.basename(dest)), File.join(prefix, env.sprites["path"], File.basename(asset.relative_digest_path))) + url = env.sprites["url"] || env.sprites["path"] + puts = File.read(path).gsub(File.join(url, File.basename(dest)), File.join(prefix, url, File.basename(asset.relative_digest_path))) File.open(path, "w") { |file| file << puts } end end # revision concat template and copy assets