rspec-mocks/upstream/script/list_method_cache_busters.sh
Ruby interpreter command invocation
SHA-2561585a46364b7cb07d61dc5ccb46a9da46f452a8d06392cdb5221fe2afcf1af47
MaleculeH(Po)
Evidence
1#!/bin/bash
2# set -x
3
4# This list is from https://charlie.bz/blog/things-that-clear-rubys-method-cache
5
6IGNORE_FILE=/tmp/cache_busters_ignore
7COMMENT_LINE_RE="^(\w|\/)+\.rb: +#"
8
9cat script/ignores | grep -v "^$" | ruby -ne 'puts $_.split(/\s+###/)[0]' > $IGNORE_FILE
10
11egrep 'def [a-z]*\..*' -R lib | grep -v "def self" | grep -v -f $IGNORE_FILE | eg …