Commit graph

4490 commits

Author SHA1 Message Date
Paul Beckingham
4f8d6c877d Variant
- Implemented an (unused) operator_nopartial for the sake of symmetry.
2014-05-31 17:54:43 -04:00
Paul Beckingham
b272513747 Unit Tests
- Modified test to use a command that exceeded the rc.abbreviation.minuіmum
  length.
2014-05-31 17:30:20 -04:00
Paul Beckingham
a799b54ad4 Unit Tests
- Modified test to use a command that exceeded the rc.abbreviation.minuіmum
  length.
2014-05-31 17:24:29 -04:00
Paul Beckingham
cefbaf779b Parser
- ::initialize only overrides Parser::minimumMatchLength when
  rc.abbreviation.minimum is non-zero.
2014-05-31 17:23:00 -04:00
Paul Beckingham
68555315e0 Parser
- Scans the tree to find the binary, after the calendar report runs the main
  report and prepares to run the detail report. Now I think about it, this
  feature could be implemented vai hooks.
2014-05-31 15:36:12 -04:00
Paul Beckingham
382881c0e1 CmdCustom
- Filter args must contain spaces between them.  Splitting on token boundaries
  goes too far and separates '-' from 'tag'.
2014-05-31 15:11:24 -04:00
Paul Beckingham
a1ee44ac17 Parser
- ::findPlainArgs will now only upgrade an arg to a search if the arg itself
  cannot be lexed into subtokens.
2014-05-31 14:11:53 -04:00
Paul Beckingham
cf5eb73f04 CmdCustom
- Now places ( ) around the custom report filter. This gives it a chance at
  allowing 'or' and 'xor' operators when combined with a command lne filter.
2014-05-31 13:58:40 -04:00
Paul Beckingham
5ac3db3168 Parser
- Modified ::injectDefault to use Lexer::token_split instead of
  Lexer::word_split which allows stranger default commands. Not sure if this
  is necessary, but it seems like the right thing.
2014-05-31 13:54:56 -04:00
Paul Beckingham
f4605a1bc7 Parser
- Implemented ::capture_last, so that new args can be injected at either end
  of the command line.
2014-05-31 13:52:59 -04:00
Paul Beckingham
7598997e70 Lexer
- Implemented ::token_split, which performs a full lex, and doesn't require
  white space like ::word_split does.
- Added unit tests.
2014-05-31 13:51:10 -04:00
Paul Beckingham
0af9bbdc03 Lexer
- Renamed ::split to ::word_split, for clarity and because of the need for a
  full token split, coming next.
2014-05-31 13:48:52 -04:00
Paul Beckingham
e753473dc4 Documentation
- Updated DEVELOPER docs regarding unit tests and the use of the 'needsTest'
  label in the bug database.
2014-05-31 13:46:00 -04:00
Paul Beckingham
30fee92914 Parser
- ::findPlainArgs was only being run in debug mode. Not a good idea.
2014-05-31 12:27:56 -04:00
Paul Beckingham
190b6fe635 Diagnostics
- Display debug/release build type in the diagnostics command.
2014-05-31 12:12:40 -04:00
Paul Beckingham
744f0f55ac Unit Tests
- Removed obsolete references to 'synch.key'.
2014-05-31 11:53:17 -04:00
Paul Beckingham
6514bdfc4d TW-28, TW-271, TW-277, TW-752, TW-1265
- TW-1265 cannot add UDA with underscore (thanks to Jakub Wilk).
- Added unit tests for TW-1265.
- Added ChangeLog and AUTHOR entries for other fixed issues.
2014-05-31 11:11:53 -04:00
Paul Beckingham
4694cfe0fe Variant
- Added specialized handling for 'priority' attributes when compared using the
  <, <=, > or >= operators.
2014-05-31 10:02:50 -04:00
Paul Beckingham
ba8c007ace Filter
- When a filter resolves an identifier through a DOM reference, it records
  the source. In other words, when 'priority' is resolved to 'H', the source
  reference ('priority') is stored in the variant. This is because different
  data attributes behave differently when compared.
2014-05-31 10:01:00 -04:00
Paul Beckingham
3bc44681a5 Variant
- A variant now contains a source reference, which indicates where it came
  from.  This is used to determine whether 'H' is a priority or just a word.
2014-05-31 09:59:18 -04:00
Paul Beckingham
6bcb9e4bf3 Parser
- Plain words found in filters are now upgraded to search terms.
2014-05-31 08:50:52 -04:00
Paul Beckingham
6ccca32434 Unit Tests
- Downgraded bash constructs to sh, reducing the requirements from bash to sh.
2014-05-30 21:39:55 -04:00
Paul Beckingham
87dcbd556e Recurrence
- Task::validate and getNextRecurrence needed to consider both Duration and
  ISO8601p.
