- Fixed incorrect regex in hook format unit tests. Note that this
doesn't show up in the tinderbox, because that version of task is
not built with Lua support.
- Fixed unit tests that broke because the unit test script took more
than one second to run. Ordinarily is a test script does this:
$ task add foo
$ task list
Then the age of the task is listed as '-', which means under one
second. But if the test does this:
$ task add foo
$ sleep 1
$ task list
Then the age is listed as '1 sec'. Sometimes, as in these tests,
the host may be just slow enough that the test script expects '-',
but gets '1 sec'.
Date: Sun, 28 Feb 2010 12:10:06 -0500
Subject: [PATCH] Enhancement - time support in the Date object.
- Added ability to parse and display time, using:
h - single digit hour
H - double digit hour
N - double digit minutes
S - double digit seconds
- Added a request for mktime() to automatically determine whether
summer time should be considered.
- Added Date::Date (m, d, y, hr, mi, se) constructor.
- Added Date::sameHour comparison method.
- Added unit tests.
- Implemented API calls: task_get_due, task_get_end, task_get_entry,
task_get_start, task_get_until and task_get_wait.
- Implemented unit tests for API calls.
- Implemented new Record::get_ulong method.
- Implemented unit tests for get_ulong.
- Allows rc.tag.indicator to replace the default + indicator.
- Allows rc.active.indicator to replace the default * indicator.
- Allows rc.recurrence.indicator to replace the default R indicator.
- Corrected problem in unit test that expected the wrong result.
- Fixed Color::Color (const std::string&) so that the foreground and
background are now considered two different colors, are upgraded
separately, if necessary, and then blended. The problem affected
all instances of "<256-color> on <16-color>". Hooray for unit
tests.
- Oddly, there were no unit tests for the Color object. Now there are
1,033.
- Three of these tests fail, which justifies adding them in the first place.
- Task was preventing removal of due date from any task that had a due date,
which is wrong. It should be any task with a recur: value and a due date
(thanks to John Florian).
- Implemented all command hooks.
- Implemented several field hooks.
- Implemented several task hooks.
- Reorganized event validation code.
- Finalized Hooks -> API::call* mechanism.
- Implemented several hook unit tests.
- Corrected unit tests that didn't specify rc.hooks=on.
- Corrected builds that include Lua.
- improved dateformat handling now defaulting to YMD set via
dateformat.holiday variable
- fixed missing sorting in holiday table output when running
calendar.holidays=full
- renamed reportdateformat to dateformat.report
- added config file checking for calendar.holidays and calendar.details
- added 2 holiday files for SE and US (watertown, MA)
- added displaying of holidays in 'task cal'
via calendar.holidays
- the legend in the calendar can now be turned off
- weeknumbers in the calendar can now be color-coded
- changed variable name from annotation.details to annotations
- added report.X.annotations
- changed values from 2, 1, 0 to full, sparse, none
- made reportdateformat available in timesheet
- Now supports 'task config name value', 'task config name ""', and
'task config name' to directly modify the .taskrc file.
- Updated man page.
- Added unit tests.
- Modified existing config command to also display configuration
variables that have no values.