···76762. Run: `out/maple`, or
7777 `TITAN=1 TITAN_TOKEN=secret TITAN_MAX_SIZE=2048 out/maple`
78787979+### Hacking
8080+8181+If you decide to tamper with Maple, you should give your commits a test. As
8282+there isn't a test suite yet, feel free to use any of these examples:
8383+8484+```bash
8585+# Using OpenSSL directly to debug different requests:
8686+$ openssl s_client -ign_eof -quiet -connect localhost:1965 <<< \
8787+> "gemini://localhost:1965"
8888+8989+# Using Bollux to debug proper requests... or any client!
9090+$ bollux localhost
9191+```
9292+7993## Capsules using Maple
80948195[Add yours!](https://github.com/gemrest/maple/edit/main/README.md)
bin/genkey
+3-5
maple/maple.cc
···5656 std::string file_extension = entry.path().string().substr(
5757 entry.path().string().find_last_of('.') + 1
5858 );
5959- std::string gemini_file_extension = "gmi";
60596160 // Only keep track of file if it is a Gemini file
6261 if (std::equal(
6362 file_extension.begin(),
6463 file_extension.end(),
6565- gemini_file_extension.begin(),
6666- gemini_file_extension.end(),
6767- [](auto a, auto b) -> bool {return std::tolower(a) == std::tolower(b);
6868- }
6464+ std::string("gmi").begin(),
6565+ std::string("gmi").end(),
6666+ [](char a, char b) -> bool { return std::tolower(a) == std::tolower(b); }
6967 )) {
7068 gemini_files.push_back(entry.path());
7169 }