lib/domain_expiry.rb in domain_expiry-0.1.1 vs lib/domain_expiry.rb in domain_expiry-1.0.0
- old
+ new
@@ -60,19 +60,19 @@
def self.display_results(results, width = 120)
delim = '-' * width
puts(delim)
- printf(' %-30s | %<status>s\n', 'Domain', status: 'Status')
+ printf(" %-30s | %s\n", 'Domain', 'Status')
puts(delim)
results.each do |domain, details|
status = if details['status'] == 400
details['error']
else
format('expires on %<expires_in>s (in %<expires_on>s days)', expires_in: details['expires_on'], expires_on: details['expires_in'])
end
- printf(' %-30s | %s\n', domain, status)
+ printf(" %-30s | %s\n", domain, status)
end
puts(delim)
end
end
end