Module: Kuby::Utils::SemVer

Defined in:
lib/kuby/utils/sem_ver.rb,
lib/kuby/utils/sem_ver/version.rb,
lib/kuby/utils/sem_ver/constraint.rb,
lib/kuby/utils/sem_ver/constraint_set.rb

Defined Under Namespace

Classes: Constraint, ConstraintSet, Version

Class Method Summary collapse

Class Method Details

.parse_constraints(*strs) ⇒ Object



12
13
14
# File 'lib/kuby/utils/sem_ver.rb', line 12

def self.parse_constraints(*strs)
  ConstraintSet.parse(*strs)
end

.parse_version(str) ⇒ Object



8
9
10
# File 'lib/kuby/utils/sem_ver.rb', line 8

def self.parse_version(str)
  Version.parse(str)
end