Commit graph

27 commits

Author SHA1 Message Date
4564b88e42 esvapi: rename ESVAPI_PARAMETERS to esvapiParameters
Keep with D code style
2025-05-01 19:12:40 +12:00
3d483fd0f4 esvapi: modify searchFormat() to take a function 2025-05-01 14:41:00 +12:00
47045188fb tree: update copyright to 2025 2025-01-29 11:37:27 +13:00
6436166441 esvapi: add unittest for verseValid() 2024-08-08 17:56:09 +12:00
f353279458 esvapi: refactor
18 insertions, 68 deletions! (🚀)

Fixes: https://todo.sr.ht/~jeremy/esv/6
2024-08-08 17:56:09 +12:00
a2be024c45 esvapi: fix compile error on LDC 1.33.0 2024-08-08 17:56:09 +12:00
91dc7cd07e esvapi: style fixes 2024-08-08 17:56:09 +12:00
77c2c4825a esvapi: fetch all pages of search results
Fixes: https://todo.sr.ht/~jeremy/esv/1
2024-08-08 17:56:09 +12:00
cdabb25f74 esvapi: add empty line 2024-08-08 17:56:09 +12:00
29dd1304f6 esvapi: add empty lines between methods 2024-08-08 17:56:09 +12:00
a3a575e8c5 esv, esvapi: include 2023 in copyright year range 2024-06-26 13:47:48 +12:00
82a9eb84f0 esvapi: fix documentation for getPassage() 2024-06-26 13:47:48 +12:00
0b3626b36c esvapi: expose CurlException 2024-06-26 13:47:48 +12:00
0752c9db7c style fixes
o  fix doc comment style: use /++ rather than /**
    just to make it a bit more clear
 o  remove trailing whitespace
 o  remove unnecessary whitespace
 o  use => style for @property functions
 o  more fixes
2024-06-26 13:47:48 +12:00
8b392c5bab use @safe everywhere
with a little bit of evil @trusted magic...
2024-06-26 13:47:48 +12:00
de9e18f06e update copyright year to 2024 2024-06-26 13:47:48 +12:00
c5c9930a55 Fix weird indentation bug
...by setting the default indentation character to a space.
2024-06-26 13:47:48 +12:00
97c9c427ff Add @safe and final where possible, remove unnecessary documentation and fix incorrect indentation 2024-06-26 13:47:48 +12:00
472261e15a Document everything and fix out-of-bounds memory error 2024-06-26 13:47:48 +12:00
12d5d9dcea Add search functionality and make other improvements 2024-06-26 13:47:48 +12:00
ca36b7fb90 OpenBSD code style 2024-06-26 13:47:48 +12:00
6efe117545 Switch to configure and make based build
Also removed excessive use of std.regex in esvapi.d and
made it actually compile -_-
2024-06-26 13:47:48 +12:00
06a4dc286d Refactor most of the code
- Replace panic()-based error handling in main() with
   Exception-based error handling
 - Put hardcoded defaults in config.di
 - Make general optimisations and readability improvements
   for a lot of the code
 - Change some of the ESVApi's interface
2024-06-26 13:47:48 +12:00
1b11097ba0 Reorder method attributes and add pure attribute to some methods 2024-06-26 13:47:48 +12:00
8564fd3003 Heavily refactor esvapi.d (add ESVMode enum, ...) and apply changes to main.d 2024-06-26 13:47:48 +12:00
45890a6051 esv.d -> esvapi.d 2024-06-26 13:47:48 +12:00
5dc2a12f1e Refactor config parsing code in main.d, rename esv.d -> esvapi.d, rename class EsvAPI to ESVApi, makefile changes 2024-06-26 13:47:48 +12:00
Renamed from esv.d (Browse further)