Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 20:59:27 +0200] rev 13209
core.moduleapi: Improve handling of different types in :get_option_period
Pass positive numbers trough unharmed, parse strings as periods, discard
anything else.
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 19:49:12 +0200] rev 13208
core.moduleapi: Add :get_option_period for parsing time intervals
E.g. for use in mod_mam and others that take an amount of time before
some (usually cleanup) action is taken.
Kim Alvefur <zash@zash.se> [Tue, 05 Oct 2021 15:36:38 +0200] rev 13207
core.moduleapi: Allow specifying an acceptable range for number options
Kim Alvefur <zash@zash.se> [Sat, 16 Jan 2021 21:04:58 +0100] rev 13206
plugins: Use get_option_enum where appropriate
Kim Alvefur <zash@zash.se> [Sat, 16 Jan 2021 20:40:14 +0100] rev 13205
moduleapi: Add enum config option method
For when a setting has a few fixed values it can take
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 20:29:06 +0200] rev 13204
tools: Fix file ending of mod2spec.sh (thanks buildbot)
Accidentally .lua ?
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 19:27:18 +0200] rev 13203
util.human.io: Fix pattern in parse_duration() to cover all used letters
Notably 'h' was missing. Awkwardly, 'hour' would result in 'ho' which
was missing from table.
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 19:26:05 +0200] rev 13202
util.human.io: Add tests for parse_duration() (some failing)
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 19:17:06 +0200] rev 13201
util.human.io: Include relevant arguments in test messages
This way the relevant arguments are shown in case a test case fails
Kim Alvefur <zash@zash.se> [Sun, 16 Jul 2023 18:42:58 +0200] rev 13200
util.human.io: Use tail call in test to get correct line numbers
This is probably not guaranteed to work and might vary with Lua version,
but it's good enough for me to get accurate line numbers out of Busted
that don't all point to the test() function.