Merge branch '46950-systemcheck-use-gem-ruby-instead-of-hardcoding-ruby-version' into 'master'

SystemCheck: Use a more reliable way to detect current Ruby version

Closes #46950

See merge request gitlab-org/gitlab-ce!23291
This commit is contained in:
Douwe Maan 2018-11-22 10:20:47 +00:00
commit cd7f2d35ae
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: 'SystemCheck: Use a more reliable way to detect current Ruby version'
merge_request: 23291
author:
type: changed

View File

@ -11,7 +11,7 @@ module SystemCheck
end
def self.current_version
@current_version ||= Gitlab::VersionInfo.parse(Gitlab::TaskHelpers.run_command(%w(ruby --version)))
@current_version ||= Gitlab::VersionInfo.parse(RUBY_VERSION)
end
def check?