ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
975 stars 78 forks source link

Crashes on missing assets #53

Open felixbuenemann opened 11 years ago

felixbuenemann commented 11 years ago

If one of the asset files does not exists, precompile with turbo-sprockets-rails 0.3.6 will thrown an exception.

The problem is caused by Sprockets::StaticNoDigestGenerator#generate line 39:

mtime = File.mtime(abs_digest_path)

I think the code should catch Errno::ENOENT and just recreate the file.