From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrei@andreimaxim.ro (Andrei Maxim) Date: Thu, 29 Nov 2007 02:58:33 +0200 Subject: [sup-talk] to_time_s In-Reply-To: <1196269623-sup-7802@south> References: <1196269623-sup-7802@south> Message-ID: On 11/28/07, William Morgan wrote: > > Excerpts from Andrei Maxim's message of Tue Nov 27 18:19:43 -0800 2007: > > [Wed Nov 28 03:50:30 +0200 2007] unlocking /Users/andrei/.sup/lock... > > /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:14:in `to_i': > > Infinity (FloatDomainError) > > Heh. Does this patch help? > > --- bin/sup-sync (revision 731) > +++ bin/sup-sync (working copy) > @@ -7,6 +7,9 @@ > > class Float > def to_s; sprintf '%.2f', self; end > + def to_time_s > + infinite? ? "unknown" : super > + end > end > I have decided to delete most of the emails and it worked ok. But thanks for the patch :) -- Andrei Maxim http://andreimaxim.ro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071129/57c172b4/attachment.html