reset/solve — pull request #6 by thibaudgg (2012-10-10 20:47:36+00:00)
Title: Improve Semantic Versioning support in Version class

This new commit improve Semantic Versioning specification support, this old one was a little bit too liberal :).

I also need to add pre_release & build support to the approximate ('~>') constraint.
What do you think of these cases?

``` ruby
"~> 1.2.3-4" eq ">= 1.2.3-4 " && "< 1.2.5--"
"~> 1.2.3-alpha" eq ">= 1.2.3-alpha" && "< 1.2.3"
"~> 1.2.3-alpha.4" eq ">= 1.2.3-alpha.1" && "< 1.2.3-alpha.-"
"~> 1.2.3-alpha.4+5" eq ">= 1.2.3-alpha.4+5" && "< 1.2.3-alpha.4+-"
"~> 1.2.3-alpha.4+build" eq ">= 1.2.3-alpha.4+build < 1.2.3-alpha.5"
"~> 1.2.3-alpha.4+build.5" eq ">= 1.2.3-alpha.4+build.5" && "< 1.2.3-alpha.4+build.-)"
"~> 1.2.3" eq ">= 1.2.3" && "< 1.3.0-0"
"~> 1.2.3+4" eq ">= 1.2.3+4" && "< 1.2.3+-"
"~> 1.2.3+build" eq ">= 1.2.3+build" && "< 1.2.4"
"~> 1.2.3+build.4" eq ">= 1.2.3+build.4" && "< 1.2.3+build.-"
"~> 1.2" eq ">= 1.2.0" && "< 2.0.0-0"
```

If you think they are correct I'll implement that.

Thanks!

PS: I'm really glad you like Guard, thanks!