Commit graph

1887 commits

Author SHA1 Message Date
John Wiegley
1019f92a82 Merge pull request #424 from thdox/bug-1057
Add regression test file for bug #1057
2015-08-04 16:20:54 -07:00
John Wiegley
81b14e471a Merge remote-tracking branch 'origin/master' into next 2015-08-04 14:55:41 -07:00
John Wiegley
69de980aeb Revert "--depth for register" 2015-08-04 14:54:06 -07:00
John Wiegley
a24910b374 Whitespace cleanup 2015-08-04 14:47:44 -07:00
John Wiegley
a3e946f90f Merge remote-tracking branch 'origin/master' into next 2015-08-04 14:33:03 -07:00
John Wiegley
fbba9adc16 Merge pull request #216 from johannesgerer/master
--depth for register
2015-08-04 14:23:44 -07:00
John Wiegley
00e4cdb008 Merge pull request #317 from tripun/code_coverage
Add some unit tests for value_t
2015-08-04 14:14:44 -07:00
thdox
5bb4f2f593 untabify 2015-07-31 22:51:48 +02:00
John Wiegley
76f057c14c Re-indent some code that was indented incorrectly 2015-07-30 14:06:49 -07:00
Alexis Hildebrandt
d0fba947ad [cmake] Use CMAKE_SYSTEM_NAME to test the platform.
APPLE and CMAKE_HOST_APPLE only check the host system,
whereas CMAKE_SYSTEM_NAME checks the target system when
cross-compiling.
2015-07-28 20:55:56 +02:00
Alexis Hildebrandt
53cdde527d Merge pull request #416 from tdsmith/python-exec-link
link ledger executable to Python on OS X
2015-07-28 20:20:35 +02:00
Johann Klähn
a1cb25ad2d fix build for boost 1.58 2015-07-28 18:22:20 +02:00
Jonathan Wakely
bcaca24de4 Convert boost::optional objects to bool explicitly.
Fixes #417.
2015-07-27 20:37:16 +01:00
Johann Klähn
45e7410360 enable access to item's position in python bindings 2015-06-09 17:51:23 +02:00
John Wiegley
a78e7358ec Revert "boost::none_t no longer convertible from literal 0 in 1.58"
This reverts commit 48aec0f093.
2015-05-17 17:50:45 -05:00
John Wiegley
7df6a515e2 Revert "fix build for boost 1.58"
This reverts commit 68c9d649ca.
2015-05-17 17:50:44 -05:00
Johann Klähn
68c9d649ca fix build for boost 1.58 2015-05-10 13:41:26 +02:00
Johann Klähn
48aec0f093 boost::none_t no longer convertible from literal 0 in 1.58
Instead we use boost::none, which has been documented since boost 1.34.0.
2015-05-10 12:50:19 +02:00
Tim D. Smith
249527c985 link ledger executable to Python
Since the ledger executable embeds the Python interpreter, it does need
an explicit link to a Python framework on OS X after all.
2015-05-09 20:01:32 -07:00
John Wiegley
c586e1e494 Add a --no-revalued option 2015-05-05 13:26:57 -05:00
David Sklar
6439ea4799 Use ./.ledgerrc if ~/.ledgerrc doesn't exist 2015-04-27 10:12:14 -04:00
Ilya T
d0f2b64cbe Fix clang compile error (FreeBSD 10). 2015-03-13 08:20:37 +07:00
Alexis Hildebrandt
5e6d5e33af Merge pull request #396 from thdox/auto-match
Fix Auto match
2015-02-24 20:27:30 +01:00
thdox
73e3ecc6b8 Fix alignment of cleared-format with 4 spaces as separator. 2015-02-23 23:31:21 +01:00
thdox
80e432a7b2 Fix sorting for option --auto-match.
See http://en.cppreference.com/w/cpp/algorithm/max_element
and http://www.cplusplus.com/reference/algorithm/max_element/
The sorting for max requires < (and not >).
2015-02-22 16:07:54 +01:00
Alexis Hildebrandt
d5e1308d07 [ledger] Remove --cache option
and all boost serialisation related code.
2015-02-18 21:50:34 +01:00
Alexis Hildebrandt
f59abd4c76 [ledger] Remove --full-help option
since it is the same as --help.
2015-02-18 21:50:34 +01:00
Alexis Hildebrandt
17189b8106 [fix] Make trim function trim trailing whitespace
std::isspace(*e) returns false for the end of c-string null-byte.

