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

Support Ruby 3.3 #50

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

javan
Copy link

@javan javan commented Jan 5, 2024

This PR relaxes the upper Ruby version constraint to support Ruby 3.3.

@javan
Copy link
Author

javan commented Jan 5, 2024

P.S. Thanks so much for forking, improving, and maintaining this gem! ❤️

@@ -1,6 +1,9 @@
AllCops:
NewCops: enable

Gemspec/RequiredRubyVersion:
Enabled: false
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this change is technically necessary or if there’s a better “fix”, but it resolved this CI failure on my fork:

Running rubocop with reviewdog 🐶 ...
reviewdog: found at least one result in diff
reviewdog: Reporting results for "rubocop"
Warning: [rubocop] reported by reviewdog 🐶
`required_ruby_version` and `TargetRubyVersion` (3.0, which may be specified in .rubocop.yml) should be equal.

Raw Output:
scimaenaga.gemspec:18:29: W: Gemspec/RequiredRubyVersion: `required_ruby_version` and `TargetRubyVersion` (3.0, which may be specified in .rubocop.yml) should be equal.
Error: Process completed with exit code 1.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked some documents:
https://github.com/rubocop/rubocop/blob/master/config/default.yml#L134C2-L145C49
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Gemspec/RequiredRubyVersion

It seems that TargetRubyVersion in rubocop.yml must be specified as 2.5.9 because 2.5.9 is the lowest required_ruby_version.
However we want rubocop to work with ruby 3.x, so I think disabling Gemspec/RequiredRubyVersion is proper.

Copy link

@mtakeda15 mtakeda15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@mtakeda15 mtakeda15 merged commit dbe25e8 into StudistCorporation:master Jan 9, 2024
30 checks passed
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.

2 participants