square/plastic — pull request #4 by gian (2013-05-06 22:28:27+00:00)
Title: Fix validation for end-of-month card expiry

A card that was issued in UTC-1300 with an expiry of 02/13 is currently considered expired after 2013-03-01 00:00:00 UTC (which this code uses for validation). This PR relaxes the validation to permit a card to be considered valid until 2013-03-01 13:00:00 UTC.

Includes a couple new tests to ensure:
1) that this works on the first day of the month
2) that we're not relaxing validation beyond the first day of the month (i.e., it doesn't work on the second day of the month)