All Projects → DragonCherry → VersionCompare

DragonCherry / VersionCompare

Licence: Unlicense License
Supports compare version in a very simple & comprehensive way.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to VersionCompare

nativescript-appversion
🔢 NativeScript plugin to retrieve your app's package ID and current version
Stars: ✭ 47 (+51.61%)
Mutual labels:  version
SSAppUpdater
SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Stars: ✭ 58 (+87.1%)
Mutual labels:  version
perfekt
Release, changelog and version your packages with perfe(k)t 👌 ease!
Stars: ✭ 15 (-51.61%)
Mutual labels:  version
Compare-UserJS
PowerShell script for comparing user.js (or prefs.js) files.
Stars: ✭ 79 (+154.84%)
Mutual labels:  compare
webapp-wordlists
This repository contains wordlists for each versions of common web applications and content management systems (CMS). Each version contains a wordlist of all the files directories for this version.
Stars: ✭ 306 (+887.1%)
Mutual labels:  version
github-compare
Compares two github projects
Stars: ✭ 19 (-38.71%)
Mutual labels:  compare
zerover
0️⃣ Minimalist versioning scheme for devs who can't be bothered.
Stars: ✭ 141 (+354.84%)
Mutual labels:  version
pg-diff
PostgreSQL schema and data comparing tool
Stars: ✭ 39 (+25.81%)
Mutual labels:  compare
node-compat-require
Easily allow your Node program to run in a target node version range to maximize compatibility.
Stars: ✭ 22 (-29.03%)
Mutual labels:  version
available-versions
Returns a promise with new versions higher than given for a npm module
Stars: ✭ 18 (-41.94%)
Mutual labels:  version
exec
🐚 semantic-release plugin to execute custom shell commands
Stars: ✭ 94 (+203.23%)
Mutual labels:  version
array-sort-by
Powerful mechanism to sort arrays or array of objects by one or more properties. You can also specify a custom comparer function.
Stars: ✭ 37 (+19.35%)
Mutual labels:  compare
HandySub
Download Subtitle from Subscene and other sources
Stars: ✭ 42 (+35.48%)
Mutual labels:  compare
bump
A generic version tracking and update tool
Stars: ✭ 33 (+6.45%)
Mutual labels:  version
version-check
An action that allows you to check whether your npm package version has been updated
Stars: ✭ 65 (+109.68%)
Mutual labels:  version
app-version-laravel
Laravel application versioning
Stars: ✭ 24 (-22.58%)
Mutual labels:  version
npmfs
javascript package inspector
Stars: ✭ 90 (+190.32%)
Mutual labels:  compare
dotnet-version-cli
dotnet version cli (similar to npm version cli)
Stars: ✭ 30 (-3.23%)
Mutual labels:  version
array-diff-multidimensional
Compare the difference between two multidimensional arrays in PHP
Stars: ✭ 60 (+93.55%)
Mutual labels:  compare
shenv
Simple shell version management
Stars: ✭ 27 (-12.9%)
Mutual labels:  version

VersionCompare

Supports compare version in a very simple & comprehensive way.

Example

XCTAssertTrue(UIDevice.current.systemVersion.isVersion(lessThan: "99.0.0"))
XCTAssertTrue(UIDevice.current.systemVersion.isVersion(equalTo: UIDevice.current.systemVersion))
XCTAssertTrue(UIDevice.current.systemVersion.isVersion(greaterThan: "3.5.99"))
XCTAssertTrue(UIDevice.current.systemVersion.isVersion(lessThanOrEqualTo: "13.5.99"))
XCTAssertTrue(UIDevice.current.systemVersion.isVersion(greaterThanOrEqualTo: UIDevice.current.systemVersion))
XCTAssertTrue("0.1.1".isVersion(greaterThan: "0.1"))
XCTAssertTrue("0.1.0".isVersion(equalTo: "0.1"))
XCTAssertTrue("10.0.0".isVersion(equalTo: "10"))
XCTAssertTrue("10.0.1".isVersion(equalTo: "10.0.1"))
XCTAssertTrue("5.10.10".isVersion(lessThan: "5.11.5"))
XCTAssertTrue("1.0.0".isVersion(greaterThan: "0.99.100"))
XCTAssertTrue("0.5.3".isVersion(lessThanOrEqualTo: "1.0.0"))
XCTAssertTrue("0.5.29".isVersion(greaterThanOrEqualTo: "0.5.3"))

Installation

VersionCompare is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "VersionCompare"

Unlicense

Do whatever you want with this code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].