Commit graph

5146 commits

Author SHA1 Message Date
Alexis Hildebrandt
90988feebc DocTests: Allow multiple example inputs
to be used as single ledger data for an example command
2014-02-19 06:52:43 +01:00
John Wiegley
be6f3cb269 Merge pull request #244 from mvz/logical-and-is-or
Implicit logical and is really a logical or
2014-02-17 14:02:58 -06:00
Matijs van Zuijlen
59fde5e777 Implicit logical and is really a logical or 2014-02-17 07:25:07 +01:00
John Wiegley
6a68119cbb Merge pull request #243 from kanru/justify-cjk
Correctly justify Unicode characters in terminal
2014-02-16 23:02:02 -06:00
John Wiegley
fea32e94a6 Merge pull request #242 from afh/pull/year
Fix apply_year_directive
2014-02-16 23:01:19 -06:00
Kan-Ru Chen (陳侃如)
9c7e5a612c Use mk_wcwidth instead mk_wcwidth_cjk 2014-02-13 19:19:40 +08:00
Kan-Ru Chen (陳侃如)
d5b5ea0213 Correctly justify Unicode characters in terminal
Many Unicode characters take more spaces than one ASCII character. For
example, Chinese characters are two characters wide when using monospace
font in terminal. This patch use wcwidth of Markus Kuhn to count the
correct width for justification.
2014-02-13 18:40:06 +08:00
Alexis Hildebrandt
e7cfaa1e65 Fix apply_year_directive
Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
2014-02-12 10:38:07 +01:00
Craig Earls
c59aadaace Merge pull request #241 from afh/pull/spelling
Correct minor spelling mistakes and improve spellcheck.sh

Awesome.
2014-02-09 11:32:44 -07:00
Craig Earls
050edd56ce Merge pull request #240 from afh/pull/DocTests
Validate examples in the texinfo documentation when running tests.
2014-02-09 11:31:23 -07:00
Alexis Hildebrandt
a2f86c85df Add explanation on how to validate documentation examples
by specially marking @smallexample, which will be used by DocTests.py
2014-02-09 07:54:27 +01:00
Alexis Hildebrandt
c566afe3b1 Add proper argument parsing to DocTests.py 2014-02-09 07:28:58 +01:00
Alexis Hildebrandt
960ebc2a57 Print summary list of failed doc tests if any 2014-02-09 07:20:03 +01:00
Alexis Hildebrandt
a1cc8ca15a Add support to check documentation examples with inline data 2014-02-07 18:39:35 +01:00
Alexis Hildebrandt
c73ba9d075 Correct spelling mistakes 2014-02-07 00:23:22 +01:00
Alexis Hildebrandt
77a9317cf4 Make spellcheck.sh tool callable from anywhere 2014-02-07 00:23:08 +01:00
Alexis Hildebrandt
fbbb379fe0 Check examples in documentation when running tests
The DocTests.py script will parse a given texinfo file for specially
marked examples, run the ledger command from the example, and check
the result against the example output from the documentation.
2014-02-07 00:21:38 +01:00
Craig Earls
ffc8bf30f4 Merge pull request #239 from afh/pull/copyright
Bump copyright notice to 2014 in the documentation

Thanks.
2014-02-04 13:03:26 -08:00
Alexis Hildebrandt
df9771f7a9 Bump copyright notice to 2014 in the documentation 2014-02-04 21:58:03 +01:00
Craig Earls
1003c24103 Merge pull request #238 from mbork/master
Add option ledger-complete-ignore-case

