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.
- Added include of auto.h to allow #ifdef SOLARIS to work.
- Put #ifdef around glob arguments that aren't supported on Solaris.
- Fixed uninitialized variable that only gcc on Solaris spotted.
- 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.
- Changed the default .taskrc file to have the color rules listed
in their precedence order, along with a comment to that effect
(thanks to John Florian)
- Fixed bug #371 which caused task to mis-apply certain color rules, like
color.alternate, which was (a) not applied first, and (b) not blended
with the other color rules (thanks to Richard Querin).
- 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.
- Implemented a master switch rc.hooks=off that can shut off all
hooks. Seems like a good idea.
- Added support for 'hooks' and 'hook.*' as valid configuration
entries.