-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent new method cache busters from being added.
- Loading branch information
1 parent
d26ab3f
commit a1346c2
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env ruby | ||
|
||
method_cache_busters = `script/list_method_cache_busters.sh`.split("\n").map(&:chomp) | ||
|
||
if method_cache_busters.any? | ||
puts "=" * 80 | ||
puts "Found #{method_cache_busters.size} new constructs that bust the method cache." | ||
puts "These should be eliminated or added to the `ignores` file." | ||
puts | ||
puts "For more information, see https://charlie.bz/blog/things-that-clear-rubys-method-cache" | ||
puts | ||
puts method_cache_busters.join("\n") | ||
puts "=" * 80 | ||
exit(1) | ||
end |
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