Commit graph

181 commits

Author SHA1 Message Date
Paul Beckingham
bd0309b4ff Enhancements - modifiers
- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
2009-06-12 21:11:33 -04:00
Paul Beckingham
0b14efbb76 Enhancements - validation
- Implemented Cmd::isReadOnlyCommand.
- Implemented Cmd::isWriteCommand.
- Added unit tests for above.
2009-06-12 01:45:42 -04:00
Paul Beckingham
37e08df8ba Enhancements - TDB2::gc
- Stubbed TDB2::gc.
- Fixed broken tests Makefile
- Added handleCustomReport call to Context dispatch.
2009-06-11 21:17:30 -04:00
Paul Beckingham
754b79afb2 Enhancement - Record::has
- Implemented Record::has which guarantees no autovivification of
  attributes.
2009-06-11 20:29:53 -04:00
Paul Beckingham
1cac0d6647 Bug Fix - FF4 newline
- Oops - FF4 did not include a newline at EOL.
2009-06-11 02:00:05 -04:00
Paul Beckingham
9776495286 Code Cleanup - TDB removal
- TDB removed from all code, but source kept for further reference.
2009-06-10 22:54:56 -04:00
Paul Beckingham
df38d5aaa0 Code Cleanup
- Relocated longUsage and shortUsage to report.cpp, where they belong,
  which has the positive side effect of allowing all the compiled unit
  tests to link.
2009-06-10 21:51:01 -04:00
Paul Beckingham
d7da182450 Code Cleanup
- Renamed T2.h -> Task.h, T2.cpp -> Task.cpp.  This permanently avoids
  the problem where g++ on OpenBSD 4.5 fails because of the T class,
  which probably conflicts with C++ templates.  Who knows.
2009-06-10 21:35:07 -04:00
Paul Beckingham
71f4749d56 Code Cleanup
- Renamed files task.h -> main.h, task.cpp -> main.cpp.  This is to
  prepare for the next rename, which addresses the OpenBSD bug.
- Removed utf8.h, utf8.cpp from Makefile.am, which were inadvertantly
  added.
2009-06-10 21:20:00 -04:00
Paul Beckingham
fb5fe5f5b4 Integration - "projects" report
- "projects" report converted to 1.8.0.
- Relocated code from task.cpp to recur.cpp to allow unit tests to link
  without includign task.cpp and therefore main.
- Removed obsolete sandbox directory.
- Fixed bug where Config::load deleted the pre-loaded custom reports.
- Fixed bug where Cmd::valid failed to include custom reports properly.
2009-06-08 00:54:49 -04:00
Paul Beckingham
9d48faa759 Enhancements - T2::legacyParse
- T2 can now parse all supported legacy formats (ff2, ff3) as well as
  ff4.
- Added tag and attribute support to T2.
- Added T2 unit tests for all formats.
2009-06-07 22:17:11 -04:00
Paul Beckingham
bf4cf8e786 Unit Tests - Duration
- Added tests to cover Duration::valid
- Added negative test
2009-06-07 17:14:06 -04:00
Paul Beckingham
7a219c999e Unit Tests - Config
- Added unit tests for Config.  Why didn't I do this a year ago?
- Shut off old 1.7.0 code (gulp).
- Task now thoroughly broken, and only 1.8.0 can help.
2009-06-07 16:31:10 -04:00
Paul Beckingham
d702ba8f24 Enhancement - Integration
- Integrated Cmd object.
- Enhanced Context object with dispatch and shadow methods.
- Fixed bug in Context::parse.
- Implemented command parsing.
- Fixed Sequence bug, and unit tests.
2009-06-07 16:00:22 -04:00
Paul Beckingham
190c6b53fc Enhancements - Config
- Added processing for context.config overrides, and associated
  argc,argv handling.
- Bug fix in filt.t.cpp, but three tests still fail.  Too big a
  distraction to fix right now.