2014-05-30 21:29:42 -04:00
Paul Beckingham
6d5d93d753 Task
- Added diagnostics for date assignments. Only duration assignment diagnostics
  were present.
2014-05-30 18:14:33 -04:00
Paul Beckingham
f2a8e22866 Unit Tests
- Uses full duration names '9months' rather than abbreviations '9mo'.
  This is in anticipation of reduced flexibility.
2014-05-30 18:13:33 -04:00
Paul Beckingham
9f6e37fa06 Portability
- Reordered includes to allow build on FreeBSD (thanks to Pietro Cerutti).
2014-05-30 15:25:34 -04:00
Paul Beckingham
688dcb6cd3 Filter
- Fixed ::pendingOnly, which now has a clearly-defined set of rules.
2014-05-30 00:39:38 -04:00
Paul Beckingham
da95c16da9 Unit Tests
- Modified a test that relies on an obsolete message.
2014-05-29 23:17:02 -04:00
Paul Beckingham
5baa999459 Build
- Added missing define for FreeBSD.
2014-05-29 20:21:34 -04:00
Paul Beckingham
46d1f2c679 Build
- Added missing include for FreeBSD.
2014-05-29 20:05:29 -04:00
Paul Beckingham
3e34679f4a Build
- Added missing include for FreeBSD.
2014-05-29 19:39:30 -04:00
Paul Beckingham
592a3bb60f Lexer
- Lexer now makes a speculative legacy dateformat parse whenever it encounters
  a decimal digit.  This assumes that rc.dateformat begins with a numeric date
  element, which is a restriction, but not a big one.
2014-05-29 18:09:11 -04:00
Paul Beckingham
79576819c3 Date
- Added the ability to suppres ISO (fixed) and epoch date parsing.
2014-05-29 18:06:52 -04:00
Paul Beckingham
52eaf3f9c2 Variant
- Can now convert type_string to type_date via legacy dateformat, provided
  that Context transmits the format.
2014-05-29 00:43:39 -04:00
Paul Beckingham
f585f31d69 OldDuration
- Removed obsolete OldDuration object, replaced by Duration.
2014-05-28 23:59:16 -04:00
Paul Beckingham
9693a724f2 CmdEdit
- Converted from OldDuration to Duration.
2014-05-28 23:55:20 -04:00
Paul Beckingham
e73d19152e ColScheduled
- Converted from OldDuration to Duration.
2014-05-28 23:51:49 -04:00
Paul Beckingham
05be2c2fc4 ColDate
- Converted from OldDuration to Duration.
2014-05-28 23:50:32 -04:00
Paul Beckingham
f36ffd91e3 ColDue
- Converted from OldDuration to Duration.
2014-05-28 23:49:32 -04:00
Paul Beckingham
5ee040f3a3 CmdBurndown
- Converted from OldDuration to Duration.
2014-05-28 23:48:35 -04:00
Paul Beckingham
3302707768 CmdSummary
- Converted from OldDuration to Duration.
2014-05-28 23:47:14 -04:00
Paul Beckingham
0fba1957c2 CmdInfo
- Converted from OldDuration to Duration.
2014-05-28 23:46:09 -04:00
Paul Beckingham
c103f22513 ColRecur
- Converted from OldDuration to Duration.
2014-05-28 23:43:48 -04:00
Paul Beckingham
ea2efe4c93 ColUDA
- Converted from OldDuration to Duration.
2014-05-28 23:42:54 -04:00
Paul Beckingham
9412f685dd CmdStats
- Converted from OldDuration to Duration.
2014-05-28 23:42:03 -04:00
Paul Beckingham
0238d36143 feedback
- Converted from OldDuration to Duration.
2014-05-28 23:40:09 -04:00
Paul Beckingham
07282d2343 Duration
- Missing include.
2014-05-28 23:36:59 -04:00
Paul Beckingham
117ade1609 Duration
- Duration inherits all of OldDuration's formatting capabilities.
- ::formatISO adds support for ISO8601 desginated period type.
2014-05-28 23:28:56 -04:00
Paul Beckingham
29d3fa9c55 sort
- Converted from OldDuration to Duration.
2014-05-28 22:43:24 -04:00
Paul Beckingham
965284875c Duration
- Migrated methods and unit tests from OldDuration to Duration.
2014-05-28 22:41:29 -04:00