class Rake::FileList

def excluded_from_list?(fn)

code, you will need to update.
confusion. If you were using "FileList#exclude?" in your user
conflict with file list. We renamed the method to avoid
introduced an exclude? method as an array method and setup a
NOTE: This method was formerly named "exclude?", but Rails

Should the given file name be excluded from the list?
def excluded_from_list?(fn)
  return true if @exclude_patterns.any? do |pat|
    case pat
    when Regexp
      fn =~ pat
    when GLOB_PATTERN
      flags = File::FNM_PATHNAME
      # Ruby <= 1.9.3 does not support File::FNM_EXTGLOB
      flags |= File::FNM_EXTGLOB if defined? File::FNM_EXTGLOB
      File.fnmatch?(pat, fn, flags)
    else
      fn == pat
    end
  end
  @exclude_procs.any? { |p| p.call(fn) }
end