From 27e639fc6eab35dd2e2a87d6dc4e6e4c0d037897 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Thu, 9 Jul 2015 12:20:28 +0000 Subject: [PATCH] Add way to know if a software didnt update --- update.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update.rb b/update.rb index f6d35f5..3b5018b 100644 --- a/update.rb +++ b/update.rb @@ -6,7 +6,11 @@ while (line = file.gets) software_name = result[2].gsub("/n", "") software = Community.find(:first, :conditions => ["lower(name) = ?", software_name.strip.downcase]) software.created_at = Time.zone.parse(result[1]) if software - print "." if software && software.save + if software && software.save + print "." + else + print "F" + end end file.close -- libgit2 0.21.2