diff --git a/Cargo.lock b/Cargo.lock index e5f4a46..e9627ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -377,7 +377,7 @@ dependencies = [ [[package]] name = "simplersble" -version = "0.10.1" +version = "0.10.1-dev1" dependencies = [ "cmake", "cxx", diff --git a/Cargo.toml b/Cargo.toml index 23a4ce8..4c8c49e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ edition = "2021" name = "simplersble" -version = "0.10.1" +version = "0.10.1-dev1" license = "BUSL-1.1" description = "The all-in-one Bluetooth library that makes it easy to add wireless connectivity to your projects." readme = "simplersble/README.md" diff --git a/scripts/check_version.sh b/scripts/check_version.sh index 9b5b0d2..5cd026f 100755 --- a/scripts/check_version.sh +++ b/scripts/check_version.sh @@ -48,7 +48,7 @@ check_cargo_version_match() { # Extract the version line from Cargo.toml local cargo_version=$2 echo "- Cargo.toml consistent with VERSION file?" - if [[ "$cargo_version" == "$version_file" ]]; then + if [[ "$cargo_version" == "$version_file"* ]]; then echo " OK" return 0 else @@ -93,6 +93,8 @@ assert_return_value 'validate_version_format "1.1"' 1 || exit 1 assert_return_value 'validate_version_format "1.1.1"' 0 || exit 1 assert_return_value 'check_cargo_version_match "1.1.1" "1.1.2"' 1 || exit 1 assert_return_value 'check_cargo_version_match "1.1.1" "1.1.1"' 0 || exit 1 +assert_return_value 'check_cargo_version_match "1.1.1" "1.1.1-dev1"' 0 || exit 1 +assert_return_value 'check_cargo_version_match "1.1.1" "1.1.2-dev1"' 1 || exit 1 assert_return_value 'check_tag_version_match "1.1.1" "1.1.2" "1.1.1"' 1 || exit 1 assert_return_value 'check_tag_version_match "1.1.1" "1.1.1" "1.1.1"' 0 || exit 1 assert_return_value 'check_tag_version_match "" "1.1.1" "1.1.1"' 1 || exit 1