forked from sinatra/sinatra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
after_reload
issues (sinatra#1692)
* Improve `after_reload` issues * Make `after_reload` run only if paths were updated. * Pass the actual reloaded paths to the `after_reload` blocks. * Fix `after_reload` spec * Remove hardcoded filename, and check reload isn't called * Undo oops version change * Add rspec for existing after_reload blocks without input param * Guard against passing lambdas * Reset after_reload block when containing file reloaded Co-authored-by: Jordan Owens <jkowens@gmail.com>
- Loading branch information
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters