Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e94001ba
Commit
e94001ba
authored
Nov 21, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a more reliable way to detect current Ruby version
parent
62e0877d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/46950-systemcheck-ruby-version.yml
changelogs/unreleased/46950-systemcheck-ruby-version.yml
+5
-0
lib/system_check/app/ruby_version_check.rb
lib/system_check/app/ruby_version_check.rb
+1
-1
No files found.
changelogs/unreleased/46950-systemcheck-ruby-version.yml
0 → 100644
View file @
e94001ba
---
title
:
'
SystemCheck:
Use
a
more
reliable
way
to
detect
current
Ruby
version'
merge_request
:
23291
author
:
type
:
changed
lib/system_check/app/ruby_version_check.rb
View file @
e94001ba
...
@@ -11,7 +11,7 @@ module SystemCheck
...
@@ -11,7 +11,7 @@ module SystemCheck
end
end
def
self
.
current_version
def
self
.
current_version
@current_version
||=
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
TaskHelpers
.
run_command
(
%w(ruby --version)
)
)
@current_version
||=
Gitlab
::
VersionInfo
.
parse
(
RUBY_VERSION
)
end
end
def
check?
def
check?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment