Commit graph

2922 commits

Author SHA1 Message Date
Paul Beckingham
3afaa2fd0b A3t
- Implemented A3t::capture_first, for command injection.
2014-04-16 17:03:38 -04:00
Paul Beckingham
16fc71e2ef Code Cleanup
- Readability.
2014-04-16 16:56:45 -04:00
Paul Beckingham
43be3edb31 A3t
- Testing structㄩre of A3t::inject_defaults.
2014-04-16 16:01:42 -04:00
Paul Beckingham
b5649fca8c A3t
- Relocated calls to findCommand, findUUIDList, findIdSequence from
  A3t::parse to Context::initialize.
2014-04-16 15:59:56 -04:00
Paul Beckingham
9b0e4d6eb1 Args
- Added specific calls to locate the command, rc: an rc. overrides.
2014-04-16 15:57:12 -04:00
Paul Beckingham
ca8d22ab54 A3t
- Added stubbed A3t::inject_defaults and A¾t::resolve_aliases methods.
2014-04-16 00:51:49 -04:00
Paul Beckingham
de5204adb9 A3t
- Added operator entities.
2014-04-16 00:48:27 -04:00
Paul Beckingham
bf30fb3085 Eval
- Added Eval::getOperators to expose suported operator symbols.
2014-04-16 00:38:43 -04:00
Paul Beckingham
fff1ae2d6e A3t
- Fixed segfault caused by combined map lookup and method call.
2014-04-16 00:12:18 -04:00
Paul Beckingham
8d10d81198 Columns
- Removed ColUDA::is_uda override, because it was wrong.  Now in the base class
  a member variable is referenced.
2014-04-16 00:06:29 -04:00
Paul Beckingham
2aa224d278 TW-1298
- TW-1298 The color 'orange' is not recognized. - taskwarrior will not start
          anymore (thanks to Bernd Humpa).
2014-04-15 23:37:05 -04:00
Paul Beckingham
c03df08d1e TW-1278
- TW-1278 Next report filters tasks with due date set until due date arrives
          (thanks to Renato Alves).
2014-04-15 23:22:31 -04:00
Paul Beckingham
c0ed08e5e2 A3t
- Tags attributes as MODIFIABLE.
2014-04-15 21:14:38 -04:00
Paul Beckingham
194db8634e Columns
- The Columns::is_uda() method allows identification of UDA attributes.
2014-04-15 21:11:10 -04:00
Paul Beckingham
3d79abb106 Portability
- Fixed cmake issues on NetBSD (thanks to atomicules).
2014-04-15 20:55:26 -04:00
Paul Beckingham
d0ebf4c354 Context
- Now distinguishes between readcmd and writecmd entities.
2014-04-14 01:16:54 -04:00
Paul Beckingham
a933109700 A3t
- Added 'helper' entity support.
2014-04-14 01:14:56 -04:00
Paul Beckingham
26c353dd2d Context
- Added helper, command and attribute entities.
2014-04-14 00:59:31 -04:00
Paul Beckingham
e5ceb15365 Code Cleanup
- Removed odd comment and unused member.
- Removed commented-out code.
2014-04-14 00:58:32 -04:00
Paul Beckingham
410e3890c6 Code Cleanup
- Removed redundant A3::apply_overrides call.
2014-04-14 00:44:54 -04:00
Paul Beckingham
1c24ec9c20 Context
- Merged new and old code so that A3 and A3t calls are interleaved, making
  it easier to transfer processing.
2014-04-14 00:31:26 -04:00
Paul Beckingham
5c6486427b A3t
- Implemented A3t::apply_overrides.
2014-04-14 00:24:54 -04:00
Paul Beckingham
a91101919d Code Cleanup
- Removed obsolete A3::rc_overrides and A3::get_data_location methods.
2014-04-14 00:07:40 -04:00
Paul Beckingham
ebd522dfee Context
- Enabled initial A3t setup, migrating some functionality away from A3.
- Added table of attribute modifiers, for use as parsing entities.
- Context::initialize is now a hybrid of A3 and A3t processing, with the
  transition under way.
2014-04-13 23:57:08 -04:00
Paul Beckingham
cf01cc4d02 A3t
- Added (disfunctional) A3t::append_stdin method.  Disfunctional in that
  it breaks a lot of tests because they use pipes, although it works.
- Added A3t::get_overrides to extract rc:<file>.
- Added A3t::get_data_location to extract rc.data.location:<location>.
2014-04-13 23:53:04 -04:00
Paul Beckingham
70ea3fec8c Bug
- With FEATURE_STDIN defined, iostream is required.
2014-04-13 23:50:59 -04:00
Paul Beckingham
6c698d5733 A3T
- Added TERMINATED tag to all args following the terminator.
- Added braces for clarity.
2014-04-13 22:34:49 -04:00
Paul Beckingham
d12a33989a Code Cleanup
- Removed unused 'locale' configuration setting.
2014-04-13 15:53:46 -04:00
Paul Beckingham
a49d1bfbc0 Code Cleanup
- Removed unused Context::extension_dir.
2014-04-13 15:22:23 -04:00
Paul Beckingham
fe0d03664c TW-306
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
2014-04-13 10:34:17 -04:00
Paul Beckingham
ac45f263d8 Code Cleanup
- Modified burndown code to conform to coding convention, and be more
  readable while researching TW-306.
