Latest 0.1.2
Homepage https://github.com/ddddxxx/Semver
License MIT
Platforms osx 10.9, ios 8.0, tvos 9.0, watchos 2.0
Authors

Semver

Build Status
supports
platforms

Semver is a Swift implementation of the Semantic Versioning.

Requirements

  • macOS 10.9+ / iOS 8.0+ / tvOS 9.0+ / watchOS 2.0+
  • Xcode 9+
  • Swift 4.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

Carthage

Add the project to your Cartfile:

github "ddddxxx/Semver"

Swift Package Manager

Add the project to your Package.swift file:

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/ddddxxx/Semver")
    ]
)

CocoaPods

Add the project to your Podfile:

pod 'Semver2'

License

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

Latest podspec

{
    "name": "Semver2",
    "version": "0.1.2",
    "summary": "Swift Semantic Versioning library.",
    "homepage": "https://github.com/ddddxxx/Semver",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Xander Deng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ddddxxx/Semver.git",
        "tag": "v0.1.2"
    },
    "source_files": "Sources/Semver/*.swift",
    "platforms": {
        "osx": "10.9",
        "ios": "8.0",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This