Skip to content

ddddxxx/Semver

Repository files navigation

Semver

Github CI Status supports platforms

Semver is a Swift implementation of the Semantic Versioning.

Requirements

  • Swift 5.0+

Example

import Semver

// A leading "v" character is ignored.
let version = Semver("v1.3.8-rc.1+build.3")!

version > Semver("1.0.2+39f1d74")! // true

Installation

Add the project to your Package.swift file:

package.dependencies += [
    .package(url: "https://github.com/ddddxxx/Semver", .upToNextMinor("0.2.0"))
]

Add the project to your Cartfile:

github "ddddxxx/Semver"

Add the project to your Podfile:

pod 'Semver2'

License

Semver is available under the MIT license. See the LICENSE file.

About

Swift Semantic Versioning library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages