asset-rack icon indicating copy to clipboard operation
asset-rack copied to clipboard

Replace require 'fs' with fs.coffee exporting graceful-fs

Open chakrit opened this issue 12 years ago • 1 comments

Since this module always deal with lots and lots of static files I believe it is a good idea to add a central point where all fs calls can be traced/inspect/modifed/patched/whatever.

In this commit I'm simply replacing all require 'fs' found in the codebase with require require './fs.coffee' which now simply exports thegraceful-fs` module.

This is to combat the EMFILE issue: https://github.com/techpines/asset-rack/issues/94

chakrit avatar Oct 31 '13 08:10 chakrit

Just noticed that some tests were failing, fixing ....

EDIT: Weird, ran again and everything's all green now.

chakrit avatar Oct 31 '13 08:10 chakrit