Subject: | Alpha versions not supported. |
Test::CheckChanges doesn't recognize developer/alpha versions. IE: 0.16_1
I believe the attached patch addresses this issue, but I have not written
any tests to prove this.
Subject: | changes.patch |
diff --git i/lib/Test/CheckChanges.pm w/lib/Test/CheckChanges.pm
index c85575f..9398b5b 100644
--- i/lib/Test/CheckChanges.pm
+++ w/lib/Test/CheckChanges.pm
@@ -197,7 +197,7 @@ sub ok_changes
} else {
push(@not_found, "$cvers");
}
- } elsif (/^\s+version: ([\d.]+)$/) {
+ } elsif (/^\s+version: ([\d._]+)$/) {
# YAML
$mixed++ if $type and $type != 2;
$type = 2;
@@ -207,7 +207,7 @@ sub ok_changes
} else {
push(@not_found, "$1");
}
- } elsif (/^\* ([\d.]+)$/) {
+ } elsif (/^\* ([\d._]+)$/) {
# Apocal
$mixed++ if $type and $type != 3;
$type = 3;
@@ -217,7 +217,7 @@ sub ok_changes
} else {
push(@not_found, "$1");
}
- } elsif (/^Version ([\d.]+)($|[:,[:space:]])/) {
+ } elsif (/^Version ([\d._]+)($|[:,[:space:]])/) {
# Plain "Version N"
$mixed++ if $type and $type != 3;
$type = 4;