Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 478 Bytes
require 'set'
module NamesManager
extend HardCodedAuthors
extend FalsePositives
extend CanonicalNames
# Determines whether any heuristic has been updated since +ts+.
def self.updated_since?(ts)
[__FILE__, *Dir.glob("#{__dir__}/names_manager/*.rb")].any? do |filename|
File.mtime(filename) > ts
end
end
# Removes email addresses (anything between <...>), and strips whitespace.
def self.sanitize(name)
name.sub(/<[^>]+>/, '').strip
end
end