Skip to content

Instantly share code, notes, and snippets.

@alloy
Last active December 16, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alloy/5346435 to your computer and use it in GitHub Desktop.
Save alloy/5346435 to your computer and use it in GitHub Desktop.

SemVer Version: 1.2.3

#define COCOAPOD_AVAILABLE_Bananas
#define COCOAPOD_VERSION_MAJOR_Bananas 1
#define COCOAPOD_VERSION_MINOR_Bananas 2
#define COCOAPOD_VERSION_PATCH_Bananas 3

WIN!

SemVer Version: 1.2.3-rc1

#define COCOAPOD_AVAILABLE_Bananas
#define COCOAPOD_VERSION_MAJOR_Bananas 1
#define COCOAPOD_VERSION_MINOR_Bananas 2
#define COCOAPOD_VERSION_PATCH_Bananas 3

WIN!

SemVer-compatible Version: 1.2

#define COCOAPOD_AVAILABLE_Bananas
#define COCOAPOD_VERSION_MAJOR_Bananas 1
#define COCOAPOD_VERSION_MINOR_Bananas 2
#define COCOAPOD_VERSION_PATCH_Bananas 0

WIN!

No-SemVer Version: 1.2.3.4

#define COCOAPOD_AVAILABLE_Bananas
// This library does not follow semantic-versioning, so we were not able to define version macros. Please contact the author.

We can’t help you here…

@fabiopelosin
Copy link

An example of this in practice can be seen at: https://gist.github.com/irrationalfab/5348551.

To continue our discussion 👹, the 1.2 is not a valid version according to the Semantic Versioning specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment