billgarrison/SORelativeDateTransformer — pull request #10 by dscandrett (2013-03-17 21:27:30+00:00)
Title: Add optional 'relative depth' to the formatted results.

This means that rather than just taking the first match for a date-time technically 1 year, 3 months, 2 days in the past and showing "One year", this will now take the input of RelativeTransformDepth, which defaults to current behavior, but can then return one, two, or three deep. The default remains the shorter, summarized version.

This change only includes the English file, and I am not 100% convinced this will work in all languages depending on the formatting that is required. As the formatter iterates over the possible NSDateComponents, each component is now collected as a date/value pair first. After these are collected to the desired depth, the proper template is then rendered. This is different than the existing implementation, which only had the one possible template.