Commit Graph

197 Commits

Author SHA1 Message Date
561995dadb
Include with <> instead of "". 2019-08-16 17:55:29 +02:00
3b29caaa54
Changed error codes again.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-09 13:11:50 +02:00
aa622e7cc9
Moved threading into library.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-09 00:42:27 +02:00
e015ec3f3f
Don't crash if protocol is missing / not known.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-08 21:25:28 +02:00
6225f4815b
Updated error codes in manpage and corrected bug in example. 2019-08-08 21:25:22 +02:00
0df8e69c88
Set the maximum number of threads to use dynamically.
All checks were successful
continuous-integration/drone/push Build is passing
The formula is reported_number_of_threads / 3 + 1. Each thread works on at least
50 entries.
2019-08-08 19:06:57 +02:00
cc4bc18062
Link pthread into binary.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-08 17:42:23 +02:00
14ec7638e8
Use up to 2 threads for searching.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-08 15:41:32 +02:00
c0d10423ba
Changed vector<Database::entry> to list<Database::entry>. 2019-08-08 15:19:42 +02:00
d946d25a5b
Re-enable --regex. Forgot to add the callback.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-08 10:13:49 +02:00
7143e09901
Read the time when retrieving data from database.
All checks were successful
continuous-integration/drone/push Build is passing
The datetime format is SQLite, the function expected ISO 8601.
2019-08-07 20:39:12 +02:00
84f9c0ad97
Add Poco::Data.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-07 19:52:51 +02:00
fafb0c8aa1
Switched from vsqlite++ to POCO.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-07 19:41:58 +02:00
1fe59de7e4
Make exports possible again.
All checks were successful
continuous-integration/drone/push Build is passing
The vector of entries was always empty after the refactoring.
2019-08-07 10:33:27 +02:00
c218c23f97
Fix archiving by extracting the Content-Location header.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-06 19:56:57 +02:00
1b0fd8cd75
Made argument identifiers lowercase.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-06 19:02:22 +02:00
85675c8b98
Remove value from handle_info(). 2019-08-06 18:42:17 +02:00
e2eb8a1f41
Removed erroneous newline in --help output.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-06 18:38:03 +02:00
a90faf7d11
Added PocoFoundation to fallback.
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-06 17:58:19 +02:00
9c925e855d
Added fallback for incomplete Poco distributions.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-06 17:35:12 +02:00
e6b0463e59
Merge branch 'main' into develop 2019-08-06 17:31:52 +02:00
e79f003a79
Prepend scheme://host to location if server returns only path. 2019-08-06 17:23:49 +02:00
aedbebc6f6
Moved from popl to Poco for option parsing.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-06 17:14:32 +02:00
90fff35e0e
Added error handling to calls to archive service. 2019-08-06 12:40:52 +02:00
862e90274e
Added error handling to http_extract. 2019-08-06 12:17:39 +02:00
9bf6031b92
Replaced ICU with POCO. 2019-08-06 12:00:18 +02:00
92eef4c64d
Transformed the search functions into a class.
Deleted unicode tests because they are covered by search tests.
2019-08-06 12:00:17 +02:00
6d16b2598e
Revert "Replace libxdg-basedir with Poco::Path."
This reverts commit d74b3cabfa.

