-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Bump Ruby to 3.1 #5447
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
Bump Ruby to 3.1 #5447
Changes from all commits
2badf4b
a4dc9e6
4caa170
6dbec51
2b7808f
925c43d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,6 +256,8 @@ Style/HashExcept: | |
| Enabled: true | ||
| Style/HashLikeCase: | ||
| Enabled: false | ||
| Style/HashSyntax: | ||
| EnforcedShorthandSyntax: either | ||
| Style/HashTransformKeys: | ||
| Enabled: false | ||
| Style/HashTransformValues: | ||
|
|
@@ -320,3 +322,13 @@ Style/SpecialGlobalVars: | |
| Enabled: false | ||
| Style/SelectByRegexp: | ||
| Enabled: false | ||
|
|
||
| # TODO these were temporarily disabled during the Ruby 2.7 -> 3.1 upgrade | ||
| # in order to keep the upgrade diff small, they will be enabled/fixed in | ||
| # a follow-on PR. | ||
| Naming/BlockForwarding: | ||
| Enabled: false | ||
| Style/MutableConstant: | ||
| Enabled: false | ||
| Style/RedundantFreeze: | ||
| Enabled: false | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.7.6 | ||
| 3.1.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,8 @@ Gem::Specification.new do |spec| | |
|
|
||
| spec.add_dependency "dependabot-common", Dependabot::VERSION | ||
|
|
||
| spec.add_development_dependency "webrick", ">= 1.7" | ||
|
||
|
|
||
| common_gemspec.development_dependencies.each do |dep| | ||
| spec.add_development_dependency dep.name, dep.requirement.to_s | ||
| end | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
This allows but doesn't require the new shorthand syntax sugar. The new syntax is a bit controversial... see detailed notes in the relevant commit message.
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.
Yeah this makes sense to me. I'm not quite sure how I feel about the new syntax, in js/ts I think it's fine so probably just takes a bit of getting used to. Either way I probably would avoid major syntax style changes in this upgrade, and once everything works, re-evaluate on that stuff