-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TargetRubyVersion takes precedence over .ruby-version #3261
Conversation
TargetRubyVersion: 2.0 | ||
# If a value is specified for TargetRubyVersion then it is used. | ||
# Else if .ruby-version exists and it contains an MRI version it is used. | ||
# Otherwise the default (2.0) ruby is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps clarify that these are MRI version numbers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add to the start of the comment on line 76.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the final sentence - it should be something like Otherwise we fallback to the oldest officially supported Ruby version (2.0)
.
👍 besides that one last comment. |
This looks great! |
end | ||
end | ||
|
||
context 'when TargetRubyVersion is unset' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unset -> not set/null
@bbatsov Thanks for the feedback. I've pushed changes to address all of it. |
Based on the discussion on #3251 regarding JRuby and other values that can appear in .ruby-version, I made this change to see if it can help to resolve the situation.
In order to change the precedence, I had to move the default for
TargetRubyVersion
fromdefault.yml
to code.[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).and description in grammatically correct, complete sentences.