Skip to content

Commit

Permalink
http://semver.org/
Browse files Browse the repository at this point in the history
2. A normal version number MUST take the form X.Y.Z where X, Y, and Z are integers. X is the major version, Y is the minor version, and Z is the patch version. Each element MUST increase numerically. For instance: 1.9.0 < 1.10.0 < 1.11.0.

3. A special version number MAY be denoted by appending an arbitrary string immediately following the patch version. The string MUST be comprised of only alphanumerics plus dash [0-9A-Za-z-] and MUST begin with an alpha character [A-Za-z]. Special versions satisfy but have a lower precedence than the associated normal version. Precedence SHOULD be determined by lexicographic ASCII sort order. For instance: 1.0.0beta1 < 1.0.0beta2 < 1.0.0.
  • Loading branch information
weppos committed Feb 20, 2010
1 parent f85ab7a commit 7a1d1f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/whois/version.rb
Expand Up @@ -19,10 +19,9 @@ module Whois
module Version
MAJOR = 1
MINOR = 0
TINY = 2
ALPHA = nil
PATCH = 2

STRING = [MAJOR, MINOR, TINY, ALPHA].compact.join('.')
STRING = [MAJOR, MINOR, PATCH].compact.join('.')
end

VERSION = Version::STRING
Expand Down

0 comments on commit 7a1d1f6

Please sign in to comment.