[Nitro] [PATCH] New FeedHelper

Bryan Soto bryan.a.soto at gmail.com
Thu Apr 20 02:50:48 EDT 2006

On 4/19/06, Fabian Buch <fabian at oggu.de> wrote:
> Am 18.04.2006 um 22:01 schrieb Bryan Soto:
> > I've been waiting for this since you mentioned it on #nitro. :)
> There it is, finally :).

Worth waiting for. Very nice. :)

I'm sure this is a Windows thing:

  1) Error:
ArgumentError: time must be positive
    ./lib/nitro/helper/feed.rb:231:in `-'
    ./lib/nitro/helper/feed.rb:231:in `build_atom'
    ./test/nitro/helper/tc_feed.rb:84:in `test_atom'

Snippet from irb:

irb(main):001:0> Time.new-60*60*24*365*104
ArgumentError: time must be positive
	from (irb):1:in `-'
	from (irb):1

irb(main):004:0> 60*60*24*365*104

irb(main):005:0> Time.new.to_i

Was there a reason we need to subtract 104 years? Maybe 5 would be
enough? It seems to work on WIndows:

irb(main):007:0> Time.new-(60*60*24*365*5)
Fri Apr 20 23:49:53 Pacific Standard Time 2001

"Never tell people how to do things. Tell them what to do and they
will surprise you with their ingenuity." —General George S. Patton

More information about the Nitro-general mailing list