Skip to content

GemTalk/VersionNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VersionNumber

A simple Smalltalk package to handle comparisons of software version numbers.

Example

| versionString version |
versionString := self fetchVersionStringFromSomewhere.
versionNumber := VersionNumber versionString: versionString.
(versionNumber between: '3.0' and '12.7.1') 
    ifFalse: [self error: 'incompatible version']

Tested in Pharo 13. It's likely compatible with other Smalltalk versions and dialects. If anyone finds that it's not compatible with their Smalltalk environment, I'd welcome pull requests.

About

A simple way of comparing software version numbers consisting of digits separated by dots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors