This post originated from an RSS feed registered with Ruby Buzz
by Rick DeNatale.
Original Post: Time Flies, The Anniversary Gem is Already 2.0.0
Feed Title: Talk Like A Duck
Feed URL: http://talklikeaduck.denhaven2.com/articles.atom
Feed Description: Musings on Ruby, Rails, and other topics by an experienced object technologist.
Version 1.0.2 fixed a bug which I found when trying to answer one of the comments on my original blog post. It was an edge case which returned one two many months and a negative day count.
But I also realized in responding to the comment which exposed the bug, that I had a minor misconception about where extra monthiversaries should fall in March. I've now fixed that so that they always fall on March 1.
Since this is a breaking change, I've bumped the major version number to 2
Date calculations are just inherently complex!
Original article writen by Rick DeNatale and published on Talk Like A Duck | direct link to this article | If you are reading this article elsewhere than Talk Like A Duck, it has been illegally reproduced and without proper authorization.