Make sure we check for min Ruby version as well.
This commit is contained in:
parent
82c061a5bc
commit
5b20f81882
|
|
@ -15,8 +15,10 @@ module DockerManager
|
||||||
|
|
||||||
version = Gem::Version.new(version)
|
version = Gem::Version.new(version)
|
||||||
expected_version = Gem::Version.new('1.3.5')
|
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
|
render text: <<HTML
|
||||||
<html><head></head><body>
|
<html><head></head><body>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue