Commit Graph

1254 Commits

Author SHA1 Message Date
rachmadani haryono
e2989b0dcc Feature/tox test (#138)
* chg: test: mark slow test

* new: test: config for tox

* chg: test: mark function as non tox
2017-03-28 19:43:22 +05:30
rachmadani haryono
0c7d5cfe97 Feature/delete rec additional test data set (#133)
* new: test: additional data test set.

* new: test: test on non integer.

* chg: test: rename function for consistency.

* chg: test: change normalize function.

* chg: test: change max value for high var

* fix: test: use normalized index

* fix: test: remove 'max' as valid value

* chg: test: use hypothesis to test delete_rec index

* new: test: add hypothesis package

* chg: test: use hypothesis to test delete_rec index

* chg: test:  add hypothesis to travis

* chg: test: limit integer test.

* chg: dev: remove unused test

* fix: test: fix test on non integer.

* new: test: add big integer test on range in delete_rec method.

* fix: test: fix high low diff

* fix: test: skip only for python<3.5

* chg: test: change test_delete_rec_range_and_big_int

- remove skip
- use constant value instead sys.maxsize
- fix assert

* chg: test: use setup.py to manage test package instead travis

* chg: test: add tests extras on setup.py

* chg: test: change install test package.

* fix: test: fix whitespace

* fix: test: MAX_SQLITE_INT value

* chg: test: skip test for python<3.5

* fix: test: fix import

* chg: test: skip Impossible test

* chg: test: simplify test_delete_rec_on_non_interger
2017-03-28 19:43:22 +05:30
Arun Prakash Jana
50c6593bb8 Roll ToDo list 2017-03-28 19:43:22 +05:30
rachmadani haryono
aab928c04f new: test: test for delete_rec (#132)
* chg: dev: add db instance for delay_commit check
* chg: dev: remove unused delete_rec test
* chg: test: not check delay commit on empty db test.
* chg: test: use simpler precise test for delete_rec
* fix: test: change pytest parametrize arg
* fix: test: fix instance of BukuDb
* fix: test: fix test.
* fix: test: logic on expected db len
* new: test: test for delete_rec
* new: test: test for delete_rec on empty database
2017-03-28 19:42:57 +05:30
Arun Prakash Jana
4153298a42 Homogeneous handling of ranges 2017-03-19 18:29:23 +05:30
Arun Prakash Jana
75109cec3e
Fix range handing in delete_rec() and print_rec()
1. Handle ranges within API rather than in caller
2. Rename print_record() to print_single_rec()
2017-03-19 12:39:44 +05:30
Arun Prakash Jana
ec8259d5a5
Support tail-like behaviour with --print 2017-03-19 00:45:26 +05:30
rachmadani haryono
3545a4765e Feature/retire test helpers (#131)
* chg: test: merge test_helpers

* chg: test: remove merged test helper.
2017-03-18 19:39:09 +05:30
rachmadani haryono
8fc2775b48 Feature/test (#130)
* new: test: test for BukuHTMLParser class

* new: test: test for BukuCrypt class

* chg: test: change getpass patch path

* new: test: test for ExtendedArgumentParser class

* new: test: test for functions.

* chg: test: fix warning for caplog

* chg: test:  exclude some test for python3.5 only
2017-03-18 19:11:59 +05:30
Arun Prakash Jana
fc5ee94b86 Update, reorder, align help and examples. 2017-03-17 20:48:11 +05:30
Arun Prakash Jana
7fae7b47b7 Add short option to regex and tag search 2017-03-17 08:10:55 +05:30
Arun Prakash Jana
eeb7e99c16
Disable -r for --replace 2017-03-17 00:07:51 +05:30
Arun Prakash Jana
46e2e4a704
Disable -t for --title 2017-03-16 23:45:37 +05:30
Arun Prakash Jana
0d87104679 Update features
Update badges
Add tabular dependencies
Re-structure README
2017-03-15 05:35:19 +05:30
Arun Prakash Jana
ce66158164
Editor support at subprompt 2017-03-12 20:11:53 +05:30
Arun Prakash Jana
842bce701c
Modularize edit and update 2017-03-12 14:55:01 +05:30
Arun Prakash Jana
2650bd74e9
Add API get_max_id(), -p -1 shows max index 2017-03-06 02:26:40 +05:30
Arun Prakash Jana
a532a78a1f Reformat multi-line strings 2017-03-06 01:32:24 +05:30
Arun Prakash Jana
ba5a81084a
Substitute append(), extend() with concatenation 2017-03-05 23:49:58 +05:30
Arun Prakash Jana
84df17ee38 Various optimizations
1. Prefer string concatenation to substitution
2. Fix issue: tagset append or delete shows extra print in update_rec()
3. Introduce delim_wrap()
2017-03-05 23:11:49 +05:30
Arun Prakash Jana
b07d0ab8f5 Use colourful log levels in colour mode 2017-03-05 04:05:07 +05:30
Arun Prakash Jana
e02333f715
Remove redundant declarations 2017-03-04 22:48:56 +05:30
Arun Prakash Jana
6348c2d4fa
Request HTTP HEAD for immutable records 2017-03-04 21:03:59 +05:30
Arun Prakash Jana
077ea12cd1
Support --immutable with -w for update 2017-03-04 08:42:24 +05:30
Arun Prakash Jana
3eca175604
Use correct endpoint to fetch the tag name of the latest release. 2017-03-02 10:06:57 +05:30
Arun Prakash Jana
1a96cca5f2
Update related projects section 2017-02-28 19:33:38 +05:30
Kishore Narendran
82da9eae13 Buku API - Adds preliminary endpoints for an API for Buku [WIP] (#124)
* Adds requirements for the Buku API server

* Adds all the necessary requirements for BukuDB

* Adds preliminary API endpoints
2017-02-28 19:20:16 +05:30
Arun Prakash Jana
013849d232
Modify return values from add_rec() 2017-02-25 11:25:18 +05:30
Arun Prakash Jana
0d9fad407f
Update features section 2017-02-20 20:28:36 +05:30
Arun Prakash Jana
325aab9c78
Prepare for release v2.9. 2017-02-20 19:35:55 +05:30
Arun Prakash Jana
64799aff05 Rename APIs
New APIs: get_rec_all(), delete_rec_all()
Rename API open_in_browser() to browse()
Rename help APIs.
Update User Agent to Firefox 51.
Other minor changes
2017-02-19 11:30:10 +05:30
Kishore Narendran
e5395b5528 BukuDB: Adding New Functions (#120)
* Adds functions to BukuDB - for getting all records and to delete all records

* Refactors get all records function name

* Some minor refactors
2017-02-19 08:13:58 +05:30
Arun Prakash Jana
d26e2f5571
Either encrypt or decrypt supported in one shot.
Fix typo.
2017-02-16 21:22:19 +05:30
Arun Prakash Jana
883cbf8ec2 Add check for --add with --url, update help 2017-02-11 19:40:42 +05:30
Arun Prakash Jana
2e0ce3e143 Auto-detect markdown with export and import
The file extension '.md' is used to detect a markdown
file. With this, option --markdown is removed.
2017-02-10 22:14:00 +05:30
Arun Prakash Jana
8cc17a1833
Shorten --upstream to -V. 2017-02-10 20:34:24 +05:30
Arun Prakash Jana
df78a06f6f
Shorten --markdown to --md. 2017-02-10 19:36:39 +05:30
Arun Prakash Jana
9e0dfcbdce
Shorten --noprompt to --np. 2017-02-10 19:29:02 +05:30
Arun Prakash Jana
b7207109bc
Shorten --nocolor to --nc. 2017-02-10 19:25:05 +05:30
Arun Prakash Jana
bd4b85ad32 Support index with -w. 2017-02-09 21:55:07 +05:30
Eric
bbf7428818 Disable sig handler when reading input (#117)
* Disable sig handler when reading input

* Rename read_input to read_in

* Update prompt messages
2017-02-07 15:37:01 +05:30
Arun Prakash Jana
9980e4926a Update help. 2017-02-05 22:50:34 +05:30
Arun Prakash Jana
74e63357a2 Fix #115: Support editor args with Buku. 2017-02-05 16:47:16 +05:30
Arun Prakash Jana
bb4854126c
Open all search results in browser immediately. 2017-02-05 09:10:38 +05:30
Arun Prakash Jana
c7b4d710bb Remove redundant Exception handlers. 2017-02-05 01:18:04 +05:30
Arun Prakash Jana
961fde3457 Toppings on editor support. 2017-02-05 00:31:51 +05:30
Eric Ng
0e0f4f1b03 An editor mode for adding and updating new links 2017-02-04 13:54:00 +05:30
Arun Prakash Jana
cb0f45eac1 Add PR template. 2017-02-04 13:40:00 +05:30
Arun Prakash Jana
8508135605
Optimize tag append,delete from tagset 2017-01-30 01:25:04 +05:30
Arun Prakash Jana
2df2ce2b6d LIMIT number of DB query results, if applicable 2017-01-30 01:02:48 +05:30