summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* acprep: add support for arch linuxBalaji Sivaraman2022-06-261-1/+19
|
* Bump required CMake versionOleg Bulatov2022-05-061-1/+1
| | | | | | | | CMake 3.21.4 reports that compatibility with CMake < 2.8.12 will be removed from a future version of CMake. CMake 3.0 has new defaults for MACOSX_RPATH. It seems ledger works fine with them. See CMake Policy CMP0042 for the details.
* Fix unrounding for equityOleg Bulatov2022-05-064-3/+36
|
* Remove git from brew installOleg Bulatov2022-05-051-1/+1
| | | | git is now provided by GitHub Actions by default
* Fix test formattingJohn Wiegley2022-05-031-3/+3
|
* Add test/regress/2109.testJohn Wiegley2022-05-031-0/+23
|
* When calculating balance assignments, strip away lot annotationsJohn Wiegley2022-05-031-12/+15
|
* Update git clone instructionsFlorent Espanet2022-04-171-1/+1
|
* Remove some UTF-8 code that was having no effectkanreki2022-04-141-38/+5
| | | | Fixes #2061.
* docs: add instructions for querying quoted commoditiesMarcus Zanona2022-04-081-0/+6
| | | resolves #2077
* Change header guard names to use `INCLUDED_` prefixPhil Newton2022-04-0659-177/+177
| | | | Fixes #2049
* README.md: Fix for Homebrew and CondaKunht Kun2022-03-181-11/+13
| | | | | | | | | | | In README we provide instructions for how to build Ledger instead of how to use Ledger. So the sections for Homebrew and Conda are currently inconsistent with others. Therefore, we update the two sections to provide installation instructions for build dependencies. [ci skip]
* Avoid making references to nullKunht Kun2022-03-172-8/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | In `compare_items` if `sort_order` is a top level expression, it has no context and `get_context()` method returns the null pointer. To see this, run $ ledger -f test/input/demo.ledger --sort display_amount reg --debug scope.symbols and there will be many lines like [DEBUG] Binding scope 0 with ... In such case making a reference to the context is an undefined behavior (honestly the dereferencing itself feels quite problematic, but many compilers just run without any complaints) and could potentially cause segfaults. Therefore, we change to use only the grandchild scope (`left` or `right`) for `find_sort_values` here. Note that it may seem to be more appropriate to use `report` here for the parent scope. However, in `find_sort_values` which is called right after, the `report` scope is always bound to this scope. So we only use grandchild scope to avoid unnecessary operations. Fixes #2069.
* NEWS.md: fix bug referenceMartin Michlmayr2022-03-151-1/+1
|
* Add a NEWS entry for ba8ec324Kunht Kun2022-03-131-0/+4
| | | | [ci skip]
* Avoid dereferencing null pointerKunht Kun2022-03-122-1/+14
| | | | | | | Here `comm` could be a null pointer (the new test regress/2057 shows such a case). So test it before dereferencing to avoid segfault. Re: #2057
* Ensure absolute path for includeKunht Kun2022-03-092-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the path of file to include in `instance_t::include_directive` is always an absolute path. Previously when the journal file is given through stdin, we prepend a "./" to the filename to include. However, in Boost >= 1.77, `path::normalize` strips the leading "./" [1]. Our `resolve_path` function calls `normalize` and thus now it returns "file" for "./file" instead of the previous "./file". This change causes a failing test regress/BF3C1F82-2 [2], and also breaks the `include` directive for stdin input: $ touch file-to-include $ echo "include file-to-include" | ledger -f - reg gives While parsing file "", line 1: Error: File to include was not found: "file-to-include" Therefore, we change to prepend the `context.current_directory` to make the filename absolute in this case as well. The test regress/BF3C1F82-2 is also updated to match the new output. Fixes #2075. [1] https://github.com/boostorg/filesystem/commit/16bd89b7c0398d0dc5904148a865ef3fc3ece7ec [2] https://github.com/ledger/ledger/issues/2075
* Fixed misspelling of Deutsche Mark.PortStone2022-03-071-2/+2
|
* Modify a regression test to match output from Boost 1.77John Wiegley2022-02-241-2/+2
| | | | A better fix for this issue is needed, however.
* fileinfo_t: remove size memberMaximilian Eschenbacher2022-02-222-7/+2
| | | | | | | | | | | it is currently not required but set. Incidentally, calling file_size() on a bash pipe e.g. /proc/self/fd/11 fails with: Error: boost::filesystem::file_size: Operation not permitted: "/proc/self/fd/11" when executing ledger as ledger -f <(cat journal)
* Revert "Use amount_width for balance report"John Wiegley2022-02-031-3/+3
| | | | This reverts commit 7baa0efd71896711e563feb957926433f529d892.
* Use amount_width for balance reportVladimir Parfinenko2022-02-031-3/+3
|
* check that commodity format uses correct symbolChristopher Zimmermann2022-02-031-1/+4
| | | | closes 1948
* ledger.xsl: improve on table layoutMarkus Katharina Brechtel2022-02-031-1/+9
|
* readme to generate html file file directly from ledger xml outputMarkus Katharina Brechtel2022-02-031-1/+8
|
* set amount-table-cell css class for all cellsMarkus Katharina Brechtel2022-02-031-4/+4
|
* ledger-cli xml2html XLSTMarkus Katharina Brechtel2022-02-032-0/+249
| | | | initial version
* Revert "Revert "Revert "Change --invert to invert displayed amounts and ↵John Wiegley2022-02-031-2/+1
| | | | | | totals, not amounts""" This reverts commit c99a4b03320242d3d5a6d64f73f8581fe5ea2306.
* Revert "Revert "Revert "Compare price annotations using their textual ↵John Wiegley2022-02-031-3/+1
| | | | | | rendering""" This reverts commit bc45e0205d23f5a8f2e3e389195daa85f4b07ec0.
* Merge remote-tracking branch 'matthewbauer/add-flake'John Wiegley2022-02-034-56/+85
|\
| * Merge branch 'master' into add-flakeJohn Wiegley2022-01-2712-146/+127
| |\
| * | Add DYLD_LIBRARY_PATHMatthew Bauer2021-12-011-0/+1
| | |
| * | Add flakeMatthew Bauer2021-12-014-56/+84
| | |
* | | Revert "Revert "Compare price annotations using their textual rendering""John Wiegley2022-02-031-1/+3
| | | | | | | | | | | | This reverts commit 7f78cadea4a2359f1f53ce9c0c66b6d3fafd81c4.
* | | Revert "Revert "Change --invert to invert displayed amounts and totals, not ↵John Wiegley2022-02-031-1/+2
| |/ |/| | | | | | | | | amounts"" This reverts commit 1600ee1f64f659b151c1c873d478baa1bdab89f2.
* | Fix the other occurrences of stdenv.libAkira Komamura2022-01-251-2/+2
| |
* | Point licenses to lib.licensesAkira Komamura2022-01-221-1/+1
| | | | | | | | pkgs.stdenv.lib.licenses is no longer available. Use lib.licenses instead.
* | do not enforce GNU C++, allow using c++ (clang)Christopher Zimmermann2021-12-081-1/+1
| |
* | Use correct int return type for stream input operationskanreki2021-12-0811-145/+126
|/ | | | | | | | This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058.
* Fix --time-colon for negative time amountsRafael Ascensão2021-09-272-7/+26
| | | | | | | | | | | | | | | While the current formula works for positive numbers, negative numbers are incorrectly represented. One of the issues comes from the fact that floor(x) < x for every x. `amount_t precision` will always be a non negative number and the code that attempts to fix the issue for negative number will never run. If we truncate the number instead, the current formula works for both positive and negative numbers without making negative numbers a corner case. So let's do that. Signed-off-by: Rafael Ascensão <rafa.almas@gmail.com>
* Fix config path in man pageCédric Barreteau2021-09-081-1/+1
|
* docs: Improve --depth documentationRahix2021-08-262-16/+14
| | | | | | | Make it clear that --depth behaves the same for balance and register reports now. Fixes: #1952
* Fix for azure ubuntu not getting correct package serverJimi Damon2021-08-251-0/+1
|
* Add mention of test cases to contrib guideMartin Michlmayr2021-08-241-0/+1
| | | | Thanks to Richard Kreuter.
* Update docs for move to GitHub ActionsMartin Michlmayr2021-08-243-8/+7
|
* Add Github Action for Ledger builds Python3 only for mac and linuxJimi Damon2021-08-241-0/+65
| | | | | - Builds for linux - Builds for macos
* Fix silent errors when reading lines from input files.Austin Wise2021-08-243-2/+22
| | | | | | | | Handle files that don't end with a new line. Throw an error when the buffer size is exceeded. Fixes #516 Contributes to #1149
* Move NEWS into repository rootRahix2021-08-241-0/+0
| | | | | To make the file easier to find, move it into the repository root - this way it is immediately visible when viewing the repo online.
* Update NEWS with all changes up to nowRahix2021-08-241-2/+38
|
* acprep: support ubuntu 20.04 focalValeriy2021-07-041-4/+20
| | | | | | | | | | | | | | | | Problem: Unable build ledger from source code at Ubuntu 20.04 Focal ./acprep dependencies will return acprep: INFO: Invoking primary phase: dependencies acprep: INFO: Executing phase: dependencies acprep: INFO: Installing Ledger's build dependencies ... acprep: INFO: Looks like you are using APT on Ubuntu focal acprep: INFO: I do not recognize your version of Ubuntu! Solution: Add 'focal' to ubuntu-releases