Class SpecVersion
In: lib/mspec/utils/version.rb
Parent: Object

Methods

<=>   new   to_i   to_int   to_s   to_str  

Included Modules

Comparable

Public Class methods

SpecVersion handles comparison correctly for the context by filling in missing version parts according to the value of ceil. If ceil is false, 0 digits fill in missing version parts. If ceil is true, 9 digits fill in missing parts. (See e.g. VersionGuard and BugGuard.)

Public Instance methods

Converts a string representation of a version major.minor.tiny.patchlevel to an integer representation so that comparisons can be made. For example, "1.8.6.77" < "1.8.6.123" would be false if compared as strings.

[Validate]