From reply+i-697969-75bfe0262544902a760202e1b4e7a3f2658beaf3 at reply.github.com Wed Mar 23 12:12:05 2011 From: reply+i-697969-75bfe0262544902a760202e1b4e7a3f2658beaf3 at reply.github.com (aanand) Date: Wed, 23 Mar 2011 09:12:05 -0700 Subject: [GitHub] Fix reloading of auxiliary files [camping/camping GH-34] Message-ID: <90961335-1C24-43AB-93FE-2D9E3231B1CA@reply.github.com> 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