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

feat: Drop support for Ruby 2.4 and add support for Ruby 3.0 #178

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Feb 28, 2021

  • Updated the gemspec's required_ruby_version to >= 2.5
  • Updated google-style to ~> 1.25.1
  • Resolved all rubocop issues

@dazuma dazuma requested a review from a team as a code owner February 28, 2021 02:18
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 28, 2021
@dazuma dazuma changed the title feat: Drop support for the obsolete Ruby version 2.4 feat: Drop support for Ruby 2.4 and add support for Ruby 3.0 Feb 28, 2021
.rubocop.yml Outdated
- "lib/signet/oauth_1/client.rb"
- "lib/signet/oauth_1/credential.rb"
- "lib/signet/oauth_1/server.rb"
- "lib/signet/oauth_2/client.rb"
Copy link
Member

Choose a reason for hiding this comment

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

With so many of the significant files excluded, what do you think about just disabling these cops instead, or maybe setting them to the upper limits that allow all files to pass?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah good point. I started by trying just to exclude a minimal set of files, but now that's pretty much all of them. I'll look at upping the limits for now.

Copy link
Member

Choose a reason for hiding this comment

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

That's what I prefer. As a rule, I'd rather up the limits for all files than set special excludes (or even worse, inline disables). It's more democratic: If one file deserves extra AbcSize, we all deserve extra AbcSize!

# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/PerceivedComplexity

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for moving out all these disable comments! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants