Skip to content

atsushisakai-gh/SemanticVersion

Repository files navigation

SemanticVersion

SemanticVersion is a simple library for SemantiVersion Swift. SemanticVersion is implemented Equatable/Comparable operator.

About SemanticVersion

http://semver.org/

Installation

Write to Cartfile the following line.

github "radioboo/SemanticVersion"

You can install with Carthage command.

$ carthage update

Usage

Please read my test code, you can understand the more specific usage.

// Example
let versionA = SemanticVersion("1.0.0")
let versionB = SemanticVersion("2.0.0")

versionA == versionB // false
versionA != versionB // true
versionA <  versionB // true
versionA <= versionB // true
versionA >  versionB // false
versionA >= versionB // false

TODO

  • Implement for prelease version

Author

SAKAI, Atsushi, [email protected]

License

SemanticVersion is available under the MIT license. See the LICENSE file for more info.

About

Simple Semantic Versioning Operator for Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published