GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
When I do the following:
Timecop.travel(Date.parse('Dec 15, 2012')
d = Date.parse('Dec 15')
d == Date.parse('Dec 15, 2013')
parse just assumes it is current real year.
Any way to fix or advice? I wouldn't mind putting in a pull request, though not sure where to start.
Date#parse is implemented by Ruby stdlib's Date class. http://www.ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html#method-c-parse
You would need to patch its behavior there.