Skip to content

Commit

Permalink
Update the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Mar 11, 2024
1 parent e744b7d commit 7264322
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 5 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,29 @@ All notable changes to this project will be documented in this file.

## [3.8.0] (2024-03-12)

- FIXME
- The `windows-sys` crate instead of `winapi` is now used internally. (#341)

- Architecture information for Windows targets has been added. (#345)

- Artix Linux detection has been fixed. (#348)

- AIX support has been added. (#348)

- Kali Linux support has been added. (#350)

- openSUSE Tumbleweed detection has been fixed. (#353)

- Version parsing from `lsb_release` has been added. (#354)

- HardenedBSD detection has been fixed. (#358)

- Ultramarine Linux support has been added. (#359)

- AlmaLinux and Rocky Linux support has been added. (#360)

- Ultramarine Linux support has been added. (#363)

- Void Linux support has been added. (#365)

## [3.7.0] (2023-03-20)

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ os_info --help

Right now, the following operating system types can be returned:

- AIX
- AlmaLinux
- Alpaquita Linux
- Alpine Linux
- Amazon Linux AMI
Expand All @@ -95,8 +97,10 @@ Right now, the following operating system types can be returned:
- Garuda Linux
- Gentoo Linux
- HardenedBSD
- Illumos
- illumos
- Kali Linux
- Linux
- Mabox
- macOS (Mac OS X or OS X)
- Manjaro
- Mariner
Expand All @@ -105,17 +109,22 @@ Right now, the following operating system types can be returned:
- NetBSD
- NixOS
- OpenBSD
- OpenCloudOS
- openEuler (EulerOS)
- openSUSE
- Oracle Linux
- Pop!_OS
- Raspberry Pi OS
- Red Hat Linux
- Red Hat Enterprise Linux
- Redox
- Rocky Linux
- Solus
- SUSE Linux Enterprise Server
- Ubuntu
- Ultramarine Linux
- Unknown
- Void Linux
- Windows

If you need support for more OS types, I am looking forward to your Pull Request.
Expand Down
17 changes: 14 additions & 3 deletions os_info/src/os_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ impl Display for Type {
Type::Macos => write!(f, "Mac OS"),
Type::MidnightBSD => write!(f, "Midnight BSD"),
Type::Mint => write!(f, "Linux Mint"),
Type::openEuler => write!(f, "EulerOS"),
Type::OracleLinux => write!(f, "Oracle Linux"),
Type::Pop => write!(f, "Pop!_OS"),
Type::Raspbian => write!(f, "Raspberry Pi OS"),
Type::Redhat => write!(f, "Red Hat Linux"),
Expand All @@ -151,6 +153,7 @@ mod tests {
fn display() {
let data = [
(Type::AIX, "AIX"),
(Type::AlmaLinux, "AlmaLinux"),
(Type::Alpaquita, "Alpaquita Linux"),
(Type::Alpine, "Alpine Linux"),
(Type::Amazon, "Amazon Linux AMI"),
Expand All @@ -163,30 +166,38 @@ mod tests {
(Type::Emscripten, "Emscripten"),
(Type::EndeavourOS, "EndeavourOS"),
(Type::Fedora, "Fedora"),
(Type::FreeBSD, "FreeBSD"),
(Type::Garuda, "Garuda Linux"),
(Type::Gentoo, "Gentoo Linux"),
(Type::FreeBSD, "FreeBSD"),
(Type::HardenedBSD, "HardenedBSD"),
(Type::Illumos, "illumos"),
(Type::Kali, "Kali Linux"),
(Type::Linux, "Linux"),
(Type::Mabox, "Mabox"),
(Type::Macos, "Mac OS"),
(Type::Manjaro, "Manjaro"),
(Type::Mariner, "Mariner"),
(Type::MidnightBSD, "Midnight BSD"),
(Type::Mint, "Linux Mint"),
(Type::NetBSD, "NetBSD"),
(Type::NixOS, "NixOS"),
(Type::OpenCloudOS, "OpenCloudOS"),
(Type::OpenBSD, "OpenBSD"),
(Type::openEuler, "EulerOS"),
(Type::openSUSE, "openSUSE"),
(Type::OracleLinux, "OracleLinux"),
(Type::OracleLinux, "Oracle Linux"),
(Type::Pop, "Pop!_OS"),
(Type::Raspbian, "Raspberry Pi OS"),
(Type::Redhat, "Red Hat Linux"),
(Type::RedHatEnterprise, "Red Hat Enterprise Linux"),
(Type::Redox, "Redox"),
(Type::RockyLinux, "Rocky Linux"),
(Type::Solus, "Solus"),
(Type::SUSE, "SUSE Linux Enterprise Server"),
(Type::Ubuntu, "Ubuntu"),
(Type::Ultramarine, "Ultramarine Linux"),
(Type::Void, "Void Linux"),
(Type::Unknown, "Unknown"),
(Type::Void, "Void Linux"),
(Type::Windows, "Windows"),
];

Expand Down

0 comments on commit 7264322

Please sign in to comment.