15 Commits

Author SHA1 Message Date
Your Name
38ba27cd0e Create convenience methods to allow or deny all 2025-09-16 13:47:22 +00:00
Your Name
8b527f618a add typesecs and docstrings 2025-09-16 13:13:27 +00:00
Your Name
8112173ef4 refactor: rename mail_allowlisted to signup_allowed?
Follow Elixir naming conventions by using question mark suffix for boolean
functions. Renamed mail_allowlisted to signup_allowed? and mail_allowlisted_fun
to signup_allowed_fun throughout the codebase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 09:44:11 +00:00
Your Name
a89ed0c80c refactor: centralize SIGNUP_ALLOWLIST_EMAILS constant definition
Define environment variable name as a module attribute in BasicSignupAllowlist
and expose it via signup_allowlist_emails/0 function to eliminate duplication
across lib and test files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 09:40:11 +00:00
Your Name
c6e3a490d2 add forgotten files 2025-09-16 09:34:03 +00:00
Your Name
12ce7d1d5d more white to allow renaming 2025-09-16 09:32:40 +00:00
Your Name
490102c0a8 Rename to allowlist 2025-09-16 09:09:51 +00:00
Your Name
30548eae80 rename environment variable 2025-09-16 09:03:12 +00:00
c848ca17ad Gave up trying to reset env var - set to "*" after test
And after doctest. it stayed at "*" after the last test anyway, letting
the doctest fail.

doctests are not recommended for side effectful tests anyway https://hexdocs.pm/ex_unit/main/ExUnit.DocTest.html
2025-09-14 21:30:08 +01:00
ca4eaf6f54 Add workaround for failing doctest
on_exit in test does not work properly as teardown - the variable is
unset, but doctest apparently runs after tests and it is not cleaned up
2025-09-14 20:19:18 +01:00
5a7f651547 Integrate whitelist in imperative shell 2025-09-14 20:15:14 +01:00
09aeb31cb3 Move implementation to own file
Prefactoring, from  TDDAYMI to imperative shell. In the next step we
need the implementation from the functional core in the imperative
shell, to pass in the environment variable.
2025-09-14 16:59:42 +01:00
f333ea1ed0 when not defined, not allowed 2025-09-14 16:06:50 +01:00
135448398d mail not whitelisted when not set 2025-09-14 13:13:10 +01:00
595e23a4b5 empty rep with functioning mix test 2025-09-14 12:08:05 +01:00