Make sure we check for min Ruby version as well.

This commit is contained in:
Guo Xiang Tan 2016-07-25 09:55:28 +08:00
parent 82c061a5bc
commit 5b20f81882
1 changed files with 3 additions and 1 deletions

View File

@ -15,8 +15,10 @@ module DockerManager
version = Gem::Version.new(version)
expected_version = Gem::Version.new('1.3.5')
ruby_version = Gem::Version.new(RUBY_VERSION)
expected_ruby_version = Gem::Version.new('2.3')
if version < expected_version
if (version < expected_version) || (ruby_version < expected_ruby_version)
render text: <<HTML
<html><head></head><body>