diff --git a/CHANGELOG.md b/CHANGELOG.md index b4f65d21..31d3187f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [3.4.0] (2022-05-22) + +- Gentoo Linux support has been added. (#307) + +- FreeSBD detection has been fixed. (#309) + ## [3.3.0] (2022-05-01) - Fedora 35 (without `lsb_release`) detection has been fixed. (#293) @@ -255,7 +261,8 @@ All notable changes to this project will be documented in this file. The first release containing only minor infrastructural changes and based on [os_type](https://github.com/schultyy/os_type). -[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.3.0...HEAD +[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.4.0...HEAD +[3.4.0]: https://github.com/stanislav-tkach/os_info/compare/v3.3.0...v3.4.0 [3.3.0]: https://github.com/stanislav-tkach/os_info/compare/v3.2.0...v3.3.0 [3.2.0]: https://github.com/stanislav-tkach/os_info/compare/v3.1.0...v3.2.0 [3.1.0]: https://github.com/stanislav-tkach/os_info/compare/v3.0.9...v3.1.0 diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c8d4b3e9..baeb51d1 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -17,7 +17,7 @@ name = "os_info" path = "src/main.rs" [dependencies] -os_info = { version = "3.3.0", default-features = false, path = "../os_info" } +os_info = { version = "3.4.0", default-features = false, path = "../os_info" } log = "0.4.5" env_logger = "0.9" clap = { version = "3", features = ["derive"] } diff --git a/os_info/Cargo.toml b/os_info/Cargo.toml index c2ba6557..5d9f31bc 100644 --- a/os_info/Cargo.toml +++ b/os_info/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "os_info" -version = "3.3.0" +version = "3.4.0" authors = ["Jan Schulte ", "Stanislav Tkach "] description = "Detect the operating system type and version." documentation = "https://docs.rs/os_info" diff --git a/os_info/src/info.rs b/os_info/src/info.rs index 0223dfb7..85b69933 100644 --- a/os_info/src/info.rs +++ b/os_info/src/info.rs @@ -199,6 +199,7 @@ mod tests { Type::Emscripten, Type::EndeavourOS, Type::Fedora, + Type::Gentoo, Type::Linux, Type::Macos, Type::Manjaro, diff --git a/os_info/src/os_type.rs b/os_info/src/os_type.rs index 124598c7..c19d3606 100644 --- a/os_info/src/os_type.rs +++ b/os_info/src/os_type.rs @@ -91,6 +91,7 @@ impl Display for Type { Type::Amazon => write!(f, "Amazon Linux AMI"), Type::Arch => write!(f, "Arch Linux"), Type::DragonFly => write!(f, "DragonFly BSD"), + Type::Gentoo => write!(f, "Gentoo Linux"), Type::Illumos => write!(f, "illumos"), Type::Macos => write!(f, "Mac OS"), Type::MidnightBSD => write!(f, "Midnight BSD"), @@ -127,6 +128,7 @@ mod tests { (Type::Emscripten, "Emscripten"), (Type::EndeavourOS, "EndeavourOS"), (Type::Fedora, "Fedora"), + (Type::Gentoo, "Gentoo Linux"), (Type::FreeBSD, "FreeBSD"), (Type::Linux, "Linux"), (Type::Macos, "Mac OS"),