lib/hu/deploy.rb in hu-1.5.5 vs lib/hu/deploy.rb in hu-1.5.6

- old
+ new

@@ -394,12 +394,16 @@ table_row[2] = '' unless $?.success? # heroku uses wrong timezone offset in the slug api... /facepalm # table_row[3] = ChronicDuration.output(Time.now.utc - Time.parse(slug_info['updated_at']), :units => 1) - delta = Time.now.utc - Time.parse(release_info['updated_at']) - table_row[3] = delta < 60 ? 'less than a minute' : ChronicDuration.output(delta, units: 1) - table_row[3] += ' ago' + if release_info['updated_at'].nil? + table_row[3] += 'unknown' + else + delta = Time.now.utc - Time.parse(release_info['updated_at']) + table_row[3] = delta < 60 ? 'less than a minute' : ChronicDuration.output(delta, units: 1) + table_row[3] += ' ago' + end # table_row[3] += "\n\e[30;1m" + slug_info['updated_at'] table_row[4] = release_info['user']['email'] table_row[5] = dynos.length break