2014-04-13 10:26:43 -04:00
Paul Beckingham
3038b11780 TW-285
- TW-285 DUETODAY doesn't give any output (thanks to Jostein Berntsen).
- Added unit tests.
2014-04-13 09:18:58 -04:00
Paul Beckingham
c933ed2cf7 Code Cleanup
- Migrated the recur.cpp getDueState() function into Task::getDateState(),
  which can assess any date attribute.
- Improved implementation to distinguish between:
    - not due, or not due for rc.due days
    - due after today
    - due later today
    - due earlier today
    - due before today
  This greater precision should address some outstanding issues.
2014-04-12 16:03:19 -04:00
Paul Beckingham
5706cca207 TW-115
- TW-115 allow "0day" durations for UDAs.
2014-04-12 14:12:59 -04:00
Paul Beckingham
1922c4f6a4 TW-1257
- TW-1257 The 'Syncing with <host>:<port>' message ignores verbosity tokens.
2014-04-12 14:01:48 -04:00
Paul Beckingham
501194abfa TW-1300
- TW-1300 _get could use return codes (thanks to Scott Kostyshak).
2014-04-12 13:32:35 -04:00
Paul Beckingham
32272addd0 Code Cleanup
- Simplified leap year code.
- Began documenting date constants (eom, eow ...).
- Implemented 'soq', 'eoq'.
- Stubbed all the missing named dates.
- Removed unrelated constants.
2014-04-12 12:29:06 -04:00
Paul Beckingham
05c90b1779 Bug
- Fixed bug in named entity lookup.
- Removed obsolete failing test.
2014-04-12 12:28:48 -04:00
Paul Beckingham
c6b0c0d927 TW-1301
- TW-1301 Virtual tag +PENDING (thanks to Profpatsch).
- Also added +COMPLETED and +DELETED.
2014-04-12 11:31:47 -04:00
Paul Beckingham
a49ed165c3 Bug TW-1302
- TW-1302 CmdShow.cpp:244: bad length in substr ? (thanks to David Binderman).
2014-04-12 11:12:24 -04:00
Paul Beckingham
25b8082fbd Diagnostics
- Added diagnostic token dump to 'calc' in debug mode, after token substitution
  so the new tokens can be seen.
- Added unit tests to look for parser syntax errors.
- Added test for '2--3'.
2014-04-06 23:57:15 -04:00
Paul Beckingham
70ba19fd5e Bug TW-1254
- TW-1254 Calc command can segfault on negative numbers (thanks to Renato
          Alves).
- Implemented a recursive descent parser to syntax check the expression,
  and disambiguate unary minus. The syntax checking is not generating any
  diagnostics yet.
2014-04-06 00:29:14 -04:00
Paul Beckingham
325d0d1738 Documentation
- Mentioned the hostname verification.
2014-04-05 10:37:53 -04:00
Alexander Sulfrian
7fb1487993 TLSClient: add hostname verifcation
The CN or subjectAltNames of the TLS certification is now matched with
the hostname connected to.

taskd.trust is now a tristate value (allow all, ignore hostname,
strict) to optionally disable the new hostname verification.
2014-03-22 13:17:40 -04:00
Alexander Sulfrian
fdcc04d13e TLSClient: add verify_certificate as member function
Certificate verification is now done in a member function of the
TLSClient, so that the member variables could be accessed.
2014-03-22 12:55:06 -04:00
Paul Beckingham
40dd95ddfb Code Cleanup
- Removed debugging and redundant code.
- Removed socket cast.
- Added diagnostic message on handshake fail.
2014-03-17 18:45:02 -04:00
Alexander Sulfrian
88b94ac2fc TLSClient: do certification verification with old gnutls
The automatic verification for the server certificate with
gnutls_certificate_set_verify_function does only work with gnutls
>=2.9.10. So with older versions we should call the verify function
manually after the gnutls handshake.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-03-17 14:38:42 -04:00
Paul Beckingham
5774c31dfd E9
- Removed dead code.
2014-03-14 23:50:05 -04:00
Paul Beckingham
122cc2f56d ISO8601
- Simplified and debugged ISO8601::resolve method regarding UTC, local and
  specified time offsets.
2014-03-14 23:48:56 -04:00
Paul Beckingham
f05b01f9fa Eval
- Enabled unary minus operator.
2014-03-14 23:46:14 -04:00