josh/useragent — pull request #18 by assembler (2012-02-02 13:59:14+00:00)
Title: bug fixed when comparing versions with different subversion counts

This was not working:
UserAgent::Version.new("4").should < UserAgent::Version.new("4.1")

I've fixed comparison code to match two versions by subversions count, and treating all "nil" values as zeros. That way, the above would transform into "4.0" vs "4.1" and would return the proper result. All other tests are passing, don't know if this would cause any other issues..