- Warning: build is not broken, but task is broken.
2009-06-07 14:58:32 -04:00
Paul Beckingham
24f31eeb00 Enhancements - Cmd object
- New Cmd object to handle localized commands, customReports and general
  command parsing.
- Localized new Subst methods.
- Relocate guess method from parse.cpp to text.cpp.
- Converted Att object to use new valid/parse scheme.
- Unit tests for Cmd object.
- Fixed att.t.cpp unit tests.
2009-06-07 14:00:14 -04:00
Paul Beckingham
a2a9fa7f35 Enhancement - Subst parsing
- Corrected Subst parsing.
- Added more unit tests.
2009-06-07 00:28:21 -04:00
Paul Beckingham
9b78631e6f Enhancement - Sequence integration
- Sequence object fully integrated.
2009-06-06 23:55:36 -04:00
Paul Beckingham
0ec3b4b6af Enhancement - Attribute modifiers
- Implemented half the modifiers.  The easy half.
- Implemented unit tests that don't all pass yet, and are incomplete.
2009-06-05 01:49:53 -04:00
Paul Beckingham
a60d54be61 Enhancement - Filters
- Filter implemented.
- Unit tests started, need more as Att::match matures.
2009-06-05 00:15:00 -04:00
Paul Beckingham
da88dfe15a Build Fix
- Removed the now-obsolete Mod from the Makefiles.
2009-06-04 22:20:26 -04:00
Paul Beckingham
54f155f439 Enhancements - Context integration
- Context now gathers messages and footnotes.
- task now calls into the new 1.8.0 code (via Context), then calls
  into the old 1.7.0 code.  Two for the price of one.
2009-06-04 22:14:03 -04:00
Paul Beckingham
b887f7267b Unit Tests - Record, T2
- Added Record::get, ::set, ::get_int tests.
- Added T2 tests.
- Fixed Record::composeF4 bug
2009-06-04 00:37:23 -04:00
Paul Beckingham
f295fdf78f Unit Tests - Att
- Merged all old Mod tests into Att.
- Fixed broken tests.
2009-06-03 21:20:09 -04:00
Paul Beckingham
55771cc999 Code Cleanup
- Mod object is no longer necessary, and is removed.
2009-06-03 21:10:12 -04:00
Paul Beckingham
66bd5fc3c0 Code Cleanup
- Integrated Context.config.
- Eliminated Config& as a function argument.
- Added extern references to Context where needed.
2009-06-03 02:03:49 -04:00
Paul Beckingham
9eb68881af Unit Tests - Att
- Added modifier parsing unit tests.
2009-06-02 22:32:22 -04:00
Paul Beckingham
a98951a8c3 Enhancements - Complete Record parsing
- Enhanced Record unit tests
- Fixed broken Att unit tests
- Fixed broken Att
2009-06-01 01:25:07 -04:00
Paul Beckingham
75c220c352 Enhancements - i18n & Subst
- Created initial, empty strings files.
- Converted Subst to use Nibbler.
2009-06-01 00:15:08 -04:00
Paul Beckingham
7248267a72 Enhancements - T2 & Subst
- Implemented more helper functions in T2, prior to integration.
- Completed Subst.
- Completed Subst unit tests.
- Eliminated T::getAnnotationCount.
2009-05-31 23:43:11 -04:00
Paul Beckingham
fe4c8f3a9d Enhancement - Object rename prior to integration
- T -> T2
- TDB -> TDB2
2009-05-31 01:10:39 -04:00
Paul Beckingham
766c2d3620 Unit Tests - Complete Att unit tests
- Covers parsing, composition.
2009-05-31 00:10:35 -04:00
Paul Beckingham
cebacc7273 Unit Tests - Nibbler
- Complete rewrite of all Nibbler tests, this time including all
  boundary conditions.