Bugzilla: 1106
2015-01-20 22:18:32 +01:00
Alexis Hildebrandt
af7e7cdd8f Add pre-release info to --version output
Bump version to 3.1.1-alpha.1
2015-01-20 10:12:25 +01:00
Alexis Hildebrandt
80022bf04a [cmake] Minor cleanup 2015-01-20 10:12:25 +01:00
Alexis Hildebrandt
cebdfde369 Fix typo 2015-01-15 23:29:25 +01:00
Alexis Hildebrandt
f7fd65b9aa Fix -i short-option for --init-file
Bugfix for #1102

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 23:27:16 +01:00
Alexis Hildebrandt
01252035cd [doc] Add CheckTests to ctest
to check whether all available ledger options documented
and are being tested.

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 14:53:16 +01:00
Hans Erik van Elburg
98f67600a8 merge double fix + make changes minimalistic 2015-01-04 13:57:31 +01:00
Hans Erik van Elburg
93c55c5ec6 also added cygwin tweak to src/CMakeLists.txt 2015-01-03 23:35:39 +01:00
Alexis Hildebrandt
ba35340ca9 Bugfix 1038: empty reg report for this month period
when year was specified with literal Y or year directive, but not
when using apply year.
2014-12-29 11:08:10 +01:00
Alexis Hildebrandt
0462c887ae Improve error handling when parsing year directives
A literal Y directive or ‘year’ directive with an empty or invalid 
argument, e.g. ‘2o14’ (that is a small letter ‘oh’ instead of a zero)
would fail with the following rather unhelpful error message:
Error: bad lexical cast: source type value could not be interpreted as target
2014-12-28 13:42:02 +01:00
Alexis Hildebrandt
e716980c7d Fix plain year directive
Only Y2014 or apply year 2014 would actually set the year for the
following transactions; year 2014 would silently do nothing.
2014-12-28 13:32:22 +01:00
Alexis Hildebrandt
bb2b20b311 Use same license text formatting in source files 2014-12-27 11:38:36 +01:00
Alexis Hildebrandt
1dd9dcaab4 Bump copyright notice to 2015
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
  | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
2014-12-27 11:24:55 +01:00
Alexis Hildebrandt
a1a51f69f3 Correct no-python error messages
[ci skip]
2014-12-25 12:28:31 +01:00
Alexis Hildebrandt
f1478851ee Fix crash when using --trace 10 or above
uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
2014-12-23 23:45:39 +01:00
Alexis Hildebrandt
0a0f2f0d69 Fix crash when using -M with empty result
ledger -f /dev/null reg -M test causes a segmentation fault,
see bug 730 and duplicates 1080 and 1084 for details.

Kudos to Ikke for helping with debugging.
2014-12-16 19:37:37 +01:00
Adrian Lang
a013a73b26 Fix off by one error in textual.cc
This fixes parsing of transactions with single-character payees and comments.
2014-12-11 21:57:25 +01:00
Christophe Rhodes
3e1f6670fc support date as well as datetime in Balance.value()
cargo-cut'n'paste from py_amount.cc
2014-12-01 21:03:23 +00:00
ELIPTUS
af571c1047 Improve Embedded Python Support
Discussion:
https://groups.google.com/d/msg/ledger-cli/kq9sKoRX9vw/fmyhvPslzokJ
2014-11-12 22:51:56 -08:00
Stefano Zacchiroli
56976a127c make --columns default to terminal width, as returned by ioctl()
If set, the COLUMNS environment variable will take precedence over terminal
width. However, please note that COLUMNS is usually *not* exported by shells to
child processes, so in most cases COLUMNS will be undefined for ledger---hence
the motivation for this change.

Terminal width is queried using ioctl() on stdin. For the sake of portability
the querying is done only on platform where ioctl() is detected as supported at
compile-time.
2014-10-13 17:15:56 -04:00
Martin Michlmayr
96223f9e20 Add ISO 8601 date as recognized date string
Dates specified via --begin and --end are converted to a value expression
using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by
ledger.

Bug fix for #1072
2014-10-02 18:33:26 -04:00
Martin Michlmayr
fbcb5e9093 Fix period expression parsing for month to month without year
Bug fix for #1074, a regression introduced by the fix for bug #375
2014-10-02 17:31:26 -04:00
Carlos E. Garcia
5d6655c84f minor spelling fixes 2014-09-15 14:04:19 -04:00