Classes | Functions
rocon_semantic_version::base Namespace Reference


class  Spec
class  SpecItem
class  Version


def _has_leading_zero
def _to_int
def compare
def identifier_cmp
def identifier_list_cmp
def match
def validate

Function Documentation

Definition at line 19 of file

def rocon_semantic_version.base._to_int (   value) [private]

Definition at line 13 of file

def (   v1,

Definition at line 500 of file

Compare two identifier (for pre-release/build components).

Definition at line 26 of file

Compare two identifier list (pre-release/build components).

The rule is:
    - Identifiers are paired between lists
    - They are compared from left to right
    - If all first identifiers match, the longest list is greater.

>>> identifier_list_cmp(['1', '2'], ['1', '2'])
>>> identifier_list_cmp(['1', '2a'], ['1', '2b'])
>>> identifier_list_cmp(['1'], ['1', '2'])

Definition at line 45 of file

def rocon_semantic_version.base.match (   spec,

Definition at line 504 of file

def rocon_semantic_version.base.validate (   version_string)
Validates a version string againt the SemVer specification.

Definition at line 508 of file

Author(s): Raphaƫl Barrois
autogenerated on Fri May 2 2014 10:35:51