Ruby class for easy version number natural order sorting

/ Published in: Ruby
Save to your folder(s)

Probably not the most elegant solution, but it works. Needed this for a capistrano deploy task which shows the most recent tagged releases in my repository. Very bare bones, and needs tweaking if your versions are not in X.X.X.X format.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.