lib/rhoconnect/utilities.rb in rhoconnect-4.0.4 vs lib/rhoconnect/utilities.rb in rhoconnect-5.1.1
- old
+ new
@@ -71,11 +71,11 @@
def redis_home
ENV['REDIS_HOME'] || File.join($redis_dest,$redis_ver)
end
- def ruby19?
- RUBY_VERSION =~ /1.9/
+ def supported_mri_ruby?
+ RUBY_VERSION =~ /^1\.9\.\d/ || RUBY_VERSION =~ /^2\.\d+\.\d+/
end
def jruby?
defined?(JRUBY_VERSION)
end
\ No newline at end of file