aanand
2011-Mar-23 16:12 UTC
[GitHub] Fix reloading of auxiliary files [camping/camping GH-34]
Just in case anyone missed this on GitHub - DaveE :-) ---- reply+i-697969-75bfe0262544902a760202e1b4e7a3f2658beaf3 at reply.github.com If I have: - an app in `foo.rb` - an auxiliary file in `foo/bar.rb` - a `require "foo/bar"` call in `foo.rb` ...then `bar.rb` doesn''t get reloaded when it changes, because?even though the `mtime` is updated, and `foo.rb` is reloaded?`bar.rb` got added to `$LOADED_FEATURES` when it was first `require`d, and the `require "foo/bar"` call thus has no effect. This patch makes `Camping::Reloader::Script#load_apps` delete all auxiliary file paths from `$LOADED_FEATURES` before reloading `foo.rb`, so that they are correctly reloaded. -- Reply to this email directly or view it on GitHub: https://github.com/camping/camping/pull/34