Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Sep 14, 2013
  1. Add '_' as a valid whitespace character.

    authored
    This fixes a bug in the UTC date handling which would sometimes result
    in the day being off by one (+1).
Commits on Sep 13, 2013
Commits on Sep 7, 2013
  1. Time tests and fixes.

    authored
    This adds tests for the time specifiers (including with all the previous
    date tests). Combined this brings the tests up to ~360k with 88% lines
    covered.
    
    Statements   : 88.52% ( 1782/2013 )
    Branches     : 79.15% ( 953/1204 )
    Functions    : 93.48% ( 86/92 )
    Lines        : 88.46% ( 1756/1985 )
    
    Fixed the following bugs:
    
    * UTC timezone wasn't being honored.
    
    * The 4 digit time format (e.g. 1230) wasn't being parsed correctly.
    
    * AM/PM designators weren't being converted to numerical values
      properly.
  2. Garbage test cases to exercise those error codes.

    authored
    This brings the coverage up from 60% to 77%. Now all that's left are
    those 'time' derived 'spec_base's.
  3. Add istanbul test coverage.

    authored
    You'd think with this many tests we'd have covered every line of code in
    the parser... but you forget all those error codes we aren't exercising!
  4. Increment and decrement testing and bug fixes.

    authored
    Implemented as the mother of all tests... this wraps the existing test
    suite in a loop over a range of +/- {years, months, ...}. This also
    switches the tests to use the 'spec' reporter to make it easier to spot
    check.
    
    As with all tests this revealed some issues with the parsing of dates.
    Specifically, some initializations woudn't zero out the hours, minutes,
    seconds, and milliseconds resulting in bad results with doing date
    arithmatic.
  5. Tests for NEXT and LAST.

    authored
Commits on Sep 6, 2013
  1. Add some tests and fix off by one in month.

    authored
    Thanks to @mrmanc who fixed this in his fork and I surreptitiously fixed
    again upstream.
Commits on Apr 10, 2013
  1. Version 0.1.1

    authored
  2. Fix 'today' to use midnight for time.

    authored
    Seems more intuitive to me anyway. Before it would return the same
    result as 'now'.
Commits on Apr 9, 2013
  1. Initial Import

    authored
  2. Initial commit

    authored
Something went wrong with that request. Please try again.