7even/zodiac — pull request #5 by BastienDuplessier (2012-05-18 09:40:01+00:00)
Title: Bug on starsign on leap year

Hello !

I found a bug in your gem.
I was trying to get the starsign of 02/29 but I got an error.

invalid date
zodiac (0.2.3) lib/zodiac/finder.rb:7:in `new'

I fixed that in this pull request.

It was the YEAR constant. 2011 isn't a leap year and DateTime.new raise an error when asking datetime on 2011/02/29 (witch doesn't exist).

Regards,

Bastien.