Ruby solar calculations

Hi!

I’m trying to translate this:

http://aa.usno.navy.mil/faq/docs/SunApprox.php

into Ruby:

https://gist.github.com/1278755

But my equation of time http://en.wikipedia.org/wiki/Equation_of_time
and
declination of the sun are a bit off and I was wondering if somebody
here
could spot the error?

–Dwayne