Wooops, I just realized this has a bug :(.  This fixes it, and is even simpler, I think:

``` ruby
version_without_prerelease_string = redis_version.split('-').first
return if Gem::Version.new(version_without_prelease_string) >= Gem::Version.new(version)
```