if repo == '.' || repo == '..' dirname = File.join(root, repo) files += Dir.glob("#{dirname}/**/*").select do |file| ¦ File.file?(file) end end files = files.select do |file| begin ¦ blob = Linguist::FileBlob.new(file) ¦ blob.language.name.downcase == 'ruby' rescue ¦ false end end