lib/juicer/css_cache_buster.rb in juicer-1.0.0 vs lib/juicer/css_cache_buster.rb in juicer-1.0.1

- old
+ new

@@ -40,18 +40,18 @@ self.base = File.dirname(file) used = [] urls(file).each do |asset| begin - next if used.include?(asset.path) + next if used.include?(asset.path) @contents.gsub!(asset.path, asset.path(:cache_buster_type => @type)) rescue Errno::ENOENT puts "Unable to locate file #{asset.path}, skipping cache buster" rescue ArgumentError => e if e.message =~ /No document root/ - raise FileNotFoundError.new("Unable to resolve path #{asset.path} without :document_root option") + puts "Unable to resolve path #{asset.path} without :document_root option" else - raise e + puts "Unable to locate #{asset.path}, skipping cache buster" end end end File.open(output || file, "w") { |f| f.puts @contents }