From 9d3a94e23cab3c9231e0caec86d42017ed466a47 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 2 Jul 2024 13:07:44 +0200 Subject: [PATCH 1/2] Bump to 0.6.6 Signed-off-by: Sascha Grunert --- Cargo.toml | 2 +- README.md | 2 +- src/distribution/version.rs | 4 ++-- src/image/version.rs | 4 ++-- src/runtime/version.rs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c328ba6e5..9b2343e068 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oci-spec" -version = "0.6.5" +version = "0.6.6" edition = "2021" authors = [ "Furisto", diff --git a/README.md b/README.md index 98afe1e986..e4ea81b872 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This library provides a convenient way to interact with the specifications defin ```toml [dependencies] -oci-spec = "0.6.5" +oci-spec = "0.6.6" ``` *Compiler support: requires rustc 1.54+* diff --git a/src/distribution/version.rs b/src/distribution/version.rs index d5b8b63fb9..e7fa43705f 100644 --- a/src/distribution/version.rs +++ b/src/distribution/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 0; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = "-dev"; +pub const VERSION_DEV: &str = ""; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.0-dev".to_string()) + assert_eq!(version(), "1.0.0".to_string()) } } diff --git a/src/image/version.rs b/src/image/version.rs index c0ec075956..db91fb1cc1 100644 --- a/src/image/version.rs +++ b/src/image/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 1; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = "-dev"; +pub const VERSION_DEV: &str = ""; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.1-dev".to_string()) + assert_eq!(version(), "1.0.1".to_string()) } } diff --git a/src/runtime/version.rs b/src/runtime/version.rs index 2753790d31..5d52612b3f 100644 --- a/src/runtime/version.rs +++ b/src/runtime/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 2; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = "-dev"; +pub const VERSION_DEV: &str = ""; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.2-dev".to_string()) + assert_eq!(version(), "1.0.2".to_string()) } } From 82ae6d9b75b7177c3eac899aa8e93dfc277dbe16 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 2 Jul 2024 13:07:44 +0200 Subject: [PATCH 2/2] Back to dev Signed-off-by: Sascha Grunert --- src/distribution/version.rs | 4 ++-- src/image/version.rs | 4 ++-- src/runtime/version.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/distribution/version.rs b/src/distribution/version.rs index e7fa43705f..d5b8b63fb9 100644 --- a/src/distribution/version.rs +++ b/src/distribution/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 0; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = ""; +pub const VERSION_DEV: &str = "-dev"; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.0".to_string()) + assert_eq!(version(), "1.0.0-dev".to_string()) } } diff --git a/src/image/version.rs b/src/image/version.rs index db91fb1cc1..c0ec075956 100644 --- a/src/image/version.rs +++ b/src/image/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 1; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = ""; +pub const VERSION_DEV: &str = "-dev"; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.1".to_string()) + assert_eq!(version(), "1.0.1-dev".to_string()) } } diff --git a/src/runtime/version.rs b/src/runtime/version.rs index 5d52612b3f..2753790d31 100644 --- a/src/runtime/version.rs +++ b/src/runtime/version.rs @@ -8,7 +8,7 @@ pub const VERSION_MINOR: u32 = 0; pub const VERSION_PATCH: u32 = 2; /// Indicates development branch. Releases will be empty string. -pub const VERSION_DEV: &str = ""; +pub const VERSION_DEV: &str = "-dev"; /// Retrieve the version as string representation. pub fn version() -> String { @@ -21,6 +21,6 @@ mod tests { #[test] fn version_test() { - assert_eq!(version(), "1.0.2".to_string()) + assert_eq!(version(), "1.0.2-dev".to_string()) } }