fix: update check — handle spaced JSON, move cache touch after HTTP success, add timeouts and multi-monitor guard

This commit is contained in:
Asger Geel Weirsøe
2026-05-06 11:51:02 +02:00
parent 468699e316
commit e1f8c1d58f
2 changed files with 43 additions and 9 deletions

View File

@@ -12,3 +12,9 @@ fn newer_version_detected() {
fn strips_v_prefix() {
assert!(is_newer("0.2.0", "0.1.0"));
}
#[test]
fn multi_digit_minor_version() {
assert!(is_newer("v0.10.0", "v0.9.0"));
assert!(!is_newer("v0.9.0", "v0.10.0"));
}