Thanks!  This works very well.
2014-02-04 06:15:36 -08:00
John Wiegley
0184255ca3 Merge pull request #237 from afh/pull/linux-rpath
Correctly set runtime path on Linux on install
2014-02-04 05:29:04 -08:00
Marcin Borkowski
b1cfeb0015 Add option ledger-complete-ignore-case
and change ledger-pcomplete accordingly
2014-02-03 22:52:08 +01:00
Alexis Hildebrandt
b359e851fe Correctly set runtime path on Linux on install 2014-02-03 12:02:03 +01:00
John Wiegley
dcb24fbb5c Merge pull request #235 from afh/pull/acprep-saucy
Update dependencies installation
2014-02-02 13:50:23 -08:00
Steve Purcell
8155cd5839 Merge pull request #236 from afh/pull/copyright
Bump copyright information to 2014
2014-02-02 04:53:28 -08:00
Alexis Hildebrandt
2b9208e850 Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
Alexis Hildebrandt
021e0ecde9 Update dependencies installation
for Ubuntu Saucy Salamander
2014-02-02 09:16:35 +00:00
Johann Klähn
f300cfccb7 update travis notification settings 2014-02-01 21:04:06 +01:00
Johann Klähn
e0ee1eb810 initialize member variables of posts_to_org_table
This fixes test/baseline/cmd-org.test when built with clang.
2014-02-01 19:41:20 +01:00
Alexis Hildebrandt
b98662e713 Correct log output for acprep check 2014-02-01 19:34:45 +01:00
Alexis Hildebrandt
4b0563044f Add continuous integration using Travis CI 2014-02-01 19:34:45 +01:00
Alexis Hildebrandt
31705094c1 Update dependencies installation
for Mac Hombrew and Ubuntu Precise Pangolin
2014-02-01 19:33:21 +01:00
Alexis Hildebrandt
e362a481ec Create default scope from python session only if needed
Fixes test failures introduced with the commit
"Create default scope to read journal"
a9078767b8
2014-02-01 19:29:25 +01:00
Johann Klähn
0dc2b97813 python module file suffix is platform dependent 2014-02-01 12:10:53 +01:00
Alexis Hildebrandt
6eeda8bcea Fix shared library and python module
Conflicts:
	src/CMakeLists.txt
2014-02-01 12:00:32 +01:00
Johann Klähn
36b4fc3e2f no RENAME option on older CMake versions
The RENAME option for install(TARGETS ...) does not seem to be available
on all CMake versions.
2014-02-01 10:23:51 +01:00
Johann Klähn
89c21e9967 build shared library/python module, clean up CMake
libledger will now be built as a shared library. You can 'import ledger'
from python IFF you copy libledger.so to ledger.so or create a symlink.
2014-02-01 01:30:53 +01:00
John Wiegley
35c1bf03ec Merge pull request #231 from afh/dev/pylib
Create shared python module
2014-01-27 16:58:59 -08:00
Alexis Hildebrandt
7f96b654a7 Make time-colon commodity flag available to python 2014-01-27 21:08:13 +01:00
Alexis Hildebrandt
a9078767b8 Create default scope to read journal
when using ledger python module
2014-01-27 21:07:39 +01:00
Alexis Hildebrandt
82486f6d43 Build and shared python module
when building library
2014-01-27 21:06:44 +01:00
Johann Klähn
61a466636b Merge pull request #229 from EvilBit/master
Fixed emacs lisp compilation
2014-01-25 05:20:52 -08:00
Craig Earls
0ed6b0f1c3 Fixed some formatting problems and fixed bug 1007 aligning decimal comma amounts with period thousand separators. 2014-01-13 14:55:48 -07:00
Craig Earls
aec2c7af3f Fix issue in ledger-fully-complete-xact to deal with possible trailing spaces after a payee 2014-01-13 13:14:02 -07:00
Steve Purcell
3b5f496536 ledger-mode: only modify completion-at-point-functions locally
Without this patch, the addition of pcomplete-completions-at-point
leaks into the global value of completion-at-point-functions.

See #227
2014-01-07 20:33:08 +00:00
Craig Earls
af84005a52 Backed out recent changes that broke the complete cycling behavior. 2014-01-07 13:25:07 -07:00
John Wiegley
f5d5149d76 Merge pull request #230 from purcell/fix-csv-commodity-column
Commodity column in default CSV format should match the displayed amount
2014-01-06 12:51:49 -08:00
Steve Purcell
d7742cd654 Commodity column in default CSV format should match the displayed amount
If one uses --exchange to force CSV display amounts into a particular
currency, then the commodity output column should match that currency.

Without this patch, the commodity column contains the original
commodity, not the commodity for the exported amount.
2014-01-06 17:37:04 +00:00
Oskar Kohout
5fdb7fe6e7 Move emacs lisp installation destination to subdirectory 2014-01-04 12:07:59 +01:00
Oskar Kohout
ba60418991 Fix emacs lisp build chain 2014-01-04 11:52:23 +01:00