utils.rb: Utils.age_string to replace distance_of_time_in_words
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 16 Dec 2008 00:55:44 +0000 (01:55 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 16 Dec 2008 01:10:00 +0000 (02:10 +0100)
commit97732b1926746040373e803c3d7b9c43939aa6e6
tree563004b2d8da40254fab80b17ce60be961568c26
parentfd83bd02e2b82457e0a49214e075173505ebe994
utils.rb: Utils.age_string to replace distance_of_time_in_words

We define a new age_string function which is a cleaner version of
distance_of_time_in_words. The latter gets removed as its only
in-tree usage was from timeago (which is the UI version that should
be used by plugins anyway).

Utils.timeago gets a revamp too, exploiting the new age_string function.
lib/rbot/core/utils/utils.rb