Poco::Path::dataHome() is only available in >= 1.9.
2019-08-05 19:11:37 +02:00
1d7153008a
Use numbers instead of constants for HTTP response code check.
Some checks failed
continuous-integration/drone/push Build is failing
Poco 1.7 doesn't have HTTPResponse::HTTP_PERMANENT_REDIRECT.
2019-08-05 18:49:17 +02:00
d74b3cabfa
Replace libxdg-basedir with Poco::Path. 2019-08-05 18:40:36 +02:00
406c2486f7
Added HTTP proxy support.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-05 18:23:34 +02:00
d4db780925
Added Poco::Foundation and subtracted Poco::Util from linked libs. 2019-08-05 17:00:53 +02:00
1f446388e5
Support plain HTTP as well. 2019-08-05 17:00:34 +02:00
fd2db04aad
Fixed the additional search paths for the dependency-workarounds. 2019-08-04 22:25:04 +02:00
5e18bbdf50
Added workaround for when Poco*Config.cmake recipes cannot be found.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-04 20:04:55 +02:00
9d0dd589a7
Replaced curlpp with POCO. Only HTTPS support fo far.
Some checks failed
continuous-integration/drone/push Build is failing
curlpp seems dead. 🙁
2019-08-04 18:46:53 +02:00
b4e845a352
Updated CMake recipes and changed file structure.
Some checks failed
continuous-integration/drone/push Build is failing
2019-08-03 22:27:08 +02:00
083a08beb8
Re-ordered and reformatted cmake recipes.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-30 07:52:37 +02:00
4aec2fafb3
Simplyfied entry comparison in operator ==(). 2019-07-29 12:50:53 +02:00
bdf8883d58
Added a pkg-config file.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-29 04:01:47 +02:00
bc3d377254
Added a bit to Reference main page.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-28 02:25:59 +02:00
68e81ff411
Escaped mentions of URI in documentation. 2019-07-28 02:18:52 +02:00
998cc32546
Cosmetic changes in the Documentation. 2019-07-28 02:14:06 +02:00
38e8e1dc81
Documented types. 2019-07-28 02:13:55 +02:00
4991f7b006
Documented URI. 2019-07-28 02:13:23 +02:00
610173179d
Documented time functions. 2019-07-28 01:51:55 +02:00
73262c8d16
Documented Database. 2019-07-28 01:42:57 +02:00
57e3fc0289
Documented search functions. 2019-07-28 00:07:55 +02:00
ba78adb399
Described Export classes. 2019-07-28 00:07:22 +02:00
1508fc0f4d
Documented Export::AsciiDoc. 2019-07-27 23:34:17 +02:00
27a470e21f
Added remwharead.hpp, which includes all other headers.
It also contains the main page for the reference.
2019-07-27 23:18:34 +02:00
514f88b0eb
Documented ExportBase. 2019-07-27 22:29:43 +02:00
b3bb1f05f2
namespaced library.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-27 09:59:43 +02:00
8e40bea06e
Download popl.hpp into src/cli/ in Debian example and CI recipe.
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-26 21:20:34 +02:00
a66880c98d
Cosmetic changes. 2019-07-26 20:58:25 +02:00
0d18bd10ed
Install headers. 2019-07-26 20:58:25 +02:00
dccf85b60d
Moved exports into subdirectory. 2019-07-26 20:58:25 +02:00
7fb23ee207
Split code into library and cli. 2019-07-26 20:58:24 +02:00
aa16dad796
Sort exports by date, newest to oldest.
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-26 03:11:44 +02:00
2ebd27b159
Fixed tag-searching with non-ASCII characters.
--search-tags with regular expressions didn't work because regex
didn't know how to properly convert case.
2019-07-26 01:12:12 +02:00
2fd761ee72
Fixed the fix in to_lowercase with ICU. Now it is really working!
Some checks failed
continuous-integration/drone/push Build is failing
Turns out I fixed the crash, but some unicode-characters were not
lower-cased. I'm using ICU now. It is very easy, makes sense and is
all-around pleasant.
2019-07-25 06:04:53 +02:00
d6dd8d4e16
Added support for regular expressions. 2019-07-25 03:41:57 +02:00
21fe64b59c
Fixed to_lowercase().
Converting some text to lowercase caused range errors. I don't really
know what I'm doing here, so I replaced the code with this answer from
StackOverflow: <https://stackoverflow.com/a/21395>. It works now,
let's hope it stays that way.
2019-07-25 03:06:27 +02:00
df535cc6fb
--export has no default value anymore.
Some checks failed
continuous-integration/drone/push Build is failing
If --export had a default value, it would have to be called with
--export=FORMAT or -eFORMAT, while it was previously possible to call
it with --export FORMAT or -e FORMAT. This is counter-intuitive and
not backwards-compatible, so I reverted the change.
2019-07-21 17:15:55 +02:00
f2917abb3b
Added documentation for “simple” export. 2019-07-21 16:39:36 +02:00
71bce0c87d
Added “simple” export. 2019-07-21 16:37:36 +02:00
4406a8c64d
Unescape HTML in titles. 2019-07-21 16:25:13 +02:00
a83a2548c3
Remove HTML-encoded newlines in descriptions.
All checks were successful
continuous-integration/drone/push Build is passing
We didn't catch newlines encoded as HTML entities before.
2019-07-13 18:20:37 +02:00
ff708e9403
AsciiDoc export: Disable webfonts.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-12 01:49:32 +02:00
47bcffec64
Replace ', ", ´, `, ’ and # in tags in AsciiDoc output.
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-06 18:24:31 +02:00
622ccb9a03
AsciiDoc export: Escape '[' and ']' in URIs.
Some checks failed
continuous-integration/drone/push Build is failing
2019-06-26 19:55:05 +02:00
59ec3f6d6d
Remove HTML from descriptions.
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-11 01:25:21 +02:00
c166de0883
Made title and description extraction case insensitive.
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-10 16:34:25 +02:00
93298e5301
Splitted export header.
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-06 18:56:49 +02:00
00aa9ffd47
Refactored Netscape bookmarks export.
Some checks failed
continuous-integration/drone/push Build is failing
2019-06-06 17:11:56 +02:00
8ff0d39927
AsciiDoc export: Group tags only if there are more than 20. 2019-06-06 16:59:45 +02:00
17b33eacbf
Refactored AsciiDoc export more, escape in titles.
Fixes #1.
2019-06-06 16:51:13 +02:00
98bb87ed93
Refactored AsciiDoc export into a class. 2019-06-06 16:16:57 +02:00
008a5fe0f2
Refactored CSV export. 2019-06-06 16:06:25 +02:00
885148ea97
Put tags that are used only once under the header “Less used tags”.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-28 21:40:26 +02:00
747ba749e8
Added bookmark export. 2019-05-26 15:57:01 +02:00
8cd33bb083
Changed variable to prevent shadowing. 2019-05-25 16:06:16 +02:00
9196585a98
Added date after title in tags section of AsciiDoc export.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-24 23:53:01 +02:00
a169370066
Added comment.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-23 13:42:28 +02:00
c7165f7ffe
Repalced regex in URI::remove_newlines() with search & replace. 2019-05-23 13:41:47 +02:00
92f87fb85b
Changed AsciiDoc export. Each thing is now a list item.
All checks were successful
continuous-integration/drone/push Build is passing
The structure makes more sense, looks better in text browsers.
2019-05-23 12:06:27 +02:00
8275db6687
Remove leading and trailing spaces from tags.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-22 15:13:10 +02:00
162ff88163
Made searches case insensitive. 2019-05-22 13:30:42 +02:00
f94d6a2229
Set locale globally. 2019-05-22 12:25:06 +02:00
8b84429c94
Changed -S, --span to -T, --time-span,
All checks were successful
continuous-integration/drone/push Build is passing
and added -S as short option for --search-all.
2019-05-22 09:54:56 +02:00
8e75e7bfbf
Added option to not archive page.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-22 09:43:58 +02:00
50f2007291
Fixed tag list in AsciiDoc-export if entry has no title. 2019-05-21 15:26:20 +02:00
feab1e8769
Forgot newline after error message. 2019-05-21 11:59:58 +02:00
02aae04cf5
Replaced more characters for tag anchors, prepend t_ to tag anchors.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-20 13:13:26 +02:00
32040c277c
Replaced more regular expressions with search & replace.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-20 10:50:49 +02:00
344e77d8bf
Replace more characters for tag-anchors.
Asciidoctor doesn't like ₀-₉ and ⁰-⁹.
2019-05-20 10:49:15 +02:00
da4931ab2f
Made tag-sorting locale-aware.
Some checks failed
continuous-integration/drone/push Build is failing
2019-05-19 19:19:51 +02:00
679a335b63
Updated usage line.
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-19 13:03:53 +02:00
da5ff47396
Ruled out duplicates when searching. 2019-05-19 12:47:38 +02:00
26623cc95b
Confused option description with default value for --search-all. 2019-05-19 11:52:31 +02:00