Hast thou a large codebase? Perchance past coders have left your employ and the code they wrote doth suffer from bitrot? Fear not, a-lack-a-day, you may locate their old code with ye Olde Code Finder.
The sample output, forsooth:
$ bundle exec rake olde_code_finder:find_by_author['app/models/*.rb','Benjamin Franklin','50']
More than 50% of app/models/foo.rb was written by Benjamin Franklin
More than 50% of app/models/bar.rb was written by Benjamin Franklin
More than 50% of app/models/baz.rb was written by Benjamin Franklin
... and more ...
For even more straightforward usage, thou may but give olde_code_finder a timespan:
$ bundle exec rake olde_code_finder:find_by_date['app/models/*.rb','3 years','70']
More than 70% of app/models/foo.rb was written more than 3 years ago
More than 70% of app/models/bar.rb was written more than 3 years ago
More than 70% of app/models/baz.rb was written more than 3 years ago
... and more ...
All hail to Jonathan Rochkind for the find_by_date
suggestion!
Gadzooks! Huzzah! Now go forth and decruft.