forked from 1b-agent/fieldcraft-upstream
repo: move to github.com/tangency-labs/fieldcraft (URLs, updater, Pages)
The updater's release endpoint, docs, README, release notes and the Pages URL point at the tangency-labs org. App IDs (io.github.jyviko.fieldcraft) stay unchanged so installed copies keep their identity and settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
b74d15e44d
commit
a079e51f9d
18 files changed
+55
-55
No files matched your search
@@ -35,7 +35,7 @@ pub use release::{Asset, Check, Release};
|
||||
pub use version::Version;
|
||||
|
||||
/// The repository releases come from.
|
||||
pub const REPO: &str = "jyviko/fieldcraft";
|
||||
pub const REPO: &str = "tangency-labs/fieldcraft";
|
||||
/// The GitHub API.
|
||||
pub const DEFAULT_HOST: &str = "https://api.github.com";
|
||||
/// Replaces [`DEFAULT_HOST`] (and allows plain `http`), for tests against a local server only.
|
||||
|
||||
@@ -164,9 +164,9 @@ mod tests {
|
||||
// Errors are messages, never panics.
|
||||
let missing = Client::new(&server.url()).release(&Which::Version(Version::parse("1.2.3").unwrap())).unwrap_err();
|
||||
assert!(missing.to_string().contains("no published release of FieldCraft 1.2.3"), "{missing}");
|
||||
server.route("/repos/jyviko/fieldcraft/releases/latest", 200, b"not json".to_vec());
|
||||
server.route("/repos/tangency-labs/fieldcraft/releases/latest", 200, b"not json".to_vec());
|
||||
assert!(matches!(Client::new(&server.url()).check(), Err(Error::Release(_))));
|
||||
server.route("/repos/jyviko/fieldcraft/releases/latest", 403, b"{}".to_vec());
|
||||
server.route("/repos/tangency-labs/fieldcraft/releases/latest", 403, b"{}".to_vec());
|
||||
assert!(matches!(Client::new(&server.url()).check(), Err(Error::Network(_))));
|
||||
assert!(matches!(Client::new("http://127.0.0.1:1").check(), Err(Error::Network(_))));
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ mod tests {
|
||||
pub(crate) fn github(tag: &str) -> Value {
|
||||
json!({
|
||||
"tag_name": tag,
|
||||
"html_url": format!("https://github.com/jyviko/fieldcraft/releases/tag/{tag}"),
|
||||
"html_url": format!("https://github.com/tangency-labs/fieldcraft/releases/tag/{tag}"),
|
||||
"body": "## What's new\n- updates",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
|
||||
Reference in new issue
Block a user