2009-05-30 17:04:20 -04:00
Paul Beckingham
dde044c3d7 Enhancements - Nibbler upgrades.
- Enhancements to ensure that EOS conditions don't break calls.
2009-05-30 14:23:22 -04:00
Paul Beckingham
5263147c83 Enhancements - Nibbler + parsing
- New Nibbler object greatly assists in FF4 parsing.
- Unit tests for Nibbler.
- Record now parses itself.
- Att now parses itself.
2009-05-29 01:47:39 -04:00
Paul Beckingham
7c0aee4a5f Enhancement - Record object
- Added Record::Record (const std::string&)
- Added basic unit test for Record, which currently throws.
2009-05-28 21:31:48 -04:00
Paul Beckingham
4fda101f28 Unit tests - subst
- Implemented basic subst tests, awaiting Record/T integration before
  this can be expanded.
2009-05-28 18:23:21 -04:00
Paul Beckingham
54789082c9 Enhancement - StringTable integration
- StringTable now integrated into Context.
- Docs updated for new "locale" configuration variable.
- StringTable unit tests implemented.
2009-05-28 17:59:55 -04:00
Paul Beckingham
7aace1b3db Patch - Support tag exclusion filtering
- Now supports "-tag" in filters to filter out tasks that do not
  have the specified tag (thanks to Chris Pride).
- Added unit tests to prevent regression.
- Updated the filter docs to include examples.
2009-05-28 11:30:30 -04:00
Paul Beckingham
0fcaf85652 Bug Fix - blank annotations now disallowed
- Prevented blank annotations from being added, and the description
  being echoed as though it were the annotation applied (thanks to
  Bruce Dillahunty).
- Added bug.annotate.t unit test to prevent regression.
2009-05-27 01:01:25 -04:00
Paul Beckingham
4532727a32 Unit Tests - args.t
- Implemented unit tests verifying '--' functionality.
2009-05-24 22:48:55 -04:00
Paul Beckingham
41a6cdea22 Enhancement - Mod/Att interaction
- New unit tests for Mod object.
- Added new constructors to Mod object for ease of use.
- Added Mod handling in Att object.
- Added more Att unit tests.
2009-05-24 14:45:50 -04:00
Paul Beckingham
c860d58641 Enhancement - Att object
- Improved new Att object.
- Added new constructor to accommodate integer attribute values.
- Implemented unit tests.
2009-05-24 12:25:20 -04:00
Paul Beckingham
8fa38fc4c3 Enhancement - Sequence range limiting
- Prevents overly large ranges.  A bug was reported from a user
  who tried this:

    % task annotate 1 1-987654321

  The 1-987654321 was assumed to be a valid range, and caused task
  to consume all available memory.  The workaround was:

    % task 1 annotate 1-987654321

  But it seems a good idea to range-limit sequences.  Currently
  it is 1000.  Perhaps this should be configurable.
2009-05-23 17:59:45 -04:00
Paul Beckingham
f3724aa714 Enhancement - Sequence object
- Implemented sequence object to encapsulate the worries of parsing
  sequences.
- Implemented unit tests.
2009-05-23 16:10:42 -04:00
Paul Beckingham
2e39929d71 FF4 - util.cpp:convertDuration -> Duration
- Replaced util.cpp convertDuration function with Duration object.
2009-05-16 22:14:32 -04:00
Paul Beckingham
cd89e10cfb Unit Tests - sequence
- Implemented unit tests to verify that sequences work properly on
  all relevant commands.
2009-05-09 23:35:32 -04:00
Paul Beckingham
1c736a319d Enhancement - Custom report limit override
- If a custom report has a specified limit to the number of tasks
  it shows, then that limit may be  overridden by specifying a new
  quantity on the command line.
- Added unit tests to verify expected behavior.
- Updated documentation to reflect new functionality.
- Removed obsolete documentation references to an "oldest" and
  "newest" configuration variable.
2009-05-09 22:32:40 -04:00
Paul Beckingham
e81fdd1975 Unit Tests - improved logic in nag.t
- Used the correct builtin Test::More method.
2009-05-09 14:03:54 -04:00
Paul Beckingham
143666aca0 Unit Tests - en passant + sequence
- Added unit tests to ensure that the "done" command handles both
  sequences and en passant modifications.
2009-05-08 01:20:20 -04:00