lib/juicer/css_cache_buster.rb in juicer-1.0.1 vs lib/juicer/css_cache_buster.rb in juicer-1.0.2
- old
+ new
@@ -42,9 +42,10 @@
urls(file).each do |asset|
begin
next if used.include?(asset.path)
@contents.gsub!(asset.path, asset.path(:cache_buster_type => @type))
+ used.push(asset.path)
rescue Errno::ENOENT
puts "Unable to locate file #{asset.path}, skipping cache buster"
rescue ArgumentError => e
if e.message =~ /No document root/
puts "Unable to resolve path #{asset.path} without :document_root option"