Rename the project to remindrs

I started a discussion about the name in the newzealand subreddit. My
experience was not a good one. Although it seemed okay for the
majority to use any other language, using te reo Māori seemed to be
considered not okay, as not being part of that culture myself and I
respect that. Still this experience made me wonder and worries me as I
have seen such tendencies before and the outcome was never positive in
any way. This, from my point of view, only leads to separation between
cultures, which I intented to counteract. Nonetheless, it is how it is
and I do not want to provoke anyone with the name of a software
project.
This commit is contained in:
finga 2023-02-05 15:27:39 +01:00
parent 169a4988b6
commit 05e63acca5
6 changed files with 31 additions and 36 deletions

42
Cargo.lock generated
View file

@ -908,6 +908,27 @@ dependencies = [
"thiserror",
]
[[package]]
name = "remindrs"
version = "0.1.0"
dependencies = [
"anyhow",
"axum",
"clap",
"diesel",
"diesel_migrations",
"lettre",
"serde",
"time",
"tokio",
"toml 0.6.0",
"tower",
"tower-http",
"tracing",
"tracing-subscriber",
"xdg",
]
[[package]]
name = "remove_dir_all"
version = "0.5.3"
@ -1453,27 +1474,6 @@ version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "whakarite"
version = "0.1.0"
dependencies = [
"anyhow",
"axum",
"clap",
"diesel",
"diesel_migrations",
"lettre",
"serde",
"time",
"tokio",
"toml 0.6.0",
"tower",
"tower-http",
"tracing",
"tracing-subscriber",
"xdg",
]
[[package]]
name = "winapi"
version = "0.3.9"

View file

@ -1,10 +1,10 @@
[package]
name = "whakarite"
name = "remindrs"
version = "0.1.0"
edition = "2021"
description = "Organize..."
license = "GPL-3.0-or-later"
repository = "https://git.onders.org/finga/whakarite"
repository = "https://git.onders.org/finga/remindrs"
readme = "../README.md"
keywords = ["remind"]
categories = ["utility"]

View file

@ -1,8 +1,3 @@
# Whakarite
# remindrs
to arrange, adjust, organise, put in order, appoint, assign.
to balance by equivalent, in like manner.
to make like.
to compare, correspond to, liken to.
to fulfil, perform.
to say prayers, recite rituals.
Send an email at a given time containing a certain title and message.

View file

@ -1,9 +1,9 @@
[database]
# host = "localhost"
# port = 5432
# name = "whakarite"
# user = "whakarite"
pass = "whakarite"
# name = "remindrs"
# user = "remindrs"
pass = "remindrs"
# [server]
# address = "::1"

View file

@ -16,11 +16,11 @@ const fn default_database_port() -> u16 {
}
fn default_database_name() -> String {
"whakarite".to_string()
env!("CARGO_BIN_NAME").to_string()
}
fn default_database_user() -> String {
"whakarite".to_string()
env!("CARGO_BIN_NAME").to_string()
}
#[derive(Debug, Deserialize)]

View file

@ -58,7 +58,7 @@ fn remind(
trace!(?reminder, "checking reminder");
if reminder.planned <= OffsetDateTime::now_utc() {
let email = Message::builder()
.from("whakarite@localhost".parse()?)
.from(format!("{}@localhost", env!("CARGO_BIN_NAME")).parse()?)
.to(reminder.receiver.parse()?)
.subject(&reminder.title)
.body(reminder.message.to_string())?;