chore: rename repo from world to starchart

This commit is contained in:
Aravinth Manivannan 2022-03-30 10:10:14 +05:30
parent e83e435000
commit 5d1799a93d
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
6 changed files with 1136 additions and 23 deletions

View file

@ -47,7 +47,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - name: Login to DockerHub
# if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/world'
# if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
@ -77,7 +77,7 @@ jobs:
# run: make docker
#
# - name: publish docker images
# if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/gitpad'
# if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
# run: make docker-publish
#
# - name: run migrations
@ -96,7 +96,7 @@ jobs:
# SQLITE_DATABASE_URL: "${{ env.SQLITE_DATABASE_URL }}"
- name: generate documentation
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/gitpad'
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
run: make doc
# env:
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
@ -104,7 +104,7 @@ jobs:
# SQLITE_DATABASE_URL: "${{ env.SQLITE_DATABASE_URL }}"
- name: Deploy to GitHub Pages
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/gitpad'
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
branch: gh-pages

1109
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,15 +1,29 @@
[package]
authors = ["realaravinth <realaravinth@batsense.net>"]
description = "ForgeFlux world - Federated forge spider"
description = "ForgeFlux StarChart - Federated forge spider"
documentation = "https://forgeflux.org/"
edition = "2021"
license = "AGPLv3 or later version"
name = "world"
repository = "https://github.com/forgeflux-org/world"
name = "starchart"
repository = "https://github.com/forgeflux-org/starchart"
version = "0.1.0"
[dependencies]
actix-rt = "*"
rand = "*"
actix-rt = "2.7"
lazy_static = "1.4.0"
rand = "0.8.5"
tera = "1.15"
url = "2.2.2"
[dependencies.reqwest]
features = ["rustls-tls-native-roots", "gzip", "deflate", "brotli", "json"]
version = "0.11.10"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.trust-dns-resolver]
features = ["tokio-runtime", "dns-over-tls", "dns-over-rustls"]

View file

@ -1,5 +1,5 @@
/*
* ForgeFlux World - A federated software forge spider
* ForgeFlux StarChart - A federated software forge spider
* Copyright © 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
@ -18,5 +18,9 @@
pub mod utils;
pub mod verify;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
pub const DOMAIN: &str = "todo.example.forgeflux.org";
#[actix_rt::main]
async fn main() {}

View file

@ -1,5 +1,5 @@
/*
* ForgeFlux World - A federated software forge spider
* ForgeFlux StarChart - A federated software forge spider
* Copyright © 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
* ForgeFlux World - A federated software forge spider
* ForgeFlux StarChart - A federated software forge spider
* Copyright © 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
@ -62,9 +62,9 @@ mod tests {
#[actix_rt::test]
async fn verify_txt_works() {
// please note that this DNS record is in prod
const KEY: &str = "test-world-foobardontmindme";
const BASE_DOMAIN: &str = "world.forgeflux.org";
const VALUE: &str = "ifthisvalueisretrievedbyforgefluxworldthenthetestshouldpass";
const KEY: &str = "test-starchart-foobardontmindme";
const BASE_DOMAIN: &str = "starchart.forgeflux.org";
const VALUE: &str = "ifthisvalueisretrievedbyforgefluxstarchartthenthetestshouldpass";
let mut txt_challenge = TXTChallenge {
value: VALUE.to_string(),
base_hostname: BASE_DOMAIN.to_string(),
@ -72,7 +72,7 @@ mod tests {
};
assert_eq!(
txt_challenge.get_txt_key(),
"test-world-foobardontmindme.world.forgeflux.org",
"test-starchart-foobardontmindme.starchart.forgeflux.org"
);
assert!(