Returning proper value instead of direct strcmp() result.
Including precedence outlined by semver.org specification.
Adding isStable() method.
Ignoring IDEA project file.
Including tests for the updated specification.