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.0 #181

Merged
merged 2 commits into from Sep 21, 2021
Merged

Support ruby 3.0 #181

merged 2 commits into from Sep 21, 2021

Conversation

pariser
Copy link
Contributor

@pariser pariser commented Apr 8, 2021

Start working on (long awaited) ruby3.0 support; as copied from the changelog:

  • Add support for Ruby 3.0
  • Run CI against Ruby 2.7
  • Drop support for Ruby 2.3
  • Update rubocop to 0.93.1

@pariser pariser force-pushed the ruby3 branch 2 times, most recently from 410faf6 to 53851d8 Compare Apr 8, 2021
@pariser
Copy link
Author

@pariser pariser commented Apr 8, 2021

Note that this PR addresses #176 (namely wanting an update to this package that unblocks Ruby 3.0 support)

I didn't go so far as to upgrade to rubocop 1.x as proposed in #178 , but I'd like to figure out a way to do that as a follow up in case the backwards compatibility of the rubocop 1.x upgrade poses problems for rubocop-airbnb gem users.

@pariser pariser linked an issue Apr 8, 2021 that may be closed by this pull request
Copy link

@ericatripp ericatripp left a comment

so great to see this happening! thank you @pariser ❤️

ahegyi
ahegyi approved these changes Apr 8, 2021
Copy link

@ahegyi ahegyi left a comment

LGTM! Well done.

zpaines
zpaines approved these changes Apr 8, 2021
Copy link

@zpaines zpaines left a comment

LGTM. Might be worth setting DisabledByDefault till we can evaluate some of the new rules!

@@ -347,8 +347,9 @@ Style/FrozenStringLiteralComment:
Enabled: false
Copy link

@zpaines zpaines Apr 8, 2021

Choose a reason for hiding this comment

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

Can we enable this now we're not supporting 2.3? I remember it caused some problems when I updated the version a while ago but I wonder if it would be alright now

Copy link
Contributor Author

@pariser pariser Apr 8, 2021

Choose a reason for hiding this comment

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

@zpaines great question. Given the delay in requiring frozen string literals beyond the ruby 3 release (see some rubocop discussion on this topic), I'm less convinced that this is pressing now. There are potentially good reasons to want to enable frozen string literals, say for performance reasons, but I'm not sure where I land on enforcing this in the style guide now. Let's talk about this when we evaluate any new cops that have been added to rubocop since our last update and make a decision about this going forward for a 4.1.0 release

@ericatripp
Copy link

@ericatripp ericatripp commented Apr 27, 2021

any chance you'll merge and cut a new release with this soon? ❤️ @pariser

magshi
magshi approved these changes Jul 14, 2021
@magshi
Copy link

@magshi magshi commented Jul 14, 2021

hi @pariser, just wondering if there is a timeline on releasing these changes? thank you!

@WozniakMac
Copy link

@WozniakMac WozniakMac commented Sep 21, 2021

Any updates on this? 🙏

@pariser pariser merged commit 12435e8 into airbnb:master Sep 21, 2021
1 check passed
@pariser
Copy link
Author

@pariser pariser commented Sep 21, 2021

I do apologize for the long and frankly unnecessary delay in getting this over the finish line. I've just merged this branch and pushed the v4.0.0 gem to rubygems.org (link).

FYI especially to @ericatripp @magshi @WozniakMac @blueberrystream @antrix1 @wilsonsilva @FabricioFFC @Lokideos @zpaines @aoc @khiav223577 -- commenters on this PR who have all been really patient and encouraging -- thank you all.

@pariser pariser deleted the ruby3 branch Sep 21, 2021
@aguynamedben
Copy link

@aguynamedben aguynamedben commented Sep 21, 2021

Thank you!!! 🙏 🎉

@WozniakMac
Copy link

@WozniakMac WozniakMac commented Sep 21, 2021

@pariser Thanks!!!!

@Lokideos
Copy link

@Lokideos Lokideos commented Sep 21, 2021

Thank you! Fantastic job!

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.

9 participants