Compare two software versions with the full pattern for Linux Packages (Centos, Redhat, Arch, Debian Ubuntu) and Windows Applications
gem 'software_version', git: 'https://github.com/Cyberwatch/software-version.git'
SoftwareVersion::Version.new('6:1.5.0-ubuntu1.2~release1804') < SoftwareVersion::Version.new('6:1.5.0-ubuntu1.4~release1804')
- Ruby >= 3.2
Run :
rspec spec/
Pacman sort commande line
cat spec/fixtures/pacman_version.txt | sort | sort --version-sort > spec/fixtures/pacman_version_sort.txt
Pull Request are very welcome. Please fork the project, make your feature addition or bug fix and send a pull request.
Copyright (c) 2018-2023 Florian Wininger. See LICENSE for details. Copyright (c) 2023 Frédéric Mangano. See LICENSE for details. Copyright (c) 2019-2023 Cyberwatch. See LICENSE for details.