Skip to content
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

Configure Standard to use Ruby 3.0 #1132

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Configure Standard to use Ruby 3.0 #1132

merged 1 commit into from
Sep 29, 2023

Conversation

seanpdoyle
Copy link
Contributor

Since the current configuration for Standard defaults to the executing Ruby version, newer contributions are failing because the codebase doesn't use the anonymous rest syntax made available in Ruby 3.2.

The gem current supports a Ruby Version Range with 3.0.5 as the minimum, so we should pass that to Standard in its YAML Options.

Since the current configuration for Standard defaults to the executing
Ruby version, newer contributions are failing because the codebase
doesn't use the [anonymous rest][] syntax made available in Ruby 3.2.

The gem current supports a [Ruby Version Range][] with 3.0.5 as the
minimum, so we should pass that to Standard in its [YAML Options][].

[anonymous rest]: https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
[Ruby Version Range]: https://github.com/thoughtbot/suspenders/blob/761c4134308f77f52dd25a228c7cedfd14dafe82/lib/suspenders/version.rb#L4-L7
[YAML Options]: https://github.com/standardrb/standard#yaml-options
@seanpdoyle seanpdoyle merged commit 813fc9e into main Sep 29, 2023
1 check passed
@seanpdoyle seanpdoyle deleted the rake-standard-fix branch September 29, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant