johnae / spook

Lightweight programmable evented utility based on LuaJIT and ljsyscall
Other
35 stars 0 forks source link

BSD/OS X compatibility #21

Closed johnae closed 7 years ago

johnae commented 7 years ago

I'm not entirely happy with this code but file watching is now compatible with the BSD:s (and OS X ofc).

johnae commented 7 years ago

This is probably not entirely done. The specs are green because there should be more of them. However - spook does now work fine on BSD as a test runner. I'm quite certain however that it does not yet allow for on_modified, on_deleted etc. events (eg. it only supports the general on_changed event). That shouldn't be too difficult and specs should be written anyway.

johnae commented 7 years ago

Actually I'm wrong, on_modified, on_deleted etc. should work the same (or in a similar fashion) as on Linux. Almost indistinguishable I believe.