Ruby: Fix version check
Before this change the Ruby bindings were excluded if we installed Swig
3.0.10 or any later version of Swig 3.0.
@@ -11,7 +11,7 @@ find_package(Ruby)
if (NOT RUBY_FOUND)
remove_binding(swig_ruby "ruby interpreter or ruby header files not found (package ruby-dev/ruby-devel installed?)")
-elseif (SWIG_VERSION MATCHES "^([12]\\.)|(3\\.0\\.[01234567])")
+elseif (SWIG_VERSION MATCHES "^([12]\\.)|(3\\.0\\.[01234567])$")
remove_binding(swig_ruby "found SWIG version (${SWIG_VERSION}) is not suitable. SWIG version >= 3.0.8 required")
else()
